/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #1e2a1e;
    background-color: #fefcf5;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER & TOP BAR ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background: #1e4a1e;
    color: #fef9e6;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #2d6a2d;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-info span, .catholic-symbols span {
    margin-right: 24px;
    font-weight: 500;
}

.contact-info i, .catholic-symbols i {
    margin-right: 6px;
    color: #f5c542;
}

.main-header {
    padding: 12px 0;
    background: white;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* ========== VERTICAL LOGO (RECTANGLE, NOT ROUND) ========== */
.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.logo-wrapper {
    width: 70px;
    height: 90px;
    background: #faf3e0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a6e2a, #1a4f1a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd966;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.school-name-compact {
    line-height: 1.2;
}

.school-name-compact h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e4a1e;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.motto-short {
    font-size: 0.7rem;
    color: #b22234;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ========== PROFESSIONAL NAVBAR ========== */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1e3a1e;
    border-radius: 40px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: #eef4e6;
    color: #0f4c0f;
}

.nav-menu a.active {
    background: #2a6e2a;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Dropdown desktop */
.dropdown > a .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    padding: 10px 0;
    min-width: 210px;
    z-index: 1100;
    border: 1px solid #e2e8e0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    white-space: nowrap;
    padding: 8px 20px;
    border-radius: 0;
    color: #1f3b1f;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: #f1f8ec;
    padding-left: 26px;
}

/* Mobile toggle button */
.menu-toggle {
    display: none;
    background: #f0f6ea;
    border: none;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 40px;
    color: #2a6e2a;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* ========== WELCOME SECTION ========== */
.welcome-section {
    background: linear-gradient(105deg, #ffffff 0%, #fef9ef 100%);
    padding: 56px 0 48px;
    border-bottom: 1px solid #e2dccd;
}

.welcome-grid {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.welcome-text {
    flex: 1.2;
}

.welcome-text .greeting {
    color: #b22234;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}

.welcome-text h2 {
    font-size: 2.3rem;
    color: #1e4a1e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.welcome-text p {
    font-size: 1.05rem;
    color: #2c3e2c;
    margin-bottom: 24px;
}

.welcome-highlight {
    background: #ebf5e6;
    padding: 18px 24px;
    border-left: 6px solid #d4af37;
    border-radius: 16px;
    font-style: italic;
    font-weight: 500;
    color: #1f4f1f;
}

/* Image Placeholder */
.image-placeholder {
    flex: 0.9;
    background: #e6e9dd;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.2);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #cddfb8, #b8c9a4);
}

.placeholder-content {
    text-align: center;
    padding: 40px 20px;
    color: #3a5c2a;
}

.placeholder-content i {
    font-size: 4rem;
    margin-bottom: 16px;
    color: #5b8c3e;
}

.placeholder-content p {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ========== SLIDESHOW HERO ========== */
.slideshow-hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
}

.slide-content {
    color: white;
    max-width: 700px;
}

.slide-content h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #ffdd88;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.prev-slide:hover, .next-slide:hover {
    background: rgba(0,0,0,0.8);
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

.slideshow-controls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: #ffd966;
}

/* ========== SECTION STYLES ========== */
.section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.2rem;
    color: #1e4a1e;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #4a5a4a;
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 16px 0;
}

.divider-green {
    width: 40px;
    height: 3px;
    background: #2a6e2a;
}

.divider-red {
    width: 20px;
    height: 3px;
    background: #b22234;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: #ffcd7e;
    color: #1e4a1e;
}

.btn-primary:hover {
    background: #f5c156;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: #b22234;
    color: white;
}

.btn-secondary:hover {
    background: #8b1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========== QUICK INFO CARDS ========== */
.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
    border: 1px solid #eae3d0;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 28px -8px rgba(0,0,0,0.12);
}

.info-icon {
    font-size: 2.5rem;
    color: #2a6e2a;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #1e4a1e;
}

.info-card p {
    color: #4a5a4a;
    margin-bottom: 16px;
}

.info-link {
    color: #b22234;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.info-link:hover {
    gap: 8px;
    color: #8b1a1a;
}

/* ========== JUBILEE COUNTDOWN ========== */
.jubilee-section {
    background: linear-gradient(115deg, #1e4a1e, #0f3a0f);
    color: white;
    padding: 48px 0;
}

.jubilee-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.countdown {
    display: flex;
    gap: 24px;
}

.countdown-item {
    text-align: center;
}

.countdown-item span {
    font-size: 2.2rem;
    font-weight: 800;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 16px;
    display: inline-block;
    min-width: 70px;
    text-align: center;
    font-family: monospace;
}

.countdown-item p {
    margin-top: 8px;
    font-size: 0.85rem;
}

/* ========== CALL TO ACTION ========== */
.cta-section {
    background: linear-gradient(95deg, #2a6e2a, #1a541a);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
    background: #0e2a0e;
    color: #f1f0e0;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-container {
    width: 70px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d4af37;
    background: #2d4a2d;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h4 {
    color: #ffd966;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ddd8c6;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #ffd966;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.social-icons a {
    background: #2c532c;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.social-icons a:hover {
    background: #b22234;
    transform: translateY(-3px);
}

.newsletter {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    margin-top: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-family: 'Source Sans Pro', sans-serif;
}

.newsletter-form button {
    background: #b22234;
    border: none;
    padding: 0 18px;
    border-radius: 0 30px 30px 0;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #8b1a1a;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2b4a2b;
    padding-top: 24px;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .school-name-compact h1 {
        font-size: 1.1rem;
        white-space: normal;
    }
    .nav-menu a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 880px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        width: 100%;
        margin-top: 16px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        border-radius: 24px;
        box-shadow: 0 20px 30px rgba(0,0,0,0.15);
        z-index: 1200;
        border: 1px solid #e0e8d8;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        white-space: normal;
        justify-content: space-between;
        width: 100%;
    }
    
    /* Mobile dropdown behavior */
    .dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f6faf2;
        padding-left: 20px;
        width: 100%;
        display: none;
        border-left: 3px solid #2a6e2a;
        margin-top: 8px;
        border-radius: 12px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown.active > a .fa-chevron-down {
        transform: rotate(180deg);
    }
}

@media (max-width: 720px) {
    .welcome-grid {
        flex-direction: column;
    }
    
    .school-name-compact h1 {
        font-size: 1rem;
        white-space: normal;
    }
    
    .logo-wrapper {
        width: 55px;
        height: 72px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .countdown {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 560px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .welcome-text h2 {
        font-size: 1.8rem;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .countdown-item span {
        font-size: 1.6rem;
        min-width: 55px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .logo-wrapper {
        width: 48px;
        height: 62px;
    }
    
    .school-name-compact h1 {
        font-size: 0.85rem;
    }
    
    .motto-short {
        font-size: 0.6rem;
    }
}