/* Variables & Reset */
:root {
    --primary-dark: #221340;
    --primary-light: #2b1a52;
    --accent-green: #48a770;
    --text-dark: #333;
    --text-light: #fff;
    --bg-gray: #f4f5f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { color: var(--text-dark); background-color: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* Header & Hero */
.main-header {
    height: 100vh;
    background-color: var(--primary-dark);
    position: relative;
    overflow: hidden; 
}
.inner-header {
    height: auto;
    min-height: 120px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}
.inner-header .header-overlay {
    background: transparent;
}

/* Sticky Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.top-nav.scrolled {
    background-color: var(--primary-dark);
    padding: 1rem 4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.top-nav a { margin: 0 1rem; transition: color 0.3s; }
.top-nav a:hover { color: var(--accent-green); }
.logo h1 { font-size: 3rem; letter-spacing: 2px; margin-bottom: -5px; text-align: center; }
.logo span { font-size: 0.8rem; letter-spacing: 4px; }

.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: rgba(43, 26, 82, 0.9);
    display: flex;
    justify-content: center;
    padding: 1.5rem;
}
.hero-bottom-bar a {
    color: var(--text-light);
    margin: 0 2rem;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar Menu */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.side-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}
.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background-color: var(--primary-light);
    z-index: 1001;
    padding: 4rem 2.5rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.side-menu.open { right: 0; }
.close-btn {
    background: none; border: none; color: white;
    font-size: 2rem; position: absolute;
    top: 2rem; right: 2.5rem; cursor: pointer;
    transition: color 0.3s;
}
.close-btn:hover { color: var(--accent-green); }
.side-nav { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 3rem; }
.side-nav a {
    color: white; font-size: 1.2rem; font-weight: bold;
    letter-spacing: 2px; transition: color 0.3s, transform 0.3s;
}
.side-nav a:hover { color: var(--accent-green); transform: translateX(5px); }

/* Typography */
.section-heading { text-align: center; padding: 5rem 2rem 2rem; }
.section-heading .subtitle {
    display: block; font-size: 0.8rem; letter-spacing: 3px;
    color: #666; text-transform: uppercase; margin-bottom: 1rem;
}
.section-heading .subtitle::after {
    content: ''; display: block; width: 40px; height: 2px;
    background: var(--accent-green); margin: 10px auto;
}
.section-heading h2 { font-size: 2.5rem; font-weight: 300; margin-bottom: 1rem; }
.section-heading p { max-width: 700px; margin: 0 auto; color: #555; line-height: 1.6; }
.section-heading.light { color: var(--text-light); }
.section-heading.light .subtitle { color: #ccc; }

/* Carousel / Explore */


/* =========================================
   EXPLORE / CAROUSEL SECTION FIX
   ========================================= */
.explore-section { 
    background: var(--bg-gray); 
    padding-bottom: 5rem; 
    overflow: hidden; 
}
.carousel-container { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 1rem; 
    padding: 0 1rem; 
    position: relative; 
    max-width: 1300px; 
    margin: 0 auto;
}
.carousel-track { 
    display: flex; 
    gap: 2rem; 
    overflow-x: auto; 
    scroll-behavior: smooth; 
    scroll-snap-type: x mandatory; 
    padding: 1rem; 
    width: 100%;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.carousel-track::-webkit-scrollbar { 
    display: none; 
}
.card {
    background-color: var(--primary-dark); 
    color: white;
    width: 400px; 
    height: 500px; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-end;
    padding: 2rem; 
    position: relative; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex-shrink: 0; 
    scroll-snap-align: start; 
    border-radius: 5px;
}
.card .learn-more { font-size: 0.8rem; font-weight: bold; letter-spacing: 1px; margin-top: 1rem; display: inline-block;}
.carousel-btn {
    background: white; border: none; border-radius: 50%;
    width: 50px; height: 50px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0; z-index: 5; transition: transform 0.2s, color 0.2s;
}
.carousel-btn:hover {
    transform: scale(1.1); color: var(--accent-green);
}

/* =========================================
   EVENTS / CALENDAR SECTION
   ========================================= */
.events-section { 
    padding: 6rem 2rem; 
    background: #fff;
    overflow: hidden;
}
.events-inner-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.section-heading.left-align { 
    text-align: left; 
    padding: 0 0 2rem 0; 
    margin-bottom: 1rem;
}
.section-heading.left-align .subtitle::after { margin: 10px 0; }
.section-heading.left-align h2 { font-size: 3rem; color: #444; }

.events-container { position: relative; margin-bottom: 2rem; }
.events-bg-box {
    position: absolute;
    top: 3rem;
    left: 200px;
    right: -50vw;
    bottom: -3rem;
    background: #f4f5f7;
    z-index: 0;
}
.events-layout { position: relative; z-index: 1; display: flex; align-items: flex-start; }

.calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 3px;
    width: 380px; 
    flex-shrink: 0; 
    background: #ddd;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.date-block {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 125px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.date-block .month { font-size: 0.85rem; font-weight: 600; letter-spacing: 2px; color: var(--primary-dark); margin-bottom: 5px; }
.date-block .day { font-size: 2.5rem; font-weight: 300; color: #333; }
.date-block:hover { background: #fafafa; }
.date-block.active { 
    background: var(--primary-dark); 
    box-shadow: 0 0 0 2px var(--primary-dark);
    transform: scale(1.03); 
    z-index: 2;
}
.date-block.active .month, .date-block.active .day { color: white; }
.date-block.highlight-border { border-bottom: 4px solid var(--accent-green); }

.events-details-container {
    flex-grow: 1;
    padding: 2rem 0 2rem 4rem;
    min-height: 400px;
}
.event-detail-pane { display: none; }
.event-detail-pane.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.event-date-header { display: flex; align-items: center; margin-bottom: 2rem; color: #555; }
.event-date-header h4 { font-size: 0.95rem; letter-spacing: 2px; font-weight: 600; text-transform: uppercase; margin-right: 15px; }
.event-date-header i { color: var(--primary-dark); font-size: 1.5rem; }

.event-item { padding: 1.5rem 0; border-bottom: 1px solid #ddd; }
.event-item:last-child { border-bottom: none; }
.event-item h3 { font-size: 1.4rem; color: var(--primary-light); font-weight: 400; margin-bottom: 0.8rem; }
.event-item p { font-size: 0.75rem; font-weight: bold; letter-spacing: 1.5px; color: #666; text-transform: uppercase; }
.event-item p i { margin-right: 8px; font-size: 0.9rem;}
.events-footer { text-align: center; margin-top: 2rem; position: relative; z-index: 10; }

/* Distinctions */
.distinctions-section { background: var(--primary-dark); padding: 4rem 2rem 8rem; }
.stats-grid { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; color: white; text-align: center; max-width: 1200px; margin: 0 auto; }
.stat-item { width: 180px; }
.icon-circle { width: 80px; height: 80px; border: 2px solid white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.5rem; }
.stat-item h3 { font-size: 3rem; font-weight: 300; margin-bottom: 1rem; }
.stat-item p { font-size: 0.85rem; line-height: 1.5; opacity: 0.9; }

/* CTA Section */
.cta-section { height: 60vh; background: url('../images/cta-bg.jpg') center/cover no-repeat; background-color: #111; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.cta-overlay { position: absolute; inset: 0; background: rgba(29, 17, 59, 0.8); }
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-size: 3.5rem; margin: 1rem 0 3rem; }
.btn-outline { border: 2px solid white; padding: 1rem 3rem; margin: 0 1rem; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; transition: all 0.3s; }
.btn-outline:hover { background: white; color: var(--primary-dark); }

/* Footer */
.main-footer { padding: 4rem 2rem 1rem; background: #fff; border-top: 5px solid var(--primary-dark); }
.footer-container { display: flex; justify-content: space-around; max-width: 1400px; margin: 0 auto 3rem; }
.footer-section h4 { color: var(--accent-green); letter-spacing: 2px; margin-bottom: 2rem; font-size: 0.9rem; }
.contact-details p { margin-bottom: 1rem; font-size: 0.9rem; color: #555; }
.contact-details i { width: 25px; color: var(--primary-dark); }
.footer-logo { text-align: center; color: var(--primary-dark); }
.footer-logo h2 { font-size: 3rem; margin-bottom: 0; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #ccc; border-radius: 50%; margin: 1rem 0.5rem; color: var(--primary-dark); }
.useful-links ul { list-style: none; }
.useful-links li { margin-bottom: 1rem; font-size: 0.9rem; color: #555; }
.footer-bottom { border-top: 1px solid #eee; padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.8rem; color: #777; max-width: 1400px; margin: 0 auto; }
.legal-links a { margin-left: 2rem; font-weight: bold; letter-spacing: 1px; color: var(--primary-dark); }

/* Inner Page Banner */
.page-banner { background-color: var(--primary-dark); background-size: cover; background-position: center; padding: 12rem 2rem 5rem; text-align: center; color: var(--text-light); border-bottom: 4px solid var(--accent-green); }
.banner-content .subtitle { display: block; font-size: 0.8rem; letter-spacing: 3px; color: var(--accent-green); margin-bottom: 1rem;}
.banner-content h2 { font-size: 3rem; font-weight: 300; margin-bottom: 1rem; }
.banner-content p { max-width: 600px; margin: 0 auto; line-height: 1.6; opacity: 0.9; }

/* Jobs List Section */
.jobs-section { padding: 4rem 2rem 8rem; background: var(--bg-gray); }
.jobs-container { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.job-card { background: #fff; padding: 2.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-left: 5px solid var(--primary-dark); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.job-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.job-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 1rem; }
.job-header h3 { color: var(--primary-dark); font-size: 1.5rem; }
.job-type { background: var(--accent-green); color: #fff; padding: 0.4rem 1rem; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;}
.job-meta { display: flex; gap: 2rem; margin-bottom: 1.5rem; color: #666; font-size: 0.9rem; }
.job-meta i { color: var(--primary-light); margin-right: 0.5rem;}
.job-desc { color: #555; line-height: 1.6; margin-bottom: 2rem; }
.btn-primary { background: var(--primary-dark); color: #fff; padding: 0.8rem 2rem; display: inline-block; font-weight: bold; font-size: 0.85rem; letter-spacing: 1px; transition: background 0.3s; }
.btn-primary:hover { background: var(--primary-light); color: #fff;}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .top-nav { padding: 1.5rem; }
    .hero-bottom-bar { flex-wrap: wrap; }
    .footer-container { flex-direction: column; text-align: center; gap: 3rem; }
}
@media (max-width: 900px) {
    .events-layout { flex-direction: column; align-items: center; }
    .events-bg-box { left: -50vw; top: 150px; }
    .calendar-grid { width: 100%; max-width: 400px; margin-bottom: 2rem;}
    .events-details-container { padding: 2rem; width: 100%; }
}
@media (max-width: 768px) {
    .top-nav .nav-left, .top-nav .nav-right > a:not(#menu-toggle) { display: none; }
    .job-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .job-meta { flex-direction: column; gap: 0.5rem; }
}

/* =========================================
   NEWS / HIGHLIGHTS SECTION
   ========================================= */
.news-section { padding: 4rem 2rem 6rem; background: #fff; }
.news-inner-wrap { max-width: 1200px; margin: 0 auto; }
.news-subheader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.news-label { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; color: var(--primary-dark); }
.news-label i { font-size: 1.2rem; }
.rss-link { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; border: 1px solid #ccc; border-radius: 50%; color: var(--primary-dark); transition: all 0.3s; }
.rss-link:hover { background: var(--primary-dark); color: #fff; }

.news-carousel-container { position: relative; overflow: hidden; margin-bottom: 3rem; }
.news-track { display: flex; gap: 2rem; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding-bottom: 2rem; -ms-overflow-style: none; scrollbar-width: none; }
.news-track::-webkit-scrollbar { display: none; }

.news-card { flex: 0 0 calc(33.333% - 1.33rem); min-width: 300px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; }
.news-image { width: 100%; height: 220px; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-content { background: #fff; width: 85%; margin-top: -30px; padding: 2rem 1.5rem; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.08); position: relative; z-index: 2; border-bottom: 3px solid transparent; transition: border-color 0.3s; }
.news-card:hover .news-content { border-bottom-color: var(--accent-green); }
.news-content h3 { font-size: 1.1rem; font-weight: 300; color: #444; margin-bottom: 1.5rem; line-height: 1.4; }
.read-story { font-size: 0.75rem; font-weight: bold; letter-spacing: 1.5px; color: var(--primary-dark); text-transform: uppercase; }
.read-story i { margin-left: 5px; }

.news-nav-buttons { display: flex; gap: 1rem; }
.news-btn { background: #fff; border: 1px solid #ccc; border-radius: 50%; width: 45px; height: 45px; cursor: pointer; color: var(--primary-dark); transition: all 0.3s; }
.news-btn:hover { border-color: var(--primary-dark); background: var(--primary-dark); color: #fff; }

@media (max-width: 900px) { .news-card { flex: 0 0 calc(50% - 1rem); } }
@media (max-width: 600px) { .news-card { flex: 0 0 100%; } }

/* =========================================
   ANNOUNCEMENTS SECTION
   ========================================= */
.announcements-section { padding: 4rem 2rem 8rem; background: #fff; position: relative; overflow: hidden; }
.announcements-bg-box { position: absolute; top: 0; left: 0; width: 35%; height: 100%; background: #f4f5f7; z-index: 0; }
.announcements-inner-wrap { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

.announcements-carousel { position: relative; margin-bottom: 3rem; }
.announcements-track { display: flex; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.announcements-track::-webkit-scrollbar { display: none; }

.announcement-slide { flex: 0 0 100%; min-width: 100%; display: flex; align-items: center; gap: 4rem; scroll-snap-align: start; }
.announcement-image-col { flex: 1; background: #fff; padding: 1rem; box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.announcement-image-col img { width: 100%; height: auto; display: block; }

.announcement-text-col { flex: 1; padding-right: 2rem; padding-bottom: 5rem; }
.ann-label { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; color: #666; margin-bottom: 1rem; text-transform: uppercase; }
.ann-label i { color: var(--primary-dark); font-size: 1.2rem; }
.announcement-text-col h2 { font-size: 2.2rem; color: #444; font-weight: 300; margin-bottom: 1rem; }
.announcement-text-col h4 { font-size: 1rem; color: #333; margin-bottom: 1.5rem; line-height: 1.5; font-weight: 600; }
.announcement-text-col p { color: #666; line-height: 1.6; margin-bottom: 2rem; font-size: 0.95rem; }
.announcement-text-col .learn-more { font-size: 0.8rem; font-weight: bold; letter-spacing: 1.5px; color: var(--primary-dark); text-transform: uppercase; }

.ann-nav-buttons-fixed { position: absolute; bottom: 0; left: calc(50% + 2rem); display: flex; gap: 1rem; }
.ann-btn { background: #fff; border: 1px solid #ccc; border-radius: 50%; width: 45px; height: 45px; cursor: pointer; color: var(--primary-dark); transition: all 0.3s; }
.ann-btn:hover { border-color: var(--primary-dark); background: var(--primary-dark); color: #fff; }

.announcements-footer { text-align: center; }
.btn-primary.dark { background: var(--primary-dark); margin-top: 2rem; }

@media (max-width: 900px) {
    .announcements-bg-box { width: 100%; height: 50%; }
    .announcement-slide { flex-direction: column; gap: 2rem; }
    .ann-nav-buttons-fixed { position: relative; left: 0; margin-left: 0; justify-content: center; margin-top: 2rem; }
    .announcement-text-col { padding-bottom: 0; padding-right: 0; }
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   CTA SECTION REFINEMENTS
   ========================================= */
.cta-section {
    background: url('../images/cta-bg.jpg') center/cover no-repeat;
    background-attachment: fixed; /* Parallax effect */
}
.cta-content .subtitle {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #eee;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.cta-content .subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-green);
    margin: 15px auto 0;
}
.cta-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.btn-outline {
    border: 1px solid white;
    padding: 1rem 4rem;
    margin: 0;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    background: transparent;
    color: white;
}
.btn-outline:hover {
    background: white;
    color: var(--primary-dark);
}

/* =========================================
   FLOATING ACTION BUTTONS (Chatbot & Access)
   ========================================= */
.floating-btn {
    position: fixed;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.floating-btn:hover {
    transform: scale(1.1);
}
.accessibility-btn {
    left: 20px;
    background-color: #0056b3; /* Accessible blue */
    font-size: 1.5rem;
}
.chatbot-btn {
    right: 20px;
    background-color: var(--primary-dark);
    font-size: 1.8rem;
}

/* Chatbot pulse animation */
.chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}
