/* CSS Design System for «Оқушылар үйі» КМҚК */

:root {
    --primary: #0d254c;
    --primary-light: #15356c;
    --primary-dark: #07152b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --kz-blue: #00afca;
    --kz-gold: #fec50c;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(13, 37, 76, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

section[id],
footer[id] {
    scroll-margin-top: 90px;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 848px;
}

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

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

button {
    font-family: inherit;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    text-align: center;
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    transition: var(--transition);
}

.btn:hover svg {
    transform: translateX(4px);
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

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

.btn-warning:hover {
    background-color: var(--warning-hover);
    color: var(--white);
    transform: translateY(-2px);
}

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

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

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

.btn-outline-dark:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-dark:hover svg {
    transform: translateX(-4px);
}

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

/* Typography and Section Headers */
.section-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 28px;
}

.section-head {
    margin-bottom: 40px;
}

.sub-section-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.6px;
}

.tag-light {
    color: rgba(255, 255, 255, 0.6);
}

.section-title {
    font-family: var(--font-head);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 820px;
    margin-top: 8px;
}

.text-white {
    color: var(--white);
}

.mt-4 {
    margin-top: 16px;
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.top-bar-contacts {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-contacts a,
.top-bar-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.top-bar-contacts svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-icon {
    display: inline-flex;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon:hover {
    color: var(--white);
}

.social-icon-lg {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
}

.social-icon-lg:hover {
    background-color: var(--accent);
}

/* Header Navbar */
.header {
    background-color: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

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

.logo-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.74rem;
    opacity: 0.7;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.93rem;
    opacity: 0.85;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: #93c5fd;
}

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

.btn-header {
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Menu */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background-color: var(--primary);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
}

.mobile-nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-link.active {
    color: #93c5fd;
}

.mobile-phone {
    display: block;
    padding: 16px 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.mobile-btn {
    display: flex;
    width: 100%;
}

/* Hero Section */
.hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0) 45%),
        radial-gradient(circle at 5% 95%, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0) 40%),
        linear-gradient(135deg, #0d254c 0%, #12336b 55%, #0a1d3d 100%);
    color: var(--white);
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.8px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-photo {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #e2e8f0;
    border: 6px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.hero-photo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.hero-photo-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.hero-photo-caption img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* Stats Bar */
.stats {
    background-color: var(--white);
    padding: 44px 0;
    border-bottom: 1px solid var(--border);
}

.stats-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.stat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background-color: var(--border);
    flex-shrink: 0;
}

/* Announcement */
.announcement {
    padding: 40px 0 0;
}

.announcement-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 100%);
    border: 1.5px solid #fde68a;
    border-radius: var(--radius-lg);
    padding: 22px 28px;
}

.announcement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(245, 158, 11, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
}

.announcement-icon svg {
    width: 26px;
    height: 26px;
    fill: #ea580c;
}

.announcement-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.announcement-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    color: #c2410c;
}

.announcement-text {
    font-size: 0.95rem;
    color: #7c2d12;
    line-height: 1.5;
}

.announcement-btn {
    flex-shrink: 0;
}

/* President Section */
.president-section {
    padding: 40px 0 0;
}

.president-block {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(100deg, #e6f7fa 0%, #f8fdfe 55%, #fffbea 100%);
    border: 1px solid #cdeef4;
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    overflow: hidden;
}

.president-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(var(--kz-blue), var(--kz-gold));
}

.president-photo {
    width: 220px;
    height: 234px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}

.president-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.president-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.president-name {
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
}

.president-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0e7490;
    margin-bottom: 16px;
}

/* About: Mission, Director, Org Info */
.about {
    padding: 70px 0;
}

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

.mission-card {
    position: relative;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #dbeafe;
    border-radius: var(--radius-lg);
    padding: 36px 36px 32px;
    margin-bottom: 20px;
    overflow: hidden;
}

.mission-quote {
    position: absolute;
    top: 14px;
    right: 20px;
    width: 72px;
    height: 72px;
    fill: rgba(37, 99, 235, 0.12);
}

.mission-text {
    position: relative;
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 600;
    font-style: italic;
    color: var(--primary);
    line-height: 1.65;
}

.director-card {
    display: flex;
    align-items: stretch;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.director-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.director-photo {
    width: 170px;
    flex-shrink: 0;
    background-color: #eef2f7;
}

.director-photo img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    object-position: 72% 18%;
}

.director-info {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.director-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.8px;
}

.director-name {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.director-org {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.std-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.std-box {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.std-box:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.std-box-wide {
    grid-column: span 2;
}

.std-box-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.std-box-value {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
}

.std-box-accent {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

.std-box-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
}

.std-box-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.std-box-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Directions Section */
.directions {
    background-color: var(--primary);
    padding: 80px 0;
}

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

.direction-card {
    grid-column: span 2;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 30px 30px;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--c);
    transition: var(--transition);
}

.direction-card.span-3 {
    grid-column: span 3;
}

.direction-card.span-6 {
    grid-column: span 6;
}

.direction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.direction-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.direction-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: var(--c);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.direction-icon svg,
.club-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.direction-num {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
}

.direction-title {
    font-family: var(--font-head);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.direction-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.direction-tags li {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary);
    background-color: #f1f5f9;
    padding: 6px 12px;
    border-radius: 50px;
}

/* Clubs Section */
.clubs {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.club-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    transition: var(--transition);
}

.club-card:hover {
    transform: translateY(-3px);
    border-color: var(--c);
    box-shadow: 0 10px 24px rgba(13, 37, 76, 0.08);
}

.club-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--c);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.club-name {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.clubs-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Achievements Section */
.achievements {
    padding: 80px 0;
}

.achievement-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff 0%, #fefce8 100%);
    border: 1px solid #dbeafe;
    border-radius: var(--radius-lg);
    padding: 40px;
}

.achievement-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-icon svg {
    width: 58px;
    height: 58px;
    fill: var(--warning);
}

.achievement-lead {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.achievement-text {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 20px;
}

.level-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.level-chips li {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    background-color: var(--white);
    border: 1px solid #bfdbfe;
    padding: 7px 16px;
    border-radius: 50px;
}

.social-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding: 24px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.social-cta-text {
    font-weight: 600;
    color: var(--primary);
}

.social-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

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

.social-btn-instagram {
    background: linear-gradient(45deg, #f59e0b 0%, #e11d48 50%, #9333ea 100%);
}

.social-btn-facebook {
    background-color: #1877f2;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Admission Section */
.admission-section {
    padding: 90px 0;
    background-color: var(--primary);
    color: var(--white);
}

.admission-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.admission-title {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 10px 0 20px;
}

.admission-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
}

.admission-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 32px 0 36px;
}

.admission-step-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 800;
    flex-shrink: 0;
}

.step-desc {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.contact-card {
    background-color: var(--white);
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-card-title {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.bg-icon-blue {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent);
}

.bg-icon-green {
    background-color: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.bg-icon-pink {
    background-color: rgba(225, 29, 72, 0.1);
    color: #e11d48;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

a.contact-value:hover,
.contact-links a:hover {
    color: var(--accent);
}

.contact-links {
    display: flex;
    gap: 16px;
}

/* Useful Links Section */
.useful-links {
    padding: 56px 0;
    background-color: var(--bg-light);
}

.links-tag {
    display: block;
    margin-bottom: 20px;
}

.links-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
}

.link-pill-btn {
    background-color: var(--white);
    border: 1.5px solid var(--border);
    color: var(--primary);
    padding: 12px 22px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.link-pill-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* State Symbols Section */
.state-symbols {
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

.symbols-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 96px;
}

.symbol-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    max-width: 280px;
}

.symbol-card img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.symbol-card span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.4;
}

/* News: Page Hero and Breadcrumbs */
.page-hero {
    background:
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0) 50%),
        linear-gradient(135deg, #0d254c 0%, #12336b 100%);
    color: var(--white);
    padding: 48px 0 56px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    min-width: 0;
}

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

.breadcrumbs-current {
    color: rgba(255, 255, 255, 0.9);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-title {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 10px;
    max-width: 700px;
}

/* Home: Latest News */
.home-news {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.section-head-row .section-title-wrapper {
    margin-bottom: 0;
}

.news-empty {
    text-align: center;
    padding: 60px 24px;
    background-color: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: 1.05rem;
}

.preview-notice {
    background-color: #fef3c7;
    color: #92400e;
    text-align: center;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* News List */
.news-list-section {
    padding: 56px 0 80px;
    background-color: var(--bg-light);
}

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

.news-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 30px rgba(13, 37, 76, 0.08);
}

.news-card-img {
    display: block;
    aspect-ratio: 16 / 10;
    background-color: #e2e8f0;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-card-img img {
    transform: scale(1.04);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 22px 24px 24px;
}

.news-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-card-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a:hover {
    color: var(--accent);
}

.news-card-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.news-card-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: var(--transition);
}

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

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

.page-link {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: var(--white);
    border: 1px solid var(--border);
    font-weight: 700;
    color: var(--primary);
}

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

.page-link.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* News Single (Article) */
.article-date {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.article-title {
    font-family: var(--font-head);
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.article {
    padding: 48px 0 80px;
}

.article-cover {
    margin-bottom: 36px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: #e2e8f0;
}

.article-cover img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

/* Typography for long article text (content comes from the editor/CMS as plain HTML) */
.article-content {
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--text);
    overflow-wrap: anywhere;
}

.article-content > * + * {
    margin-top: 1.1em;
}

.article-content h2 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    margin-top: 1.8em;
}

.article-content h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
    margin-top: 1.6em;
}

.article-content h2 + *,
.article-content h3 + * {
    margin-top: 0.6em;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--accent-hover);
}

.article-content ul,
.article-content ol {
    padding-left: 1.5em;
}

.article-content li + li {
    margin-top: 0.4em;
}

.article-content li::marker {
    color: var(--accent);
    font-weight: 700;
}

.article-content img {
    border-radius: var(--radius-md);
    height: auto;
}

.article-content figure {
    margin: 2em 0;
}

.article-content figcaption {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    background-color: #eff6ff;
    padding: 18px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--primary);
}

.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
    overflow-wrap: normal;
}

.article-content th {
    background-color: var(--bg-light);
    font-weight: 700;
    color: var(--primary);
}

.article-content iframe,
.article-content video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--radius-md);
}

.article-footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 24px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.2fr;
    gap: 56px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brand-desc {
    line-height: 1.6;
}

.brand-slogan {
    font-family: var(--font-head);
    font-weight: 700;
    font-style: italic;
    color: var(--warning);
}

.footer-links h4,
.footer-contacts h4 {
    font-family: var(--font-head);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-contacts p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-contacts strong {
    color: rgba(255, 255, 255, 0.9);
}

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

.footer-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    font-size: 0.8rem;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1180px) {
    .nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .clubs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-media {
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }
    .about-grid,
    .admission-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .directions-grid .direction-card {
        grid-column: span 1;
    }
    .directions-grid .direction-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }
    .stats-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .stat-card {
        flex: 0 0 calc(50% - 24px);
        text-align: center;
    }
    .stat-divider {
        display: none;
    }
    .announcement-card {
        flex-wrap: wrap;
    }
    .announcement-content {
        flex-basis: calc(100% - 68px);
    }
    .announcement-btn {
        margin-left: 68px;
    }
    .social-cta {
        flex-direction: column;
        text-align: center;
    }
    .social-cta-buttons {
        justify-content: center;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .header-inner {
        height: 70px;
    }
    .btn-header {
        display: none;
    }
    .logo-title {
        font-size: 1.05rem;
    }
    .hero {
        padding: 60px 0 80px;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .admission-title {
        font-size: 1.9rem;
    }
    .president-block {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 24px;
        padding: 32px 24px;
    }
    .president-content {
        align-items: center;
    }
    .president-name {
        font-size: 1.5rem;
    }
    .clubs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .achievement-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 32px 24px;
    }
    .level-chips {
        justify-content: center;
    }
    .symbols-inner {
        flex-direction: column;
        gap: 40px;
    }
    .page-title {
        font-size: 2rem;
    }
    .article-title {
        font-size: 1.75rem;
    }
    .article-content {
        font-size: 1rem;
    }
    .article-content h2 {
        font-size: 1.35rem;
    }
    .article-content h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 640px) {
    .directions-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    .directions-grid .direction-card,
    .directions-grid .direction-card:last-child:nth-child(odd) {
        grid-column: span 1;
    }
    .std-info-grid {
        grid-template-columns: 1fr;
    }
    .std-box-wide {
        grid-column: span 1;
    }
    .director-card {
        flex-direction: column;
    }
    .director-photo {
        width: 100%;
        height: 280px;
    }
    .director-photo img {
        object-position: 72% 15%;
    }
    .announcement-btn {
        margin-left: 0;
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-brand {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 1.95rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-photo-caption {
        display: none;
    }
    .stat-card {
        flex: 0 0 100%;
    }
    .clubs-grid {
        grid-template-columns: 1fr;
    }
    .mission-card,
    .contact-card {
        padding: 28px 22px;
    }
    .social-btn {
        white-space: normal;
    }
    .president-photo {
        width: 180px;
        height: 192px;
    }
}
