@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_Font_Family/Inter Regular 400.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_Font_Family/Inter Italic 400.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_Font_Family/Inter Bold 700.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_Font_Family/Inter Bold Italic 700.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins Light 300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins Light Italic 300.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins Regular 400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins Italic 400.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins Medium 500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins Medium Italic 500.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins SemiBold 600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins SemiBold Italic 600.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins Bold 700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins Bold Italic 700.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins ExtraBold 800.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins ExtraBold Italic 800.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins Black 900.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins_Font_Family/Poppins Black Italic 900.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}


:root {
    --background-color: #f9f9f9;
    --text-color: #222;
    --content-max-width: 1100px;
    --content-padding-x: 1rem;
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--text-color);
    background-color: #c5c5c7;
    /*background-image: url('../media/img/bot.jpg');*/
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    padding-bottom: 0;
    padding-top: 0;
    margin: 0;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

:root {
    --header-bg-color: #0764faE0;
    --header-text-color: #fff;
    --nav-btn-bg-color: #1857bd;
    --nav-btn-text-color: #0c0b0b;
    --nav-btn-hover-bg-color: #c27345;
    --nav-btn-hover-text-color: #d9e2f1;
    --event-banner-bg-color: #830404E0;
    --event-banner-text-color: #fff;
    --heading-color: #0c64f1;
    --marquee-bg-color: #0743a3;
    --marquee-text-color: #fcf8f5;
    --welcome-p-color: #800000;
    --news-highlight-heading-color: #800000;
    --footer-bg-color: #1068f5;
    --footer-text-color: #fff;
    --socials-color: #e9d8cf;
    --card-bg-color: #e7dfdfbb;
    --card-shadow-color: rgba(45, 84, 148, 0.1);
    --card-hover-shadow-color: rgba(45, 84, 148, 0.15);
    --bottom-nav-bg-color: #4169E1;
    --bottom-nav-text-color: #fff;
    --bottom-nav-icon-color: #fff;
    --bottom-nav-hover-bg-color: rgba(255, 255, 255, 0.2);
    --form-bg-color: #fff;
    --form-border-color: #e0e0e0;
    --form-input-bg-color: #f9f9f9;
    --form-input-text-color: #333;
    --form-input-focus-border-color: #2D5494;
    --form-input-focus-shadow-color: rgba(45, 84, 148, 0.1);
    --form-placeholder-color: #999;
    --form-placeholder-focus-color: #666;
    --send-btn-bg-color: #2D5494;
    --send-btn-text-color: #fff;
    --send-btn-shadow-color: rgba(45, 84, 148, 0.2);
    --send-btn-hover-bg-color: #F5B895;
    --send-btn-hover-text-color: #2D5494;
    --send-btn-hover-shadow-color: rgba(45, 84, 148, 0.25);
    --staff-speciality-color: #800000;
    --staff-card-shadow-color: rgba(45, 84, 148, 0.1);
    --staff-card-hover-shadow-color: rgba(0, 0, 0, 0.15);
    --gallery-description-color: #333;
    --faq-question-color: #2D5494;
    --faq-answer-color: #333;
    --download-link-color: #333;
    --download-link-hover-color: #2D5494;
    --download-icon-color: #800000;
    --admissions-text-color: #333;
    --admissions-strong-color: #2D5494;
    --admissions-label-color: #2D5494;
    --timeline-date-color: #2D5494;
    --timeline-dot-bg-color: #F5B895;
    --timeline-dot-border-color: #2D5494;
    --timeline-content-bg-color: #fff;
    --timeline-content-shadow-color: rgba(45, 84, 148, 0.1);
    --timeline-content-heading-color: #800000;
    --timeline-content-text-color: #333;
}

.dark-mode {
    --background-color: #0f0f0f;
    --text-color: #e8e8e8;
    --header-bg-color: linear-gradient(135deg, #800000E0, #4a0000E0);
    --header-text-color: #f0f0f0;
    --nav-btn-bg-color: #1a3d5c;
    --nav-btn-text-color: #f0f0f0;
    --nav-btn-hover-bg-color: #D4AF37;
    --nav-btn-hover-text-color: #0f0f0f;
    --event-banner-bg-color: linear-gradient(135deg, #800000, #4a0000);
    --event-banner-text-color: #f0f0f0;
    --heading-color: #D4AF37;
    --marquee-bg-color: linear-gradient(135deg, #1a3d5c, #0f1f2e);
    --marquee-text-color: #f0f0f0;
    --welcome-p-color: #c0c0c0;
    --news-highlight-heading-color: #D4AF37;
    --footer-bg-color: linear-gradient(135deg, #0f1f2e, #1a3d5c);
    --footer-text-color: #f0f0f0;
    --socials-color: #D4AF37;
    --card-bg-color: rgba(20, 25, 35, 0.9);
    --card-shadow-color: rgba(0, 0, 0, 0.5);
    --card-hover-shadow-color: rgba(212, 175, 55, 0.2);
    --bottom-nav-bg-color: #1a3d5c;
    --bottom-nav-text-color: #fff;
    --bottom-nav-icon-color: #D4AF37;
    --bottom-nav-hover-bg-color: rgba(212, 175, 55, 0.2);
    --form-bg-color: rgba(20, 25, 35, 0.95);
    --form-border-color: rgba(212, 175, 55, 0.3);
    --form-input-bg-color: rgba(15, 15, 15, 0.8);
    --form-input-text-color: #f0f0f0;
    --form-input-focus-border-color: #D4AF37;
    --form-input-focus-shadow-color: rgba(212, 175, 55, 0.2);
    --form-placeholder-color: #888;
    --form-placeholder-focus-color: #bbb;
    --send-btn-bg-color: #D4AF37;
    --send-btn-text-color: #0f0f0f;
    --send-btn-shadow-color: rgba(212, 175, 55, 0.3);
    --send-btn-hover-bg-color: #e0c050;
    --send-btn-hover-text-color: #0f0f0f;
    --send-btn-hover-shadow-color: rgba(212, 175, 55, 0.5);
    --staff-speciality-color: #D4AF37;
    --staff-card-shadow-color: rgba(0, 0, 0, 0.5);
    --staff-card-hover-shadow-color: rgba(212, 175, 55, 0.2);
    --gallery-description-color: #f0f0f0;
    --faq-question-color: #D4AF37;
    --faq-answer-color: #c0c0c0;
    --download-link-color: #f0f0f0;
    --download-link-hover-color: #D4AF37;
    --download-icon-color: #D4AF37;
    --admissions-text-color: #f0f0f0;
    --admissions-strong-color: #D4AF37;
    --admissions-label-color: #D4AF37;
    --timeline-date-color: #D4AF37;
    --timeline-dot-bg-color: #D4AF37;
    --timeline-dot-border-color: #800000;
    --timeline-content-bg-color: rgba(20, 25, 35, 0.95);
    --timeline-content-shadow-color: rgba(0, 0, 0, 0.5);
    --timeline-content-heading-color: #D4AF37;
    --timeline-content-text-color: #c0c0c0;
}


/* Modern Header Styling */
header {
    background: #800000;
    color: var(--header-text-color);
    padding: 1rem 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: 0;
    position: sticky;
    backdrop-filter: blur(5px);
    top: 0;
    z-index: 999;
    flex-wrap: wrap;
    flex-direction: row;
    transition: padding 0.3s ease;
    box-sizing: border-box;
}

header.header-collapsed {
    padding: 0.5rem 1rem;
}

header.header-collapsed .header-text-wrap h1 {
    font-size: 0.75rem;
}

header.header-collapsed .logo-circle {
    width: 40px;
    height: 40px;
}

header.header-collapsed .logo-circle img {
    width: 40px;
    height: 40px;
}

header .header-flex {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.header-text-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-text-wrap h1 {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--header-text-color);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    transition: font-size 0.3s ease;
}

.logo-circle {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

.logo-circle img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: width 0.3s ease, height 0.3s ease;
}

header.logo-hidden .logo-circle {
    opacity: 0;
    width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

header h1 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--header-text-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    flex-shrink: 1;
    min-width: 200px;
}



/* Header Controls - Menu and Search buttons */
.header-controls {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    align-items: center;
}

/* Navigation Menu - now appears below button, slides in from right */
nav.nav-menu {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    align-items: flex-start;
    flex: 0 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    padding-right: 0.5rem;
    flex-direction: column;
    border-radius: 0 0 0 8px;
    position: fixed;
    top: 70px;
    right: 0;
    width: 280px;
    max-width: 90%;
    background: linear-gradient(135deg, var(--header-bg-color) 0%, rgba(29, 109, 238, 0.95) 100%);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.2);
}

nav.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.3);
}

.nav-btn {
    background: transparent;
    color: var(--header-text-color);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 0.8rem 1.2rem;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    backdrop-filter: none;
    width: 100%;
    text-align: left;
    margin: 0;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--header-text-color);
    border-color: rgba(255, 255, 255, 0.15);
    transform: none;
    box-shadow: none;
}

nav.nav-menu a.nav-btn.is-active {
    background: rgba(255, 255, 255, 0.18);
    border-left: 3px solid rgba(212, 175, 55, 0.95);
}

nav.nav-menu a.nav-btn:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.9);
    outline-offset: 2px;
}

/* hamburger menu button - 3 stacked bars */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.6rem;
    color: var(--header-text-color);
    transition: all 0.3s ease;
    width: auto;
    height: auto;
}

.hamburger:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--header-text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Search button next to menu */
.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.6rem 0.8rem;
    color: var(--header-text-color);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

.search-btn:active {
    transform: scale(0.95);
}

.header-quick-links {
    display: none;
}

/* Search Container - appears below header */
.search-container {
    display: none;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(36, 1, 1, 0.98);
    border-bottom: 2px solid var(--header-bg-color);
    transition: all 0.3s ease;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 997;
}

.search-container.hidden {
    display: none;
}

.search-container:not(.hidden) {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: var(--header-text-color);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--header-bg-color);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(7, 100, 250, 0.4);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.close-search-btn {
    background: none;
    border: none;
    color: var(--header-text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-search-btn:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Highlight search results */
.search-highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.active-highlight {
    background-color: #ff6f00;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 111, 0, 0.5);
}

.logo img {
    height: 60px;
}
nav {
    margin-top: 0.5rem;
    border-radius: 3px;
}
nav a {
    color: var(--header-text-color);
    text-decoration: none;
    margin: 0 1rem;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    transition: color 0.2s;
}
nav a:hover {
    color: var(--nav-btn-hover-bg-color);
}
.event-banner {
    background: var(--event-banner-bg-color);
    background-color: rgba(99, 3, 3, 0.932);
    color: var(--event-banner-text-color);
    backdrop-filter: blur(5px);
    text-align: center;
    padding: 0.5rem 0;
    border-radius: 12px;
    font-weight: 500;
}

.announcement-bar {
    background: rgba(7, 67, 163, 0.95);
    color: #fff;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.announcement-inner {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.announcement-text {
    font-weight: 600;
    font-size: 1rem;
}

.announcement-close {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.25rem 0.55rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.15s ease, background 0.2s ease;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}

.announcement-close:active {
    transform: scale(0.98);
}

.announcement-bar.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.announcement-bar li > a {
    display: block;
    padding: 0.35rem 0.25rem;
    border-radius: 8px;
}

.announcement-bar li > a:hover {
    background: rgba(255, 255, 255, 0.10);
}

.announcement-bar li > a:active {
    background: rgba(255, 255, 255, 0.16);
}

.news-highlights-heading {
    margin: 1.25rem 0 0.75rem;
    text-align: center;
    color: var(--news-highlight-heading-color);
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.gallery-highlights-heading {
    margin: 1.25rem 0 0.75rem;
    text-align: center;
    color: var(--news-highlight-heading-color);
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}
main {
    max-width: var(--content-max-width);
    margin: 1.5rem auto;
    padding: 0 var(--content-padding-x);
}

main > section {
    margin-top: var(--space-4);
}

main > section:first-child {
    margin-top: 0;
}
header h1 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--header-text-color);
    font-size: 2.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    border-radius: 12px;
}

.quality-marquee {
    background-color: var(--marquee-bg-color);
    color: var(--marquee-text-color);
    padding: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 1rem;
}
.welcome p {
    font-size: 1.2rem;
    color: var(--welcome-p-color);
}
.news-highlights h2, .intro-events h2 {
    color: var(--news-highlight-heading-color);
    font-family: 'Poppins', Arial, sans-serif;
    margin-top: 2rem;
    border-radius: 12px;
}
/* Modern Footer Styling */
footer {
    background: rgba(66, 3, 3, 0.87);
    color: var(--footer-text-color);
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
    align-items: center;
    margin-top: 3rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(3px);
    border-radius: 10px;
}

.footer-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
    transition: none;
    text-align: center;
    border-bottom: none;
}

.footer-header:hover {
    background: transparent;
}

.footer-header h3 {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align:center;
}

.footer-toggle {
    font-size: 1.2rem;
    transition: none;
    display: none;
}

.footer-toggle.open {
    transform: rotate(180deg);
}

.footer-content {
    max-height: none;
    overflow: visible;
    transition: none;
    padding: 1.5rem;
}

.footer-content.open {
    max-height: none;
    padding: 1.5rem;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

footer nav a {
    color: var(--footer-text-color);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

footer nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--socials-color);
    border-color: var(--socials-color);
}

.socials {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.socials a {
    color: #800000;
    text-decoration: none;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.socials a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.accessibility {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 5 rem;
    opacity: 0.9;
}

/*Designing the popup banner for special news updates and offers*/
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(240, 222, 222, 0.979);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    overflow-y: auto;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    text-align: center;
    width: 300px;
    margin-top: 50px;
}

.close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

/* Modern Form Styles */
.contact-form {
    background: var(--form-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 8px 32px var(--card-hover-shadow-color);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 80%;
    padding: 1rem;
    border: 1px solid var(--form-border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', Arial, sans-serif;
    background: var(--form-input-bg-color);
    transition: all 0.3s ease;
    color: var(--form-input-text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--form-input-focus-border-color);
    background: var(--form-bg-color);
    box-shadow: 0 0 0 3px var(--form-input-focus-shadow-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--form-placeholder-color);
    transition: all 0.3s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    color: var(--form-placeholder-focus-color);
}

.send-btn {
    background: var(--send-btn-bg-color);
    color: var(--send-btn-text-color);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Poppins', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--send-btn-shadow-color);
}

.send-btn:hover {
    background: var(--send-btn-hover-bg-color);
    color: var(--send-btn-hover-text-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--send-btn-hover-shadow-color);
}

.send-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px var(--send-btn-shadow-color);
}

/* Staff Page Styles */
.staff-container {
    display: flex;
    will-change: scroll-position;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1.5rem; /* Add some space for the scrollbar */
    gap: 2rem;
    scroll-behavior: smooth;
}

.staff-card {
    background: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--staff-card-shadow-color);
    padding: 2rem;
    backdrop-filter: blur(8px);
    min-width: 300px;
    text-align: center;
    transition: all 0.9s ease;
}

.staff-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--staff-card-hover-shadow-color);
}

.staff-card img {
    width: 300px;
    height: 300px;
    border-radius: 5%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 2px solid var(--card-bg-color);
    box-shadow: 0 2px 8px var(--staff-card-shadow-color);
}

.staff-card h2 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.staff-card .speciality {
    font-weight: 500;
    color: var(--staff-speciality-color);
    margin-bottom: 1rem;
}

.staff-card p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Gallery Page Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: 0.5rem 0;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--card-hover-shadow-color);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.04);
}

.gallery-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-image img,
.gallery-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-description {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gallery-description h2 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--heading-color);
    font-size: 1.05rem;
    margin: 0;
}

.gallery-description p {
    font-size: 1rem;
    color: var(--gallery-description-color);
    line-height: 1.6;
}

.gallery-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.gallery-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Page Styles */
.faq-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.faq-card {
    background: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--card-hover-shadow-color);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/*Customising my quick links card on index.html*/
.link-card {
    background: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 24px var(--staff-card-shadow-color);
    padding: 0.2rem;
    backdrop-filter: blur(3px);
    min-width: 200px;
    min-height: 200px;
    text-align: center;
    animation: forwards;
    transition: all 0.9s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.button{
    border-radius: 5px;
    background-color: #cad2df15;
    color: #800000;
    padding-left: 5px;
    padding-right: 5px;
    box-shadow: #1a1a1a;
    border-left-style: outset;
    gap: 5px;
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.button:active {
    transform: translateY(1px);
}
/*End of link card customisation*/

.faq-question h3 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--faq-question-color);
    font-size: 1.2rem;
    margin: 0;
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-answer p {
    font-size: 1rem;
    color: var(--faq-answer-color);
    line-height: 1.6;
    margin: 0;
}

.faq-card.active .faq-answer {
    max-height: 1000px; /* A large enough value to show the content */
}

/* Downloads Page Styles */
.downloads-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
    color: #1068f5;
}

.download-card {
    background: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--card-hover-shadow-color);
}

.download-card h2 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.download-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-card li {
    margin-bottom: 0.8rem;
}

.download-card li a {
    color: var(--download-link-color);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--form-border-color);
    transition: color 0.2s;
}

.download-card li a:hover {
    color: var(--download-link-hover-color);
}

.download-icon {
    font-size: 1.2rem;
    color: var(--download-icon-color);
}

/* Admissions Page Styles */
.admissions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.admissions-card {
    background: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admissions-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--card-hover-shadow-color);
}

.admissions-card h2 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.admissions-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admissions-card li {
    margin-bottom: 0.8rem;
    color: var(--admissions-text-color);
    line-height: 1.6;
}

.admissions-card li strong {
    color: var(--admissions-strong-color);
}

.admission-form .form-group {
    margin-bottom: 1rem;
}

.admission-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--admissions-label-color);
}

.admission-form input[type="text"],
.admission-form input[type="date"],
.admission-form input[type="tel"],
.admission-form input[type="email"],
.admission-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--form-border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', Arial, sans-serif;
    background: var(--form-input-bg-color);
    transition: all 0.3s ease;
    color: var(--form-input-text-color);
}

.admission-form input:focus,
.admission-form select:focus {
    outline: none;
    border-color: var(--form-input-focus-border-color);
    background: var(--form-bg-color);
    box-shadow: 0 0 0 3px var(--form-input-focus-shadow-color);
}

.admission-form .send-btn {
    margin-top: 1.5rem;
    width: auto;
}

/* Admissions Page Styles */
.admissions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.admissions-card {
    background: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admissions-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--card-hover-shadow-color);
}

.admissions-card h2 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.admissions-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admissions-card li {
    margin-bottom: 0.8rem;
    color: var(--admissions-text-color);
    line-height: 1.6;
}

.admissions-card li strong {
    color: var(--admissions-strong-color);
}

.admission-form .form-group {
    margin-bottom: 1rem;
}

.admission-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--admissions-label-color);
}

.admission-form input[type="text"],
.admission-form input[type="date"],
.admission-form input[type="tel"],
.admission-form input[type="email"],
.admission-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--form-border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', Arial, sans-serif;
    background: var(--form-input-bg-color);
    transition: all 0.3s ease;
    color: var(--form-input-text-color);
}

.admission-form input:focus,
.admission-form select:focus {
    outline: none;
    border-color: var(--form-input-focus-border-color);
    background: var(--form-bg-color);
    box-shadow: 0 0 0 3px var(--form-input-focus-shadow-color);
}

.admission-form .send-btn {
    margin-top: 1.5rem;
    width: auto;
}
.popup-news-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block; /* Remove extra space below image */
}

.contact-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    padding: 0.2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.2rem;
    transition: all 0.3s ease;
}

/* Generic Card Style */
.card {
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    padding: 0.2rem 1rem 2rem 1rem;
    transition: all 0.3s ease;
    position: relative; /* Keep this so the pseudo-element stays inside */
    overflow: hidden;   /* Ensures the background stays within the border-radius */
    z-index: 1;         /* Ensures content stays above the background */
}

.card::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    
    /* Move your background properties here */
    background-image: url(../media/logos/logo.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 200px 200px;
    
    /* Set your transparency here */
    opacity: 0.1; 
    
    z-index: -1; /* Places it behind your text */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--card-hover-shadow-color);
}

.welcome_card{
 border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    padding: 0.2rem 1rem 2rem 1rem;
    transition: all 0.3s ease;
    position: relative; /* Keep this so the pseudo-element stays inside */
    overflow: hidden;   /* Ensures the background stays within the border-radius */
    z-index: 1;         /* Ensures content stays above the background */
}

.welcome_card::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    
    /* Move your background properties here */
    background-image: url(../media/img/Primary_Campus.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 200px 200px;
    
    /* Set your transparency here */
    opacity: 0.1; 
    
    z-index: -1; /* Places it behind your text */
}
   


/* Share Button in Cards */
.card-share-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(128, 0, 0, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-share-button:hover {
    background: rgba(212, 175, 55, 0.95);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-share-button:active {
    transform: scale(0.95);
}

.card-share-button i {
    display: flex;
    align-items: center;
    justify-content: center;
}
.head-card {
    background: var(--card-bg-color);
    color: #800000;
    border-radius: 12px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    padding-bottom: 3px;
    padding-top: 3px;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: all 0.3s ease;
}

/* News Page Styles */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.news-card {
    background: var(--card-bg-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><circle cx="50" cy="50" r="45" fill="%23800000"/><path d="M35 50 Q50 35 65 50 Q50 65 35 50" fill="%23D4AF37"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 150px 150px;
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    transition: all 0.3s ease;
    overflow: hidden; /* Ensures image corners are rounded with card */
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--card-hover-shadow-color);
}

.news-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Covers the area, cropping if necessary */
    display: block; /* Remove extra space below image */
}

.news-content {
    padding: 1.5rem;
}

.news-content h2 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--heading-color);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.news-date {
    font-size: 0.9rem;
    color: var(--news-highlight-heading-color);
    margin-bottom: 1rem;
}

.news-content p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.home-image {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    object-fit: cover; /* Covers the area, cropping if necessary */
    display: block;
    border-radius: 12px;
}
.home-video {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    object-fit: cover; /* Covers the area, cropping if necessary */
    display: block;
    border-radius: 12px;
}
.intro-gif{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* Academics Page Styles */
.academics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.academics-card {
    background: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.academics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--card-hover-shadow-color);
}

.academics-card h2 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.academics-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.academics-card li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.6;
}

.academics-card li strong {
    color: var(--admissions-strong-color);
}

/* Academics Page Styles */
.academics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.academics-card {
    background: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.academics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--card-hover-shadow-color);
}

.academics-card h2 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.academics-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.academics-card li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.6;
}

.academics-card li strong {
    color: var(--admissions-strong-color);
}

/* About Page Styles */
.about-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* About Page Styles */
.about-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Home Page Styles */
.home-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Timeline Page Styles */
.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.timeline-item {
    background: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--card-shadow-color);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 5px solid var(--timeline-dot-border-color);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--card-hover-shadow-color);
}

.timeline-date {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    color: var(--timeline-date-color);
    font-size: 0.95rem;
    background: var(--timeline-dot-bg-color);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 1rem;
    width: fit-content;
    text-align: center;
}

.timeline-date::after {
    display: none;
}

.timeline-content {
    flex: 1;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-left: 0;
    position: relative;
}

.timeline-content::before {
    display: none;
}

.timeline-content h2 {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--timeline-content-heading-color);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 1rem;
    color: var(--timeline-content-text-color);
    line-height: 1.6;
    margin: 0;
}

/* News Highlights Carousel */
#news-highlights-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(7, 100, 250, 0.1), rgba(128, 0, 0, 0.1));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-highlights-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f9f9f9;
}

.news-highlight-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: stretch;
}

.news-highlight-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slide transition animations */
@keyframes slide-from-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-from-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-from-up {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-from-down {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.news-highlights-carousel.slide-left .news-highlight-slide.active {
    animation: slide-from-left 0.6s ease-in-out forwards;
}

.news-highlights-carousel.slide-right .news-highlight-slide.active {
    animation: slide-from-right 0.6s ease-in-out forwards;
}

.news-highlights-carousel.slide-up .news-highlight-slide.active {
    animation: slide-from-up 0.6s ease-in-out forwards;
}

.news-highlights-carousel.slide-down .news-highlight-slide.active {
    animation: slide-from-down 0.6s ease-in-out forwards;
}

.news-highlight-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
}

.news-highlight-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    background-color: #e0e0e0;
}

.news-highlight-content {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.news-highlight-date {
    color: #D4AF37;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-highlight-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #800000;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.news-highlight-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
}

.news-highlight-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(128, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-highlight-nav:hover {
    background: rgba(128, 0, 0, 0.9);
}

.news-highlight-prev {
    left: 10px;
}

.news-highlight-next {
    right: 10px;
}

.news-highlight-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.news-highlight-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.news-highlight-dot.active {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.news-highlight-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .news-highlights-carousel {
        height: 350px;
    }

    .news-highlight-link {
        flex-direction: column;
    }

    .news-highlight-image {
        width: 100%;
        height: 50%;
    }

    .news-highlight-content {
        width: 100%;
        height: 50%;
        padding: 1.5rem;
    }

    .news-highlight-title {
        font-size: 1.3rem;
    }

    .news-highlight-excerpt {
        display: none;
    }

    .news-highlight-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .news-highlights-carousel {
        height: 300px;
    }

    .news-highlight-content {
        padding: 1rem;
    }

    .news-highlight-date {
        font-size: 0.8rem;
    }

    .news-highlight-title {
        font-size: 1.1rem;
    }

    .news-highlight-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Gallery Highlights Carousel */
#gallery-highlights-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-highlights-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f9f9f9;
}

.gallery-highlight-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: stretch;
}

.gallery-highlight-slide.active {
    opacity: 1;
    z-index: 1;
}

.gallery-highlight-link {
    width: 100%;
    height: 100%;
    display: flex;
    text-decoration: none;
    color: inherit;
}

.gallery-highlight-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    background-color: #e0e0e0;
}

.gallery-highlight-content {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.gallery-highlight-video-indicator {
    color: #D4AF37;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-highlight-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #800000;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.gallery-highlight-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
}

.gallery-highlight-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(128, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-highlight-nav:hover {
    background: rgba(128, 0, 0, 0.9);
}

.gallery-highlight-prev {
    left: 10px;
}

.gallery-highlight-next {
    right: 10px;
}

.gallery-highlight-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.gallery-highlight-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-highlight-dot.active {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-highlight-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-highlights-carousel {
        height: 350px;
    }

    .gallery-highlight-link {
        flex-direction: column;
    }

    .gallery-highlight-image {
        width: 100%;
        height: 50%;
    }

    .gallery-highlight-content {
        width: 100%;
        height: 50%;
        padding: 1.5rem;
    }

    .gallery-highlight-title {
        font-size: 1.3rem;
    }

    .gallery-highlight-excerpt {
        display: none;
    }

    .gallery-highlight-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-highlights-carousel {
        height: 300px;
    }

    .gallery-highlight-content {
        padding: 1rem;
    }

    .gallery-highlight-video-indicator {
        font-size: 0.8rem;
    }

    .gallery-highlight-title {
        font-size: 1.1rem;
    }

    .gallery-highlight-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}