/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2C3E50;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== DARK MODE VARIABLES ==================== */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F7FA;
    --bg-card: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #5D6D7E;
    --border-color: #E8ECF0;
    --header-bg: #0B1A3A;
    --header-text: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.06);
    --shadow-hover: rgba(11, 26, 58, 0.12);
    --input-bg: #FFFFFF;
    --section-alt: #F5F7FA;
}

body.dark-mode {
    --bg-primary: #0A1628;
    --bg-secondary: #0D1A30;
    --bg-card: #122240;
    --text-primary: #E8ECF0;
    --text-secondary: #B0C4DE;
    --border-color: #1A3A5A;
}

body.dark-mode .dark-toggle {
    border-color: #D4A843;
}

body.dark-mode .dark-toggle img {
    filter: brightness(0) invert(1);
}

body.dark-mode .welcome,
body.dark-mode .activities,
body.dark-mode .admissions-page,
body.dark-mode .program-detail,
body.dark-mode .contact-page,
body.dark-mode .about-intro,
body.dark-mode .key-facts,
body.dark-mode .collaboration-section:nth-child(odd) {
    background-color: var(--bg-primary);
}

body.dark-mode .programs-highlights,
body.dark-mode .news-preview,
body.dark-mode .mission-vision,
body.dark-mode .about-cta,
body.dark-mode .programs-page,
body.dark-mode .news-page,
body.dark-mode .collaboration-section:nth-child(even) {
    background-color: var(--bg-secondary);
}

body.dark-mode .program-card,
body.dark-mode .news-card,
body.dark-mode .news-page-card,
body.dark-mode .program-page-card,
body.dark-mode .mission-box,
body.dark-mode .vision-box,
body.dark-mode .fact-item,
body.dark-mode .contact-info-item,
body.dark-mode .news-ticker {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

body.dark-mode .program-card p,
body.dark-mode .news-card p,
body.dark-mode .news-page-card p,
body.dark-mode .program-page-card p,
body.dark-mode .fact-item p,
body.dark-mode .contact-info-item p,
body.dark-mode .about-intro-content p,
body.dark-mode .program-detail-section p,
body.dark-mode .admissions-list li,
body.dark-mode .process-list li,
body.dark-mode .admissions-contact p,
body.dark-mode .course-list li,
body.dark-mode .career-list li,
body.dark-mode .requirement-item ul li {
    color: var(--text-secondary);
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4,
body.dark-mode .program-card h3, body.dark-mode .news-card h3,
body.dark-mode .program-page-card h3, body.dark-mode .section-title,
body.dark-mode .contact-form h2, body.dark-mode .contact-info h2,
body.dark-mode .contact-socials h2,
body.dark-mode .mission-box h3, body.dark-mode .vision-box h3,
body.dark-mode .fact-item h4, body.dark-mode .contact-info-item h4 {
    color: var(--text-primary);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: #7F8C8D;
}

body.dark-mode .success-message {
    background-color: #1A4A3A;
}

body.dark-mode .admissions-contact {
    background-color: var(--bg-card);
}

body.dark-mode .duration-item,
body.dark-mode .requirement-item {
    background-color: var(--bg-secondary);
}

body.dark-mode .news-ticker {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .ticker-item {
    background-color: rgba(255, 255, 255, 0.03);
}

body.dark-mode .ticker-item p {
    color: #B0C4DE;
}

body.dark-mode .stat-item .stat-label {
    color: #B0C4DE;
}

body.dark-mode .program-details {
    background-color: var(--bg-secondary);
}

body.dark-mode .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .social-icons a:hover {
    background-color: #D4A843;
}

body.dark-mode .footer-contact ul li {
    color: #B0C4DE;
}

body.dark-mode .footer-links ul li a {
    color: #B0C4DE;
}

body.dark-mode .footer-about p {
    color: #B0C4DE;
}

body.dark-mode .footer-partner p {
    color: #B0C4DE;
}

body.dark-mode .modal-box {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

body.dark-mode .modal-box h2 {
    color: var(--text-primary);
}

body.dark-mode .modal-box .form-group label {
    color: var(--text-primary);
}

body.dark-mode .modal-box .form-group input,
body.dark-mode .modal-box .form-group textarea,
body.dark-mode .modal-box .form-group select {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode .modal-box .thumbnail-options .option {
    border-color: var(--border-color);
}

body.dark-mode .modal-box .thumbnail-options .option span {
    color: var(--text-primary);
}

body.dark-mode .admin-table-wrapper {
    background-color: var(--bg-card);
}

body.dark-mode .admin-table th {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

body.dark-mode .admin-table td {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

body.dark-mode .admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

body.dark-mode .admin-actions .btn {
    background-color: #D4A843;
    color: #0B1A3A;
}

.admin-actions .btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

body.dark-mode .stat-card-admin {
    background-color: var(--bg-card);
}

body.dark-mode .stat-card-admin .number {
    color: var(--text-primary);
}

body.dark-mode .stat-card-admin .label {
    color: var(--text-secondary);
}

body.dark-mode .recent-activity {
    background-color: var(--bg-card);
}

body.dark-mode .recent-activity h3 {
    color: var(--text-primary);
}

body.dark-mode .recent-activity .activity-item {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

body.dark-mode .admin-login-box {
    background-color: var(--bg-card);
}

body.dark-mode .admin-login-box .logo h2 {
    color: var(--text-primary);
}

body.dark-mode .admin-login-box .form-group label {
    color: var(--text-primary);
}

body.dark-mode .admin-login-box .form-group input {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode .admin-login-box .back-link {
    color: var(--text-secondary);
}

body.dark-mode .btn-cancel {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

body.dark-mode .btn-cancel:hover {
    background-color: var(--border-color);
}

/* ==================== DARK MODE - BRIGHTER TEXT ==================== */

/* Welcome Section Content */
body.dark-mode .welcome-text p {
    color: #B0C4DE !important;
}

/* Student Activities Content */
body.dark-mode .activities-text p {
    color: #B0C4DE !important;
}

/* Program Details (Duration) on Programs Page */
body.dark-mode .program-details {
    background-color: #1A3A5A;
    color: #B0C4DE !important;
}

body.dark-mode .program-details strong {
    color: #D4A843 !important;
}

/* Collaborations Page - AUST and NASRDA */
body.dark-mode .collaboration-text p {
    color: #B0C4DE !important;
}

body.dark-mode .collaboration-link {
    color: #D4A843 !important;
}

body.dark-mode .collaboration-link:hover {
    color: #F5C84E !important;
}

/* Contact Page - Form Labels */
body.dark-mode .contact-form .form-group label {
    color: #B0C4DE !important;
}

body.dark-mode .contact-form .form-group input,
body.dark-mode .contact-form .form-group select,
body.dark-mode .contact-form .form-group textarea {
    background-color: #1A2A4A;
    color: #E8ECF0 !important;
    border-color: #1A3A5A;
}

body.dark-mode .contact-form .form-group input::placeholder,
body.dark-mode .contact-form .form-group textarea::placeholder {
    color: #7F8C8D;
}

body.dark-mode .contact-form .form-group input:focus,
body.dark-mode .contact-form .form-group select:focus,
body.dark-mode .contact-form .form-group textarea:focus {
    border-color: #D4A843;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

body.dark-mode .contact-form .form-group select option {
    background-color: #1A2A4A;
    color: #E8ECF0;
}

/* News Page - Dark Mode */
body.dark-mode .news-page-content p {
    color: #B0C4DE !important;
}

body.dark-mode .news-page-content .news-summary {
    color: #B0C4DE !important;
}

body.dark-mode .news-page-content .news-full {
    color: #B0C4DE !important;
}

body.dark-mode .news-text-wrapper {
    color: #B0C4DE !important;
}

body.dark-mode .news-page-content h3 {
    color: #FFFFFF !important;
}

body.dark-mode .news-page-content .news-page-date {
    color: #D4A843 !important;
}

/* Program Cards - Dark Mode (Homepage and Programs Page) */
body.dark-mode .program-card p {
    color: #B0C4DE !important;
}

body.dark-mode .program-page-card p {
    color: #B0C4DE !important;
}

body.dark-mode .program-card h3 {
    color: #FFFFFF !important;
}

body.dark-mode .program-page-card h3 {
    color: #FFFFFF !important;
}

/* ==================== DARK MODE - LINKS GOLD ==================== */

/* NASRDA Link in Homepage Welcome Text */
body.dark-mode .nasrda-link {
    color: #D4A843 !important;
}

body.dark-mode .nasrda-link:hover {
    color: #F5C84E !important;
}

/* AUST Link in Admissions Page */
body.dark-mode .aust-link {
    color: #D4A843 !important;
}

body.dark-mode .aust-link:hover {
    color: #F5C84E !important;
}

/* AUST and NASRDA Links in Collaborations Page */
body.dark-mode .collaboration-link {
    color: #D4A843 !important;
}

body.dark-mode .collaboration-link:hover {
    color: #F5C84E !important;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #0B1A3A;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #D4A843;
    color: #0B1A3A;
}

.btn-primary:hover {
    background-color: #C49A3A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-outline:hover {
    background-color: #FFFFFF;
    color: #0B1A3A;
    transform: translateY(-2px);
}

.btn-link {
    color: #D4A843;
    font-weight: 600;
    padding: 0;
    font-size: 15px;
}

.btn-link:hover {
    color: #C49A3A;
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

/* ==================== LINKS - GOLD ==================== */

/* NASRDA Link in Homepage Welcome Text */
.nasrda-link {
    color: #D4A843 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nasrda-link:hover {
    color: #C49A3A !important;
    text-decoration: underline;
}

/* AUST Link in Admissions Page */
.aust-link {
    color: #D4A843 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.aust-link:hover {
    color: #C49A3A !important;
    text-decoration: underline;
}

/* Collaborations Page Links */
.collaboration-link {
    color: #0B1A3A !important;
    transition: color 0.3s ease;
}

.collaboration-link:hover {
    color: #D4A843 !important;
}

/* ==================== HEADER / NAVIGATION ==================== */
header {
    background-color: #0B1A3A;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

body.dark-mode header {
    background-color: #060F1F;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #FFFFFF;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D4A843;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #D4A843;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Dark Mode Toggle Button */
.dark-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.dark-toggle:hover {
    transform: scale(1.1);
}

.dark-toggle img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ==================== HEADER STAFF MAIL BUTTON ==================== */

.btn-staff-mail-header {
    display: inline-block;
    padding: 8px 18px;
    background-color: #D4A843;
    color: #0B1A3A;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.btn-staff-mail-header:hover {
    background-color: #C49A3A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

/* Dark Mode */
body.dark-mode .btn-staff-mail-header {
    background-color: #D4A843;
    color: #0B1A3A;
}

body.dark-mode .btn-staff-mail-header:hover {
    background-color: #C49A3A;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/new-hero.jpg');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 40px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 26, 58, 0.88) 0%, rgba(11, 26, 58, 0.65) 100%);
    z-index: 1;
}

body.dark-mode .hero-overlay {
    background: linear-gradient(135deg, rgba(6, 15, 31, 0.95) 0%, rgba(6, 15, 31, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-left h1 {
    font-size: 40px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: #B0C4DE;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==================== NEWS TICKER ==================== */
.news-ticker {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    height: 320px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-ticker:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 168, 67, 0.3);
}

.news-ticker h4 {
    color: #D4A843;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: scrollTicker 20s linear infinite;
}

.ticker-item {
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #D4A843;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.ticker-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ticker-date {
    font-size: 11px;
    font-weight: 600;
    color: #D4A843;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.ticker-item p {
    font-size: 14px;
    color: #E8ECF0;
    margin: 0;
    line-height: 1.5;
}

@keyframes scrollTicker {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.news-ticker:hover .ticker-track {
    animation-play-state: paused;
}

/* ==================== TICKER LINK STYLES ==================== */
.ticker-item {
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #D4A843;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    text-decoration: none !important;
    display: block !important;
    cursor: pointer;
}

.ticker-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #F5C84E;
}

.ticker-item .ticker-date {
    font-size: 11px;
    font-weight: 600;
    color: #D4A843;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.ticker-item p {
    font-size: 14px;
    color: #E8ECF0;
    margin: 0;
    line-height: 1.5;
    text-decoration: none;
}

body.dark-mode .ticker-item p {
    color: #B0C4DE;
}

/* ==================== DARK MODE - TICKER HOVER ==================== */
body.dark-mode .ticker-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .ticker-item p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ticker-item {
        padding: 8px 10px;
    }
    .ticker-item p {
        font-size: 12px;
    }
}

/* ==================== WELCOME SECTION ==================== */
.welcome {
    padding: 80px 0;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.welcome-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.welcome-text h2 {
    color: #0B1A3A;
    margin-bottom: 20px;
}

.welcome-text p {
    font-size: 17px;
    color: #2C3E50;
    line-height: 1.8;
}

.welcome-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* ==================== STATS SECTION ==================== */
.stats {
    padding: 60px 0;
    background-color: #0B1A3A;
}

body.dark-mode .stats {
    background-color: #060F1F;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #D4A843;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    font-weight: 400;
    color: #B0C4DE;
}

/* ==================== PROGRAMS HIGHLIGHTS (HOMEPAGE) ==================== */
.programs-highlights {
    padding: 80px 0;
    background-color: #F5F7FA;
    transition: background-color 0.3s ease;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #0B1A3A;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #7F8C8D;
    margin-bottom: 50px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.program-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #E8ECF0;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(11, 26, 58, 0.12);
    border-color: #D4A843;
}

.program-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-content {
    padding: 20px 25px 25px;
}

.program-content h3 {
    color: #0B1A3A;
    font-size: 20px;
    margin-bottom: 10px;
}

.program-content p {
    color: #5D6D7E;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ==================== ACTIVITIES SECTION ==================== */
.activities {
    padding: 80px 0;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.activities-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.activities-text h2 {
    color: #0B1A3A;
}

.activities-text p {
    font-size: 17px;
    color: #2C3E50;
    line-height: 1.8;
    margin-bottom: 25px;
}

.activities-image img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

/* ==================== NEWS PREVIEW (HOMEPAGE) ==================== */
.news-preview {
    padding: 80px 0;
    background-color: #F5F7FA;
    transition: background-color 0.3s ease;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #E8ECF0;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(11, 26, 58, 0.10);
    border-color: #D4A843;
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px 25px 25px;
}

.news-date {
    font-size: 13px;
    font-weight: 600;
    color: #D4A843;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content h3 {
    font-size: 18px;
    margin: 8px 0 10px;
    color: #0B1A3A;
}

.news-content p {
    font-size: 15px;
    color: #5D6D7E;
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-cta {
    text-align: center;
    margin-top: 50px;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: #0B1A3A;
    padding: 60px 0 0;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

body.dark-mode footer {
    background-color: #060F1F;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-about .footer-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 10px;
}

.footer-about p {
    font-size: 14px;
    color: #B0C4DE;
    line-height: 1.7;
    margin-bottom: 5px;
}

.footer-partner {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-partner-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 8px;
}

.footer-partner p {
    font-size: 13px;
    color: #B0C4DE;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    font-size: 14px;
    color: #B0C4DE;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #D4A843;
}

.footer-staff-mail {
    margin-top: 15px;
}

.btn-staff-mail {
    display: inline-block;
    padding: 8px 20px;
    background-color: #D4A843;
    color: #0B1A3A;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.btn-staff-mail:hover {
    background-color: #C49A3A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.3);
}

.footer-contact ul li {
    font-size: 14px;
    color: #B0C4DE;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: inline-block;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: #D4A843;
    transform: translateY(-3px);
}

.social-icons a:hover img {
    filter: brightness(0) invert(1);
}

.social-icons img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #7F8C8D;
    margin: 0;
}

/* ==================== FOOTER GRID ==================== */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== CONTACT + SOCIAL WRAPPER ==================== */
.footer-contact-social-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-contact-social-row .footer-contact,
.footer-contact-social-row .footer-social {
    margin: 0;
}

/* ==================== NEWSLETTER UNDER CONTACT + FOLLOW US ==================== */
.footer-contact-social-wrapper .footer-newsletter {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-contact-social-wrapper .footer-newsletter h4 {
    margin-bottom: 6px;
    color: #FFFFFF;
    font-size: 16px;
}

.footer-contact-social-wrapper .footer-newsletter > p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #B0C4DE;
}

.footer-contact-social-wrapper .footer-newsletter .newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-contact-social-wrapper .footer-newsletter .newsletter-form input {
    flex: 1 1 200px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.footer-contact-social-wrapper .footer-newsletter .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.footer-contact-social-wrapper .footer-newsletter .newsletter-form input:focus {
    outline: none;
    border-color: #D4A843;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-contact-social-wrapper .footer-newsletter .newsletter-form button {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background-color: #D4A843;
    color: #0B1A3A;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-contact-social-wrapper .footer-newsletter .newsletter-form button:hover:not(:disabled) {
    background-color: #E0B855;
    transform: translateY(-2px);
}

.footer-contact-social-wrapper .footer-newsletter .newsletter-form button:disabled {
    opacity: 0.6;
    cursor: default;
}

.footer-contact-social-wrapper .footer-newsletter .newsletter-note {
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
    color: #B0C4DE;
}

.footer-contact-social-wrapper .footer-newsletter .newsletter-note.success { color: #7CD9A0; }
.footer-contact-social-wrapper .footer-newsletter .newsletter-note.error   { color: #F5A0A0; }

.footer-contact-social-wrapper .footer-newsletter .newsletter-privacy {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.6;
    color: #B0C4DE;
}

.footer-contact-social-wrapper .footer-newsletter .newsletter-privacy a {
    color: #B0C4DE;
    text-decoration: underline;
}

.footer-contact-social-wrapper .footer-newsletter .newsletter-privacy a:hover {
    color: #D4A843;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-contact-social-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-contact-social-wrapper .footer-newsletter .newsletter-form {
        flex-direction: column;
    }

    .footer-contact-social-wrapper .footer-newsletter .newsletter-form button {
        width: 100%;
    }
}

/* ==================== PAGE BANNERS ==================== */
.page-banner {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 40px 0;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 26, 58, 0.88) 0%, rgba(11, 26, 58, 0.65) 100%);
    z-index: 1;
}

body.dark-mode .page-banner-overlay {
    background: linear-gradient(135deg, rgba(6, 15, 31, 0.95) 0%, rgba(6, 15, 31, 0.8) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-banner-content h1 {
    font-size: 42px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.banner-subtitle {
    font-size: 18px;
    color: #B0C4DE;
    font-weight: 300;
}

/* Individual Banners */
.about-banner { background-image: url('images/about-banner.jpg'); }
.programs-banner { background-image: url('images/programs-banner.jpg'); }
.space-physics-banner { background-image: url('images/space-physics.png'); }
.geoinformatics-banner { background-image: url('images/geoinformatics.png'); }
.aerospace-banner { background-image: url('images/aerospace.png'); }
.systems-banner { background-image: url('images/systems.png'); }
.admissions-banner { background-image: url('images/admissions-banner.jpg'); }
.news-banner { background-image: url('images/news-banner.jpg'); }
.contact-banner { background-image: url('images/contact-banner.jpg'); }
.collaborations-banner { background-image: url('images/collaborations-banner.jpg'); }

/* ==================== ABOUT PAGE ==================== */
.about-intro {
    padding: 80px 0;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.about-intro-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-intro-content h2 {
    color: #0B1A3A;
    margin-bottom: 25px;
}

.about-intro-content p {
    font-size: 17px;
    color: #2C3E50;
    line-height: 1.8;
    text-align: left;
}

.mission-vision {
    padding: 60px 0;
    background-color: #F5F7FA;
    transition: background-color 0.3s ease;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission-box,
.vision-box {
    background-color: #FFFFFF;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #D4A843;
    transition: all 0.3s ease;
}

.mission-box:hover,
.vision-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(11, 26, 58, 0.10);
}

.mission-box h3,
.vision-box h3 {
    color: #0B1A3A;
    font-size: 22px;
    margin-bottom: 15px;
}

.mission-box p,
.vision-box p {
    color: #5D6D7E;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.key-facts {
    padding: 80px 0;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.fact-item {
    text-align: center;
    padding: 25px 20px;
    background-color: #F5F7FA;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fact-item:hover {
    background-color: #0B1A3A;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(11, 26, 58, 0.15);
}

.fact-item:hover h4,
.fact-item:hover p {
    color: #FFFFFF;
}

.fact-item h4 {
    font-size: 16px;
    color: #0B1A3A;
    margin-bottom: 8px;
    font-weight: 600;
}

.fact-item p {
    font-size: 15px;
    color: #5D6D7E;
    margin: 0;
}

.achievements {
    padding: 80px 0;
    background-color: #0B1A3A;
}

body.dark-mode .achievements {
    background-color: #060F1F;
}

.achievements .section-title {
    color: #FFFFFF;
}

.achievements .section-subtitle {
    color: #B0C4DE;
    text-align: center;
    font-size: 18px;
    margin-bottom: 50px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.achievement-item {
    padding: 20px;
}

.achievement-number {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: #D4A843;
    margin-bottom: 5px;
}

.achievement-label {
    font-size: 18px;
    color: #B0C4DE;
}

.about-cta {
    padding: 80px 0;
    background-color: #F5F7FA;
    text-align: center;
    transition: background-color 0.3s ease;
}

.about-cta h2 {
    color: #0B1A3A;
    font-size: 36px;
    margin-bottom: 10px;
}

.about-cta p {
    font-size: 18px;
    color: #5D6D7E;
    margin-bottom: 30px;
}

/* ==================== PROGRAMS PAGE ==================== */
.programs-page {
    padding: 80px 0;
    background-color: #F5F7FA;
    transition: background-color 0.3s ease;
}

.programs-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.program-page-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #E8ECF0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.program-page-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(11, 26, 58, 0.12);
    border-color: #D4A843;
}

.program-page-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.program-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-page-content {
    padding: 25px 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-page-content h3 {
    color: #0B1A3A;
    font-size: 22px;
    margin-bottom: 10px;
}

.program-page-content p {
    color: #5D6D7E;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1;
}

.program-details {
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #F5F7FA;
    border-radius: 8px;
    font-size: 14px;
    color: #2C3E50;
}

.program-details strong {
    color: #0B1A3A;
}

.program-page-content .btn-primary {
    align-self: flex-start;
}

.programs-page-cta {
    text-align: center;
    margin-top: 50px;
}

/* ==================== PROGRAM DETAIL PAGES ==================== */
.program-detail {
    padding: 80px 0;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.program-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.program-detail-section {
    margin-bottom: 50px;
}

.program-detail-section h2 {
    color: #0B1A3A;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #D4A843;
}

.program-detail-section p {
    font-size: 17px;
    color: #2C3E50;
    line-height: 1.8;
}

.course-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
    padding: 0;
}

.course-list li {
    font-size: 16px;
    color: #2C3E50;
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid #F5F7FA;
}

.course-list li::before {
    content: '▸';
    color: #D4A843;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.duration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.duration-item {
    background-color: #F5F7FA;
    padding: 25px 30px;
    border-radius: 12px;
    border-left: 4px solid #D4A843;
}

.duration-item h4 {
    color: #0B1A3A;
    font-size: 20px;
    margin-bottom: 8px;
}

.duration-item p {
    font-size: 15px;
    color: #2C3E50;
    margin: 0;
    line-height: 1.6;
}

.duration-item p strong {
    color: #0B1A3A;
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.requirement-item {
    background-color: #F5F7FA;
    padding: 25px 30px;
    border-radius: 12px;
}

.requirement-item h4 {
    color: #0B1A3A;
    font-size: 17px;
    margin-bottom: 12px;
}

.requirement-item ul {
    list-style: none;
    padding: 0;
}

.requirement-item ul li {
    font-size: 15px;
    color: #2C3E50;
    padding: 5px 0 5px 20px;
    position: relative;
}

.requirement-item ul li::before {
    content: '•';
    color: #D4A843;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.career-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 20px;
    padding: 0;
}

.career-list li {
    font-size: 16px;
    color: #2C3E50;
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid #F5F7FA;
}

.career-list li::before {
    content: '★';
    color: #D4A843;
    position: absolute;
    left: 0;
    font-size: 14px;
}

.program-detail-back {
    margin-top: 40px;
    text-align: center;
}

/* ==================== ADMISSIONS PAGE ==================== */
.admissions-page {
    padding: 80px 0;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.admissions-section {
    margin-bottom: 50px;
}

.admissions-section h2 {
    color: #0B1A3A;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #D4A843;
}

.admissions-list {
    list-style: none;
    padding: 0;
}

.admissions-list li {
    font-size: 16px;
    color: #2C3E50;
    padding: 10px 0 10px 25px;
    position: relative;
    border-bottom: 1px solid #F5F7FA;
}

.admissions-list li::before {
    content: '▸';
    color: #D4A843;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.process-list {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

.process-list li {
    font-size: 16px;
    color: #2C3E50;
    padding: 10px 0 10px 45px;
    position: relative;
    border-bottom: 1px solid #F5F7FA;
    counter-increment: step;
}

.process-list li::before {
    content: counter(step);
    color: #FFFFFF;
    background-color: #D4A843;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    position: absolute;
    left: 0;
    top: 8px;
}

.admissions-contact {
    background-color: #F5F7FA;
    padding: 25px 30px;
    border-radius: 12px;
    border-left: 4px solid #D4A843;
}

.admissions-contact p {
    font-size: 16px;
    color: #2C3E50;
    margin-bottom: 8px;
}

.admissions-contact p:last-child {
    margin-bottom: 0;
}

.admissions-cta {
    text-align: center;
    margin-top: 30px;
}

/* ==================== NEWS PAGE ==================== */
.news-page {
    padding: 80px 0;
    background-color: #F5F7FA;
    transition: background-color 0.3s ease;
}

.news-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-page-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #E8ECF0;
}

.news-page-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(11, 26, 58, 0.10);
    border-color: #D4A843;
}

.news-page-image {
    height: 200px;
    overflow: hidden;
}

.news-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-page-content {
    padding: 20px 25px 25px;
}

.news-page-date {
    font-size: 13px;
    font-weight: 600;
    color: #D4A843;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-page-content h3 {
    font-size: 18px;
    margin: 8px 0 10px;
    color: #0B1A3A;
}

.news-page-content p {
    font-size: 15px;
    color: #5D6D7E;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ==================== CONTACT PAGE ==================== */
.contact-page {
    padding: 80px 0;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-form h2,
.contact-info h2,
.contact-socials h2 {
    color: #0B1A3A;
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #D4A843;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #0B1A3A;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E8ECF0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #2C3E50;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4A843;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.error-message {
    display: none;
    font-size: 13px;
    color: #E74C3C;
    margin-top: 5px;
}

.error-message.visible {
    display: block;
}

.success-message {
    display: none;
    background-color: #27AE60;
    color: #FFFFFF;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.success-message.visible {
    display: block;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background-color: #F5F7FA;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background-color: #0B1A3A;
    transform: translateX(5px);
}

.contact-info-item:hover h4,
.contact-info-item:hover p {
    color: #FFFFFF;
}

.contact-info-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 16px;
    color: #0B1A3A;
    margin-bottom: 3px;
}

.contact-info-item p {
    font-size: 15px;
    color: #5D6D7E;
    margin: 0;
}

.contact-socials h2 {
    color: #0B1A3A;
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #D4A843;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: #F5F7FA;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 10px;
}

.social-item:hover {
    background-color: #0B1A3A;
    transform: translateX(5px);
}

.social-item:hover span {
    color: #FFFFFF;
}

.social-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.social-item span {
    font-size: 16px;
    color: #2C3E50;
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Google Map */
.contact-map {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #E8ECF0;
    text-align: center;
}

.contact-map h2 {
    color: #0B1A3A;
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #D4A843;
    display: inline-block;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: none;
}

/* ==================== COLLABORATIONS PAGE ==================== */
.collaboration-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.collaboration-section:nth-child(even) {
    background-color: #F5F7FA;
}

.collaboration-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.collaboration-logo {
    text-align: center;
}

.collaboration-logo img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.collaboration-logo img:hover {
    transform: scale(1.03);
}

.collaboration-link {
    color: #0B1A3A;
    transition: color 0.3s ease;
}

.collaboration-link:hover {
    color: #D4A843;
}

.collaboration-text p {
    font-size: 16px;
    color: #2C3E50;
    line-height: 1.8;
}

.collaboration-text .btn {
    margin-top: 15px;
}

/* ==================== NEWS PAGE - EXPAND/COLLAPSE ==================== */
.news-text-wrapper {
    font-size: 15px;
    color: #5D6D7E;
    line-height: 1.8;
}

.news-summary {
    display: inline;
}

.news-full {
    display: none;
}

.news-toggle-btn {
    margin-top: 10px;
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.news-toggle-btn:hover {
    color: #C49A3A;
    text-decoration: underline;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets */
@media (max-width: 992px) {
    h1 { font-size: 38px; }
    h2 { font-size: 30px; }
    .hero-content { grid-template-columns: 1fr; gap: 30px; }
    .hero-left h1 { font-size: 34px; }
    .hero { min-height: auto; padding: 50px 0; }
    .news-ticker { max-height: 280px; height: 280px; }
    .welcome-content { grid-template-columns: 1fr; gap: 30px; }
    .welcome-image img { max-width: 280px; margin: 0 auto; }
    .programs-grid { grid-template-columns: 1fr 1fr; }
    .activities-content { grid-template-columns: 1fr; gap: 30px; }
    .activities-image { order: -1; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .page-banner { min-height: 200px; padding: 30px 0; }
    .page-banner-content h1 { font-size: 34px; }
    .mission-vision-grid { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .achievements-grid { grid-template-columns: repeat(3, 1fr); }
    .achievement-number { font-size: 42px; }
    .programs-page-grid { grid-template-columns: 1fr 1fr; }
    .course-list { grid-template-columns: 1fr 1fr; }
    .career-list { grid-template-columns: 1fr 1fr; }
    .news-cta { margin-top: 40px; }
    .news-page-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .collaboration-card { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .collaboration-logo img { max-width: 200px; }
    .header-left { gap: 25px; }
    .nav-links { gap: 18px; }
}

/* Mobile */
@media (max-width: 768px) {
    .header-left { gap: 15px; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0B1A3A;
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        color: #FFFFFF;
        padding: 8px 20px;
        width: 100%;
        text-align: center;
        font-size: 16px;
    }
    .nav-links a::after { display: none; }
    .nav-links a:hover,
    .nav-links a.active {
        color: #D4A843;
        background-color: rgba(212, 168, 67, 0.08);
    }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background-color: #FFFFFF;
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        background-color: #FFFFFF;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background-color: #FFFFFF;
    }
    .hamburger span { background-color: #FFFFFF; width: 28px; }
    .hero { padding: 30px 0; }
    .hero-left h1 { font-size: 28px; }
    .hero-subtitle { font-size: 16px; }
    .hero-buttons { flex-direction: column; align-items: flex-start; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
    .news-ticker { padding: 15px 18px; max-height: 240px; height: 240px; }
    .ticker-item p { font-size: 13px; }
    .programs-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .stat-number { font-size: 32px; }
    .stat-label { font-size: 14px; }
    .welcome { padding: 50px 0; }
    .programs-highlights { padding: 50px 0; }
    .activities { padding: 50px 0; }
    .news-preview { padding: 50px 0; }
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 16px; margin-bottom: 30px; }
    .welcome-image img { max-width: 220px; }
    .logo-img { height: 40px; border-radius: 10px; }
    .page-banner { min-height: 220px; padding: 20px 0; }
    .page-banner-content h1 { font-size: 28px; }
    .banner-subtitle { font-size: 15px; }
    .about-intro { padding: 50px 0; }
    .mission-vision { padding: 40px 0; }
    .mission-box, .vision-box { padding: 30px 25px; }
    .key-facts { padding: 50px 0; }
    .facts-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .achievements { padding: 50px 0; }
    .achievements-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .achievement-number { font-size: 36px; }
    .about-cta { padding: 50px 0; }
    .about-cta h2 { font-size: 28px; }
    .about-cta p { font-size: 16px; }
    .programs-page { padding: 50px 0; }
    .programs-page-grid { grid-template-columns: 1fr; }
    .program-page-card { padding: 25px 20px; }
    .programs-page-cta { margin-top: 30px; }
    .program-detail { padding: 50px 0; }
    .program-detail-section { margin-bottom: 35px; }
    .program-detail-section h2 { font-size: 24px; }
    .course-list { grid-template-columns: 1fr; }
    .duration-grid { grid-template-columns: 1fr; }
    .requirements-grid { grid-template-columns: 1fr; }
    .career-list { grid-template-columns: 1fr 1fr; }
    .news-cta { margin-top: 30px; }
    .btn-large { padding: 14px 40px; font-size: 16px; }
    .admissions-page { padding: 50px 0; }
    .admissions-section h2 { font-size: 24px; }
    .news-page { padding: 50px 0; }
    .news-page-grid { grid-template-columns: 1fr; }
    .contact-page { padding: 50px 0; }
    .contact-form h2, .contact-info h2, .contact-socials h2 { font-size: 24px; }
    .contact-info-item { padding: 12px 15px; }
    .collaboration-section { padding: 40px 0; }
    .collaboration-card { grid-template-columns: 1fr; gap: 25px; text-align: center; }
    .collaboration-logo img { max-width: 180px; }
    .collaboration-text h2 { font-size: 24px; }
    .footer-staff-mail { margin-top: 10px; }
    .btn-staff-mail { font-size: 13px; padding: 8px 20px; }
    .footer-partner-logo { height: 35px; }
    .footer-partner p { font-size: 12px; }
    .contact-map { margin-top: 40px; padding-top: 30px; }
    .contact-map h2 { font-size: 24px; }
    .map-container iframe { height: 250px; }
    .contact-socials h2 { font-size: 24px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-left h1 { font-size: 22px; }
    .hero-subtitle { font-size: 14px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-number { font-size: 28px; }
    .container { padding: 0 15px; }
    .program-card { padding: 0; }
    .news-ticker { padding: 12px 14px; max-height: 200px; height: 200px; }
    .ticker-item { padding: 8px 10px; }
    .ticker-item p { font-size: 12px; }
    .welcome-image img { max-width: 180px; }
    .logo-img { height: 35px; border-radius: 8px; }
    .page-banner-content h1 { font-size: 24px; }
    .facts-grid { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: 1fr; }
    .achievement-number { font-size: 32px; }
    .about-cta h2 { font-size: 24px; }
    .program-page-card { padding: 20px 15px; }
    .program-page-content h3 { font-size: 19px; }
    .program-detail { padding: 30px 0; }
    .program-detail-section h2 { font-size: 20px; }
    .program-detail-section p { font-size: 15px; }
    .career-list { grid-template-columns: 1fr; }
    .duration-item { padding: 20px; }
    .requirement-item { padding: 20px; }
    .news-cta { margin-top: 25px; }
    .btn-large { padding: 12px 30px; font-size: 14px; }
    .admissions-section h2 { font-size: 20px; }
    .admissions-list li { font-size: 14px; }
    .process-list li { font-size: 14px; }
    .admissions-contact p { font-size: 14px; }
    .news-page-content h3 { font-size: 16px; }
    .contact-form h2, .contact-info h2, .contact-socials h2 { font-size: 20px; }
    .collaboration-logo img { max-width: 150px; }
    .collaboration-text h2 { font-size: 20px; }
    .collaboration-text p { font-size: 14px; }
    .contact-map { margin-top: 30px; padding-top: 20px; }
    .contact-map h2 { font-size: 20px; }
    .map-container iframe { height: 200px; }
    .contact-socials h2 { font-size: 20px; }
}

/* ==================== NEWSLETTER SUBSCRIPTION ==================== */

.footer-newsletter {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-newsletter h4 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 5px;
}

.footer-newsletter p {
    font-size: 13px;
    color: #B0C4DE;
    margin-bottom: 12px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 100%;
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.subscribe-form input[type="email"]::placeholder {
    color: #7F8C8D;
}

.subscribe-form input[type="email"]:focus {
    border-color: #D4A843;
}

.btn-subscribe {
    padding: 10px 25px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.subscribe-message {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.subscribe-message.success {
    color: #27AE60;
}

.subscribe-message.error {
    color: #E74C3C;
}

/* Dark Mode */
body.dark-mode .footer-newsletter h4 {
    color: #FFFFFF;
}

body.dark-mode .footer-newsletter p {
    color: #B0C4DE;
}

body.dark-mode .subscribe-form input[type="email"] {
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

/* Mobile */
@media (max-width: 768px) {
    .subscribe-form {
        flex-direction: column;
    }
    .btn-subscribe {
        width: 100%;
    }
}

/* ==================== GALLERY PAGE ==================== */

.gallery-banner {
    background-image: url('images/gallery-banner.png');
}

.gallery-page {
    padding: 80px 0;
    background-color: #F5F7FA;
    transition: background-color 0.3s ease;
}

body.dark-mode .gallery-page {
    background-color: #0D1A30;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox (Click to enlarge) */
.gallery-item.active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 80%;
    max-width: 800px;
    height: auto;
    aspect-ratio: auto;
    z-index: 2000;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-item.active img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.gallery-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1999;
    cursor: pointer;
}

.gallery-overlay.visible {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-page {
        padding: 50px 0;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* ==================== FOOTER NIGHT SKY ====================
   Three drifting layers of stars, each a set of tiny radial
   gradients tiled across the footer. Parallax comes from giving
   each layer a different tile size and drift speed. Purely
   decorative, so it is hidden from screen readers and switched
   off for anyone who asks for reduced motion. */

footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.footer-sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.star-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    /* Twice the height so the layer can drift upward and still
       cover the footer as it loops. */
    height: 200%;
    background-repeat: repeat;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.star-layer-1 {
    background-image:
        radial-gradient(1px 1px at 167px 79px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 26px 39px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 50px 189px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 31px 111px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 46px 224px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 37px 125px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 219px 32px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 65px 116px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 33px 205px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 115px 25px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 70px 150px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 75px 62px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 159px 94px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 98px 192px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 34px 32px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 107px 256px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 220px 162px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 234px 187px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 129px 94px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 126px 43px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 155px 255px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 231px 149px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 39px 62px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 216px 86px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 79px 252px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 22px 41px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 162px 176px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 181px 256px, rgba(255, 255, 255, 0.6), transparent);
    background-size: 260px 260px;
    animation-name: star-drift, star-twinkle;
    animation-duration: 90s, 4s;
    animation-timing-function: linear, ease-in-out;
    animation-direction: normal, alternate;
}

.star-layer-2 {
    background-image:
        radial-gradient(2px 2px at 235px 37px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 140px 244px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 33px 160px, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(2px 2px at 147px 199px, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(2px 2px at 13px 238px, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(2px 2px at 88px 314px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 254px 32px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 149px 68px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 205px 202px, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(2px 2px at 43px 87px, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(2px 2px at 207px 283px, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(2px 2px at 72px 222px, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(2px 2px at 214px 185px, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(2px 2px at 120px 79px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 92px 79px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 121px 8px, rgba(255, 255, 255, 0.55), transparent);
    background-size: 340px 340px;
    animation-name: star-drift, star-twinkle;
    animation-duration: 140s, 6.5s;
    animation-timing-function: linear, ease-in-out;
    animation-direction: normal, alternate;
    animation-delay: 0s, -2s;
    opacity: 0.85;
}

.star-layer-3 {
    background-image:
        radial-gradient(2px 2px at 303px 95px, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(2px 2px at 146px 4px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 216px 275px, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(2px 2px at 314px 291px, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(2px 2px at 66px 355px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 235px 401px, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(2px 2px at 205px 206px, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(2px 2px at 55px 248px, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(2px 2px at 33px 99px, rgba(255, 255, 255, 0.5), transparent);
    background-size: 420px 420px;
    animation-name: star-drift, star-twinkle;
    animation-duration: 210s, 9s;
    animation-timing-function: linear, ease-in-out;
    animation-direction: normal, alternate;
    animation-delay: 0s, -4s;
    opacity: 0.7;
}

@keyframes star-drift {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

@keyframes star-twinkle {
    from { opacity: 0.45; }
    to   { opacity: 1; }
}

/* ---- the occasional shooting star ---- */

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.7);
    opacity: 0;
    animation: shoot 11s ease-in infinite;
}

/* The tail: a gradient streak trailing behind the head. */
.shooting-star::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 90px;
    height: 1px;
    transform: translateX(-90px);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75));
}

.shooting-star-1 { top: 18%; left: -10%; animation-delay: 3s; }
.shooting-star-2 { top: 46%; left: -10%; animation-delay: 9s; }
.shooting-star-3 {
    top: 8%;
    left: -10%;
    animation-delay: 16s;
    animation-duration: 15s;
    background: #D4A843;
    box-shadow: 0 0 6px 1px rgba(212, 168, 67, 0.8);
}

.shooting-star-3::after {
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.75));
}

@keyframes shoot {
    0%      { transform: translate(0, 0); opacity: 0; }
    2%      { opacity: 1; }
    /* Most of the cycle is the pause between sightings. */
    14%     { transform: translate(120vw, 190px); opacity: 0; }
    100%    { transform: translate(120vw, 190px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .star-layer {
        animation: none;
        opacity: 0.8;
    }
    .shooting-star {
        display: none;
    }
}

/* ==================== FOOTER NEWSLETTER ==================== */

.footer-newsletter h4 {
    margin-bottom: 8px;
    color: #FFFFFF;
    font-size: 16px;
}

.footer-newsletter p {
    font-size: 14px;
    margin-bottom: 16px;
    max-width: 520px;
    color: #B0C4DE;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 520px;
}

.newsletter-form input {
    flex: 1 1 240px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #D4A843;
    background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
    padding: 13px 26px;
    border: none;
    border-radius: 8px;
    background-color: #D4A843;
    color: #0B1A3A;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.newsletter-form button:hover:not(:disabled) {
    background-color: #E0B855;
    transform: translateY(-2px);
}

.newsletter-form button:disabled {
    opacity: 0.6;
    cursor: default;
}

.newsletter-note {
    font-size: 13px;
    margin-top: 10px;
    min-height: 20px;
    color: #B0C4DE;
}

.newsletter-note.success { color: #7CD9A0; }
.newsletter-note.error   { color: #F5A0A0; }

.newsletter-privacy {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.6;
    color: #B0C4DE;
}

.newsletter-privacy a {
    color: #B0C4DE;
    text-decoration: underline;
}

.newsletter-privacy a:hover {
    color: #D4A843;
}

.footer-bottom-links {
    margin-top: 6px;
    font-size: 13px;
}

.footer-bottom-links a {
    opacity: 0.75;
    transition: opacity 0.3s ease, color 0.3s ease;
    color: #B0C4DE;
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: #D4A843;
}

/* ==================== HISTORY TIMELINE ==================== */

.history-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.timeline {
    position: relative;
    max-width: 820px;
    margin: 45px auto 0;
    padding-left: 34px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #D4A843 0%, #E8ECF0 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 38px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 3px solid #D4A843;
}

.timeline-year {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #D4A843;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.timeline-item h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #0B1A3A;
}

.timeline-item p {
    color: #2C3E50;
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 28px;
    }
    .timeline-item::before {
        left: -28px;
        width: 13px;
        height: 13px;
    }
    .history-section {
        padding: 50px 0;
    }
}

/* ==================== DARK MODE - HISTORY SECTION ==================== */

body.dark-mode .history-section {
    background-color: #0A1628;
}

body.dark-mode .history-section .section-title {
    color: #FFFFFF;
}

body.dark-mode .history-section .section-subtitle {
    color: #B0C4DE;
}

body.dark-mode .timeline-item h3 {
    color: #FFFFFF;
}

body.dark-mode .timeline-item p {
    color: #B0C4DE;
}

body.dark-mode .timeline::before {
    background: linear-gradient(180deg, #D4A843 0%, #1A3A5A 100%);
}

body.dark-mode .timeline-item::before {
    background-color: #0A1628;
    border-color: #D4A843;
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form button {
        width: 100%;
    }
}

/* ==================== PRIVACY BANNER ==================== */
.privacy-banner {
    background-image: url('images/privacy-banner.png');
    background-color: #0B1A3A;
}

/* ==================== LEGAL / PRIVACY PAGE ==================== */
.legal-page {
    padding: 70px 0 90px;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

body.dark-mode .legal-page {
    background-color: #0A1628;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-content .legal-updated {
    color: #7F8C8D;
    font-size: 14px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E8ECF0;
}

body.dark-mode .legal-content .legal-updated {
    color: #B0C4DE;
    border-bottom-color: #1A3A5A;
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 38px;
    margin-bottom: 12px;
    color: #0B1A3A;
}

body.dark-mode .legal-content h2 {
    color: #FFFFFF;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 15px;
    color: #2C3E50;
    font-size: 16px;
    line-height: 1.8;
}

body.dark-mode .legal-content p {
    color: #B0C4DE;
}

.legal-content ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 18px;
}

.legal-content li {
    margin-bottom: 8px;
    color: #2C3E50;
    font-size: 16px;
    line-height: 1.8;
}

body.dark-mode .legal-content li {
    color: #B0C4DE;
}

.legal-content a {
    color: #D4A843;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #C49A3A;
    text-decoration: underline;
}

body.dark-mode .legal-content a {
    color: #D4A843;
}

body.dark-mode .legal-content a:hover {
    color: #F5C84E;
}

/* ==================== RESPONSIVE FOR LEGAL PAGE ==================== */
@media (max-width: 768px) {
    .legal-page {
        padding: 50px 0 60px;
    }
    .legal-content h2 {
        font-size: 22px;
        margin-top: 30px;
    }
    .legal-content p,
    .legal-content li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 40px 0;
    }
    .legal-content h2 {
        font-size: 20px;
    }
    .legal-content p,
    .legal-content li {
        font-size: 14px;
    }
    .legal-content ul {
        padding-left: 18px;
    }
}

/* ==================== DARK MODE - ADMIN PANEL ==================== */

body.dark-mode .admin-panel,
body.dark-mode .admin-main {
    background-color: #0A1628;
}

body.dark-mode .admin-header {
    border-bottom-color: #1A3A5A;
}

body.dark-mode .admin-header h1 {
    color: #FFFFFF;
}

body.dark-mode .admin-info {
    color: #B0C4DE;
}

body.dark-mode .stat-card-admin {
    background-color: #122240;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .stat-card-admin .number {
    color: #FFFFFF;
}

body.dark-mode .stat-card-admin .label {
    color: #B0C4DE;
}

body.dark-mode .admin-table-wrapper {
    background-color: #122240;
}

body.dark-mode .admin-table th {
    background-color: #0D1A30;
    color: #FFFFFF;
    border-bottom-color: #1A3A5A;
}

body.dark-mode .admin-table td {
    color: #B0C4DE;
    border-bottom-color: #1A3A5A;
}

body.dark-mode .admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

body.dark-mode .recent-activity {
    background-color: #122240;
}

body.dark-mode .recent-activity h3 {
    color: #FFFFFF;
}

body.dark-mode .recent-activity .activity-item {
    color: #B0C4DE;
    border-bottom-color: #1A3A5A;
}

body.dark-mode .modal-box {
    background-color: #122240;
}

body.dark-mode .modal-box h2 {
    color: #FFFFFF;
}

body.dark-mode .modal-box label {
    color: #E8ECF0;
}

body.dark-mode .modal-box input,
body.dark-mode .modal-box select,
body.dark-mode .modal-box textarea {
    background-color: #0D1A30;
    color: #E8ECF0;
    border-color: #1A3A5A;
}

body.dark-mode .modal-box input:focus,
body.dark-mode .modal-box select:focus,
body.dark-mode .modal-box textarea:focus {
    border-color: #D4A843;
}

body.dark-mode .modal-box .hint {
    color: #7F8C8D;
}

body.dark-mode .btn-cancel {
    background-color: #1A3A5A;
    color: #FFFFFF;
}

body.dark-mode .btn-cancel:hover {
    background-color: #2A4A6A;
}

body.dark-mode .import-summary.success {
    background: #1A4A3A;
    color: #7CD9A0;
}

body.dark-mode .import-summary.error {
    background: #4A1A1A;
    color: #F5A0A0;
}

body.dark-mode .import-summary.info {
    background: #1A2A4A;
    color: #87CEEB;
}

body.dark-mode .admin-actions .btn-secondary {
    background-color: #1A2A5A;
    color: #FFFFFF;
}

body.dark-mode .admin-actions .btn-secondary:hover {
    background-color: #2A3A6A;
}

body.dark-mode .admin-actions .btn-primary {
    background-color: #D4A843;
    color: #0B1A3A;
}

body.dark-mode .admin-actions .btn-primary:hover {
    background-color: #C49A3A;
}

body.dark-mode .btn-small {
    color: #FFFFFF;
}

body.dark-mode .btn-edit {
    background-color: #1E8449;
}

body.dark-mode .btn-edit:hover {
    background-color: #27AE60;
}

body.dark-mode .btn-delete {
    background-color: #C0392B;
}

body.dark-mode .btn-delete:hover {
    background-color: #E74C3C;
}

body.dark-mode .role-tag {
    color: #FFFFFF;
}

body.dark-mode .role-super {
    background-color: #D4A843;
    color: #0B1A3A;
}

body.dark-mode .role-admin {
    background-color: #2A4A6A;
    color: #FFFFFF;
}

body.dark-mode .role-editor {
    background-color: #1A5A3A;
    color: #FFFFFF;
}

body.dark-mode .empty-state {
    color: #B0C4DE;
}

body.dark-mode .stats-badge {
    background-color: #D4A843;
    color: #0B1A3A;
}

body.dark-mode .admin-sidebar {
    background-color: #060F1F;
}

/* Dark mode for admin login page */
body.dark-mode .admin-login-box {
    background-color: #122240;
}

body.dark-mode .admin-login-box .logo h2 {
    color: #FFFFFF;
}

body.dark-mode .admin-login-box .logo p {
    color: #B0C4DE;
}

body.dark-mode .admin-login-box .form-group label {
    color: #E8ECF0;
}

body.dark-mode .admin-login-box .form-group input {
    background-color: #0D1A30;
    color: #FFFFFF;
    border-color: #1A3A5A;
}

body.dark-mode .admin-login-box .form-group input:focus {
    border-color: #D4A843;
}

body.dark-mode .admin-login-box .back-link {
    color: #B0C4DE;
}

body.dark-mode .admin-login-box .back-link:hover {
    color: #D4A843;
}

/* Dark Mode Toggle Button Fix */
.dark-toggle {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Keeps any hover backdrop clean */
    transition: transform 0.3s ease, background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Removes mobile click highlight box */
}

/* Remove default browser outlines on focus */
.dark-toggle:focus,
.dark-toggle:focus-visible {
    outline: none;
    box-shadow: none;
}

.dark-toggle:hover {
    transform: scale(1.1);
}

.dark-toggle img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* Update dark mode specific border overrides */
body.dark-mode .dark-toggle {
    border-color: transparent; /* Prevents unwanted borders in dark mode */
}