/* Layout Fixes for Shifting Paradigms Website */

/* Fix website centring */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Ensure proper alignment of all content */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

body > * {
    width: 100%;
}

/* Fix section spacing */
.section {
    padding: 24px 0;
    position: relative;
    width: 100%;
}

/* Reduce excessive spacing between sections */
.section + .section {
    padding-top: 20px;
}

/* Ensure proper centring of hero content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    margin: 0 auto;
    text-align: center;
}

/* Fix alignment of featured cards */
.featured-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Fix alignment of bullet points */
.featured-list li,
.mission-list li,
.guidelines-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    text-align: left;
}

.featured-list li::before,
.mission-list li::before,
.guidelines-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #d4af37;
}

/* Fix image scaling on courses page */
.course-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Header: when navbar has logo (courses, about, etc.) – keep logo large but contained */
.header .navbar:has(.logo) {
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.header .logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    position: relative;
    background: rgba(10, 10, 26, 0.8);
    padding: 2px 5px;
    border-radius: 4px;
    flex-shrink: 0;
    text-decoration: none;
    gap: 4px;
    max-width: 130px;
}

.header .logo img {
    max-height: 18px !important;
    max-width: 44px !important;
    width: auto;
    object-fit: contain;
    display: block;
}

.header .logo-text {
    position: relative;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 600;
    color: #e8e8e8;
    white-space: nowrap;
}

.header .navbar:has(.logo) .nav-menu {
    flex-shrink: 0;
    margin-left: auto;
}

/* Page header — clear the fixed gold brand bar + nav (~187–210px tall) */
.page-header {
    padding-top: 178px;
    padding-bottom: 12px;
}

/* Homepage intro is the first block; it must clear the gold bar (styles.css is what index loads) */
.intro-section {
    padding-top: 178px;
}

/* Hero follows the intro — drop the old header-clearing margin and the empty 80vh */
.hero {
    height: auto;
    margin-top: 0;
    padding: 36px 0;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Ensure proper centring on mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .col {
        width: 100%;
    }
    
    .hero-content {
        padding: 15px;
    }

    .page-header {
        padding-top: 195px;
    }

    .intro-section {
        padding-top: 195px;
    }

    .hero {
        padding: 36px 0;
    }
}

/* Fix alignment of form elements */
.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-control {
    width: 100%;
}

/* Fix alignment of footer elements */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Fix alignment of legal pages content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.legal-content h2,
.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
    margin-bottom: 15px;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 10px;
}

/* Hide square header logo on non-home pages (courses, about, forum, login, etc.) for now */
body .header .container .navbar .logo {
    display: none !important;
}
