/* ===============================================
   KARAGINDINSKIY INDUSTRIAL UNIVERSITY - STYLES
   =============================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #003366;
    --primary-dark: #002244;
    --primary-light: #004488;
    --secondary-color: #006699;
    --accent-color: #00a0d2;
    --gold-color: #d4af37;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #003366 0%, #006699 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0,51,102,0.95) 0%, rgba(0,102,153,0.9) 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-width: 1400px;
    --section-padding: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--gray-100);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ===============================================
   TOP BAR
   =============================================== */
/* Sticky Header Wrapper - фиксирует top-bar и header вместе */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contacts {
    display: flex;
    gap: 24px;
}

.top-contacts a,
.top-contacts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

.top-contacts a:hover {
    color: var(--white);
}

.top-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.8rem;
}

.lang-switch:hover,
.lang-switch.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* Кнопки верхней панели */
.topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.topbar-btn i {
    font-size: 0.75rem;
}

/* Типы кнопок */
.topbar-btn-default {
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.topbar-btn-default:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.topbar-btn-primary {
    color: var(--primary-dark);
    background: #ffc107;
    border: none;
    font-weight: 600;
}
.topbar-btn-primary:hover {
    background: #ffca2c;
    transform: translateY(-1px);
}

.topbar-btn-outline {
    color: var(--white);
    background: transparent;
    border: 1px solid var(--white);
}
.topbar-btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.lang-switcher {
    display: flex;
    gap: 4px;
    margin-right: 10px;
}
.topbar-btn-lang {
    color: var(--gray-400);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 4px 10px;
    font-weight: 600;
    transition: all 0.2s;
}
.topbar-btn-lang:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}
.topbar-btn-lang.active {
    color: var(--white);
    background: var(--secondary-color);
}

/* Размеры кнопок */
.topbar-btn-small {
    padding: 3px 8px;
    font-size: 0.7rem;
}
.topbar-btn-small i {
    font-size: 0.65rem;
}

.topbar-btn-large {
    padding: 6px 16px;
    font-size: 0.85rem;
}
.topbar-btn-large i {
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a {
    color: var(--gray-400);
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* ===============================================
   HEADER
   =============================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Navigation */
.main-nav {
    display: flex;
    position: static;
}

.nav-list {
    display: flex;
    gap: 4px;
}

.nav-item > a {
    display: block;
    padding: 10px 12px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-item > a:hover {
    color: var(--primary-color);
    background: var(--gray-100);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 600px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    padding: 24px;
    padding-top: 34px;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.dropdown-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-column a {
    display: block;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.dropdown-column a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.dropdown-column a:last-child {
    border-bottom: none;
}

/* Mega Menu - для меню с несколькими группами */
.dropdown-menu.mega-menu {
    min-width: 650px;
    max-width: 750px;
}

.dropdown-menu.mega-menu .dropdown-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dropdown-menu.mega-menu .dropdown-column {
    min-width: 0;
}

.dropdown-menu.mega-menu .dropdown-column h4 {
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.75rem;
    line-height: 1.3;
}

.dropdown-menu.mega-menu .dropdown-column a {
    font-size: 0.85rem;
    padding: 6px 0;
    line-height: 1.3;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--gray-600);
    background: var(--gray-100);
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ===============================================
   SEARCH MODAL
   =============================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
    position: relative;
}

.search-form {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.search-input {
    flex: 1;
    padding: 20px 24px;
    font-size: 1.2rem;
    border: none;
    outline: none;
}

.search-submit {
    padding: 20px 24px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.2rem;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    opacity: 0.7;
}

.search-close:hover {
    opacity: 1;
}

/* Search Modal Suggestions */
.search-modal-suggestions {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    display: none;
}

.search-modal-suggestions.active {
    display: block;
}

.modal-suggestion-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: var(--gray-700);
    transition: background 0.2s;
}

.modal-suggestion-item:hover {
    background: var(--gray-50);
}

.modal-suggestion-item:last-child {
    border-bottom: none;
}

.modal-suggestion-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.modal-suggestion-content {
    flex: 1;
    min-width: 0;
}

.modal-suggestion-title {
    font-weight: 500;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-suggestion-type {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-slider {
    width: 100%;
}

.hero-slide {
    display: none;
    padding: 60px 0;
}

.hero-slide.active {
    display: block;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-wrapper.has-image .hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    color: var(--white);
}

.hero-image {
    flex: 0 0 auto;
    position: relative;
    z-index: 10;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: inline-flex;
    gap: 48px;
    padding-top: 48px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.3);
    min-width: 80px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===============================================
   QUICK LINKS
   =============================================== */
.quick-links {
    margin-top: 20px;
    position: relative;
    z-index: 20;
    padding-bottom: 40px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.quick-link-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.quick-link-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
}

.quick-link-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.quick-link-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ===============================================
   SECTION STYLES
   =============================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gray-100);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
}

/* ===============================================
   ABOUT SECTION
   =============================================== */
.about-section {
    padding: 40px 0 var(--section-padding) 0;
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text {
    margin-bottom: 32px;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--gray-600);
}

.about-features {
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 500;
    color: var(--gray-700);
}

.about-image {
    position: relative;
}

.image-placeholder {
    background: var(--gradient-primary);
    height: 450px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.image-placeholder i {
    font-size: 5rem;
    margin-bottom: 16px;
    opacity: 0.8;
}

.image-placeholder span {
    font-size: 1.1rem;
    opacity: 0.8;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ===============================================
   PROGRAMS SECTION
   =============================================== */
.programs-section {
    padding: 40px 0 var(--section-padding) 0;
}

.programs-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.tab-btn:hover {
    background: var(--gray-200);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.program-icon {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.program-card:hover .program-icon {
    background: var(--gradient-primary);
    color: var(--white);
}

.program-card h4 {
    margin-bottom: 12px;
}

.program-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.program-duration {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.programs-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===============================================
   NEWS SECTION
   =============================================== */
.news-section {
    padding: 40px 0 var(--section-padding) 0;
    background: var(--gray-50);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.news-card.featured {
    grid-column: 1;
    grid-row: span 2;
}

.news-card.featured .news-image {
    height: 350px;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-image .image-placeholder {
    height: 180px;
    border-radius: 0;
}

.news-image .image-placeholder.small i {
    font-size: 2.5rem;
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.news-content {
    padding: 24px;
}

.news-meta {
    margin-bottom: 12px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.news-date i {
    margin-right: 6px;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card.featured h3 {
    font-size: 1.4rem;
}

.news-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.news-link:hover {
    color: var(--accent-color);
}

.news-link i {
    transition: transform var(--transition-fast);
}

.news-link:hover i {
    transform: translateX(4px);
}

.news-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===============================================
   PARTNERS SECTION
   =============================================== */
.partners-section {
    padding: 40px 0 var(--section-padding) 0;
}

.partners-slider {
    overflow: visible;
    position: relative;
}

.partners-track {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    justify-content: center;
    align-items: center;
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.partner-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: opacity 0.3s ease;
}

.partner-logo a:hover {
    opacity: 0.7;
}

.partner-logo img {
    max-height: 60px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-placeholder {
    padding: 24px 48px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    font-weight: 700;
    color: var(--gray-400);
    font-size: 1.1rem;
    white-space: nowrap;
}

/* ===============================================
   CTA SECTION
   =============================================== */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 30px 30px;
}

.cta-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    background: rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-title {
    color: var(--white);
}

.footer-logo .logo-subtitle {
    color: var(--gray-400);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-color);
    color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact ul li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.footer-contact ul li i {
    color: var(--accent-color);
    width: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact a {
    color: var(--gray-400);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ===============================================
   MOBILE MENU
   =============================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 2000;
    transition: right var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    flex-shrink: 0;
}

.mobile-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.mobile-logo img {
    max-height: 40px;
    width: auto;
}

.mobile-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-close:hover,
.mobile-close:active {
    background: var(--gray-100);
    color: var(--gray-800);
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav > ul > li {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav > ul > li:last-child {
    border-bottom: none;
}

.mobile-nav > ul > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-800);
    transition: color var(--transition-fast);
}

.mobile-nav > ul > li > a:active {
    color: var(--primary-color);
}

/* Mobile Dropdown */
.mobile-dropdown-toggle {
    cursor: pointer;
}

.mobile-dropdown-icon {
    font-size: 0.75rem;
    color: var(--gray-500);
    transition: transform var(--transition-base);
    margin-left: 8px;
}

.mobile-dropdown.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    padding: 0 0 12px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-dropdown.active .mobile-submenu {
    display: block;
}

.mobile-submenu li {
    border-bottom: none !important;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--gray-600);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: all var(--transition-fast);
}

.mobile-submenu li a:active {
    background: var(--gray-100);
    color: var(--primary-color);
}

.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    flex-shrink: 0;
}

/* ===============================================
   PAGE SPECIFIC STYLES
   =============================================== */

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
}

.page-header-content {
    position: relative;
    z-index: 10;
}

.breadcrumb {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Content Section */
.content-section {
    padding: var(--section-padding) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
}

.content-main {
    min-width: 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.sidebar-links a:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.sidebar-links a i {
    color: var(--gray-400);
    width: 20px;
}

/* Info Cards */
.info-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.info-card h3 {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.info-card p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-content h4 {
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.stat-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-photo {
    height: 280px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.5);
}

.team-info {
    padding: 24px;
    text-align: center;
}

.team-info h4 {
    margin-bottom: 8px;
}

.team-info .position {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.team-info p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Accordion */
.accordion {
    margin-bottom: 32px;
}

.accordion-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--gray-800);
    background: var(--white);
    text-align: left;
    transition: all var(--transition-fast);
}

.accordion-header:hover {
    background: var(--gray-50);
}

.accordion-header i {
    transition: transform var(--transition-base);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 24px 24px;
    color: var(--gray-600);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Contact Info */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.contact-info-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.contact-info-card .icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-info-card h4 {
    margin-bottom: 8px;
}

.contact-info-card p,
.contact-info-card a {
    color: var(--gray-600);
    font-size: 1.05rem;
}

.contact-info-card a:hover {
    color: var(--primary-color);
}

/* Map */
.map-container {
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: var(--gray-500);
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}

/* News Page */
.news-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.news-list {
    display: grid;
    gap: 24px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.news-list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.news-list-item .news-image {
    height: 100%;
    min-height: 200px;
}

.news-list-item .news-content {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.pagination a {
    background: var(--white);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.pagination a:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.pagination .active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===============================================
   RESPONSIVE STYLES
   =============================================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: span 3;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .dropdown-menu.mega-menu .dropdown-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .nav-list {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions .btn-primary {
        display: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-wrapper {
        gap: 30px;
    }

    .hero-wrapper.has-image .hero-content {
        flex: 1;
        max-width: none;
    }

    .hero-image img {
        max-width: 400px;
    }
}

/* Mobile tablets */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 16px;
    }

    .top-bar {
        display: none;
    }

    /* Header */
    .header-content {
        padding: 12px 0;
    }

    .logo-text {
        display: none;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .logo-icon span {
        font-size: 1rem;
    }

    .search-btn {
        width: 40px;
        height: 40px;
    }

    .mobile-menu-btn {
        padding: 10px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .hero-wrapper.has-image .hero-content {
        max-width: 100%;
    }

    .hero-image {
        max-width: 100%;
        order: -1;
    }

    .hero-image img {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-badge {
        padding: 6px 14px;
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        padding-top: 24px;
    }

    .hero-stats .stat-item {
        flex: 1 1 45%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-scroll {
        display: none;
    }

    /* Quick Links */
    .quick-links {
        margin-top: 0;
        padding: 30px 0;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .quick-link-card {
        padding: 20px 16px;
    }

    .quick-link-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .quick-link-card h3 {
        font-size: 0.95rem;
    }

    .quick-link-card p {
        font-size: 0.8rem;
        display: none;
    }

    /* Section Header */
    .section-header {
        margin-bottom: 32px;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .image-placeholder {
        height: 300px;
    }

    .about-badge {
        position: static;
        margin-top: -40px;
        margin-left: 20px;
        display: inline-block;
    }

    /* Programs */
    .programs-tabs {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .program-card {
        padding: 24px;
    }

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-card.featured {
        grid-column: 1;
        grid-row: span 1;
    }

    .news-card.featured .news-image {
        height: 220px;
    }

    .news-content {
        padding: 20px;
    }

    .news-card h3 {
        font-size: 1.1rem;
    }

    .news-card.featured h3 {
        font-size: 1.2rem;
    }

    /* News List */
    .news-list-item {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 180px;
    }

    .news-list-item .news-content {
        padding: 20px;
    }

    /* CTA */
    .cta-section {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* Page Header */
    .page-header {
        padding: 50px 0 40px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    /* Content Section */
    .content-section {
        padding: 40px 0;
    }

    /* Info Cards */
    .info-card {
        padding: 24px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card .stat-number {
        font-size: 2rem;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-photo {
        height: 220px;
    }

    /* Contact */
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .contact-info-card .icon {
        margin: 0 auto 12px;
    }

    .map-container {
        height: 300px;
    }

    /* Search Modal */
    .search-modal {
        padding-top: 80px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .search-input {
        padding: 16px;
        font-size: 1rem;
    }

    .search-submit {
        padding: 16px;
    }

    .search-close {
        top: 20px;
        right: 16px;
    }

    .search-modal-suggestions {
        max-height: 300px;
    }

    .modal-suggestion-item {
        padding: 12px 16px;
    }

    /* Accordion */
    .accordion-header {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 0 20px 20px;
    }

    /* Forms */
    .form-control {
        padding: 12px 14px;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Pagination */
    .pagination {
        gap: 6px;
    }

    .pagination a,
    .pagination span {
        width: 40px;
        height: 40px;
    }
}

/* Small phones */
@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }

    .quick-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .quick-link-card {
        padding: 16px 12px;
    }

    .quick-link-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .quick-link-card h3 {
        font-size: 0.85rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .stat-card .stat-number {
        font-size: 1.75rem;
    }

    .stat-card .stat-label {
        font-size: 0.85rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-brand {
        grid-column: 1;
    }

    .hero-stats .stat-item {
        flex: 1 1 100%;
    }

    .hero-buttons .btn {
        font-size: 0.9rem;
    }

    .news-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* Very small phones */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Landscape orientation on phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .hero-stats .stat-item {
        flex: 1;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .quick-link-card:hover {
        transform: none;
    }

    .news-card:hover {
        transform: none;
    }

    .program-card:hover {
        transform: none;
    }

    .team-card:hover {
        transform: none;
    }

    .nav-item > a:hover {
        background: transparent;
    }

    /* Better touch targets */
    .nav-item > a {
        padding: 12px 16px;
    }

    .footer-links a {
        padding: 8px 0;
        display: block;
    }

    .sidebar-links a {
        padding: 12px;
    }
}
