/* TDMai Web Rebuild Design System */
:root {
    --primary-color: #0a5d36;
    --primary-dark: #02aa5c;
    --primary-light: #eefdf5;
    --secondary-color: #c5a059;
    --secondary-hover: #a8823b;
    --secondary-light: #fbf8f0;
    --dark-bg: #121212;
    --light-bg: #f5f8f6;
    --text-color: #2b3a32;
    --text-light: #6e8275;
    --white: #ffffff;
    --gray-light: #e8ede9;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --box-shadow: 0 10px 30px rgba(10, 92, 54, 0.06);
    --box-shadow-hover: 0 15px 40px rgba(10, 92, 54, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
}

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

a:hover {
    color: var(--secondary-color);
}

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

ul {
    list-style: none;
}

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

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

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

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

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

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

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

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

.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

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

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.lang-btn img {
    height: 12px;
    width: 18px;
    border-radius: 2px;
}

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

.portal-btn {
    color: var(--white);
    background-color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.portal-btn:hover {
    background-color: var(--secondary-hover);
    color: var(--white);
}

/* Header Navigation */
.main-header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 clamp(10px, 1.8vw, 32px);
    gap: clamp(4px, 0.8vw, 14px);
    box-sizing: border-box;
    position: relative;
}

@media (min-width: 1240px) {
    .top-bar-container {
        max-width: 100%;
        padding: 0 24px;
    }
    .header-container {
        max-width: 100%;
    }
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.7vw, 10px);
    margin-left: -2px;
    flex-shrink: 0;
    text-decoration: none !important;
    position: relative;
    z-index: 5;
}

.logo-img {
    height: clamp(38px, 2.6vw, 48px);
    width: auto;
    object-fit: contain;
}

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

.logo-title,
.logo-subtitle {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(0.72rem, 0.8vw, 0.95rem);
    color: var(--primary-dark);
    line-height: 1.1;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .logo-subtitle {
        display: none;
    }
}

/* Main Navigation Menu */
.nav-menu {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
}

.nav-menu>ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1px, 0.3vw, 5px);
    list-style: none;
    margin: 0 auto;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-menu>ul>li {
    flex-shrink: 0;
}

.nav-menu>ul>li>a {
    color: var(--text-color);
    font-weight: 600;
    font-size: clamp(0.67rem, 0.72vw, 0.80rem);
    padding: 5px clamp(4px, 0.45vw, 8px);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: -0.15px;
    transition: var(--transition);
}

.nav-menu>ul>li>a:hover,
.nav-menu>ul>li>a.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

/* Header Language Selector styling */
.header-lang-selector {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.header-lang-selector .lang-btn {
    color: var(--text-color);
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    transition: var(--transition);
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none !important;
    white-space: nowrap;
}

.header-lang-selector .lang-btn img {
    height: 11px;
    width: 16px;
    border-radius: 2px;
}

.header-lang-selector .lang-btn:hover,
.header-lang-selector .lang-btn.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

/* Responsive adjustments for desktop screens to prevent navigation wrapping & overlap in EN / RU */
@media (min-width: 1200px) and (max-width: 1400px) {
    .header-container {
        max-width: 99%;
        padding: 0 4px;
        gap: 4px;
    }

    .logo {
        gap: 6px;
    }

    .logo-img {
        height: 38px;
    }

    .logo-title,
    .logo-subtitle {
        font-size: 0.72rem;
        letter-spacing: -0.3px;
    }

    .nav-menu>ul {
        gap: 1px;
    }

    .nav-menu>ul>li>a {
        font-size: 0.66rem;
        padding: 4px 4px;
        gap: 2px;
        letter-spacing: -0.2px;
    }

    .header-lang-selector {
        margin-left: 2px;
        gap: 2px;
    }

    .header-lang-selector .lang-btn {
        padding: 3px 4px;
        font-size: 0.70rem;
    }
}

@media (min-width: 1401px) and (max-width: 1600px) {
    .header-container {
        max-width: 98%;
        gap: 6px;
    }

    .logo-img {
        height: 42px;
    }

    .logo-title,
    .logo-subtitle {
        font-size: 0.82rem;
    }

    .nav-menu>ul {
        gap: 2px;
    }

    .nav-menu>ul>li>a {
        font-size: 0.72rem;
        padding: 5px 6px;
        letter-spacing: -0.15px;
    }

    .header-lang-selector {
        margin-left: 6px;
        gap: 3px;
    }

    .header-lang-selector .lang-btn {
        padding: 4px 6px;
        font-size: 0.76rem;
    }
}

@media (min-width: 1601px) {
    .header-container {
        max-width: 98%;
        gap: 10px;
    }

    .logo-img {
        height: 48px;
    }

    .logo-title,
    .logo-subtitle {
        font-size: 0.92rem;
    }

    .nav-menu>ul {
        gap: 4px;
    }

    .nav-menu>ul>li>a {
        font-size: 0.78rem;
        padding: 5px 8px;
    }

    .header-lang-selector {
        margin-left: 10px;
        gap: 4px;
    }
}

@media (max-width: 1199px) {
    .header-lang-selector {
        margin-left: auto;
        margin-right: 8px;
    }
}

/* Dropdown Submenus */
.dropdown-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1050;
}

/* Safeguard right-aligned dropdowns from clipping or overlapping right edge/flags */
.nav-menu>ul>li:nth-last-child(-n+4) .dropdown-menu {
    left: auto;
    right: 0;
}

.nav-menu>ul>li:nth-last-child(-n+4) .submenu-dropdown {
    left: auto;
    right: 100%;
}

.dropdown-item:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: none;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding-left: 24px;
}

/* Multi-level Dropdowns (Submenus) */
.dropdown-submenu-item {
    position: relative;
}

.submenu-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 1060;
}

.dropdown-submenu-item:hover>.submenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Hero Slider Area */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    height: 70vh;
    min-height: 500px;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    
    /* Default: hidden off-screen to the right */
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.slide.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide.exit {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.slide-content {
    color: var(--white);
    max-width: 800px;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-title {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(10, 92, 54, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--primary-color);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
    background-color: var(--white);
    transform: scale(1.2);
}

/* Sections Styling */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    color: var(--primary-dark);
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.section-divider.left {
    margin-left: 0;
}

/* News Cards Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-light);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

.news-card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.news-card-img,
.news-card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.news-card:hover .news-card-img,
.news-card:hover .news-card-video {
    transform: scale(1.05);
}

.news-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--text-light);
}

.news-video-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 92, 54, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    transition: all 0.25s ease;
}

.news-card:hover .news-video-indicator {
    background: var(--primary-color, #0a5c36);
    transform: scale(1.06);
}

.video-unmute-hint-btn {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(10, 92, 54, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
    animation: pulseUnmute 2s infinite;
}

.video-unmute-hint-btn:hover {
    background: #064e29;
    transform: scale(1.05);
}

@keyframes pulseUnmute {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.news-card-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.news-card-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.news-card-title a {
    color: var(--primary-dark);
    text-decoration: none;
}

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

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
    height: 3.0em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-light);
    padding-top: 15px;
    font-size: 0.85rem;
}

.news-card-more {
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.news-card-more:hover,
.news-card:hover .news-card-more {
    color: var(--secondary-color);
}

.news-card-views {
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Departments Grid & Card */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dept-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--gray-light);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

.dept-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.dept-card:hover .dept-card-title {
    color: var(--primary-color);
}

.dept-card-head {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.dept-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    transition: color 0.3s ease;
}

.dept-card:hover .dept-card-link {
    color: var(--secondary-color);
}

/* Stats / Counters styling */
.stats-section {
    background-image: linear-gradient(rgba(10, 92, 54, 0.85), rgba(4, 75, 43, 0.90)), url('/static/images/stats_bg.jpg');
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 36px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-icon-wrapper {
    font-size: 2.5rem;
    color: #f1c40f;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
}

.stat-custom-logo {
    max-width: 54px;
    max-height: 54px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-custom-logo {
    transform: scale(1.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* History Section */
.history-section {
    background-color: var(--light-bg);
}

.history-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: stretch;
}

.history-image-col {
    flex: 1;
    min-width: 400px;
    background-image: linear-gradient(rgba(10, 92, 54, 0.3), rgba(7, 63, 37, 0.5)), url('/static/images/history_banner.jpg');
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.history-image-badge {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.history-content-col {
    flex: 1.3;
    padding: 60px;
}

.history-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.history-content-col p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-color);
    opacity: 0.9;
}

/* Weekly Reports Section */
/* Reports Card Grid Styling */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.report-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.report-card * {
    text-decoration: none !important;
}

.report-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(4, 136, 72, 0.12);
    border-color: rgba(4, 136, 72, 0.3);
}

.report-card-media {
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.report-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.report-card:hover .report-card-media img {
    transform: scale(1.05);
}

.report-card-placeholder {
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #0a5c36 0%, #048848 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    gap: 8px;
}

.report-card-placeholder i {
    font-size: 48px;
    color: #ffffff;
}

.report-card-placeholder .pdf-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.report-badge-floating {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 92, 54, 0.88);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.report-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.report-card:hover .report-card-title {
    color: var(--primary-color);
}

.report-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: var(--text-light);
}

.report-card-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

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

/* Recent Contents Continuous Slider (4 cards visible) */
.recent-slider-wrapper {
    position: relative;
    width: 100%;
}

.recent-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    font-size: 15px;
}

.recent-slider-arrow:hover {
    background: var(--primary-color, #0a5c36);
    color: #ffffff;
    border-color: var(--primary-color, #0a5c36);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 20px rgba(10, 92, 54, 0.3);
}

.recent-slider-arrow.prev {
    left: -20px;
}

.recent-slider-arrow.next {
    right: -20px;
}

@media (max-width: 1200px) {
    .recent-slider-arrow.prev {
        left: -10px;
    }
    .recent-slider-arrow.next {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .recent-slider-arrow {
        display: none;
    }
}

.recent-contents-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    margin-top: 25px;
    cursor: grab;
    touch-action: pan-y;
}

.recent-contents-slider-container.is-dragging {
    cursor: grabbing;
}

.recent-contents-slider-container a,
.recent-contents-slider-container img {
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.recent-contents-slider-container img {
    pointer-events: none;
}

.recent-contents-slider-container .recent-contents-slider-track {
    display: flex;
    gap: 24px;
    padding: 10px 4px 24px 4px;
    will-change: transform;
    overflow: visible;
}

.recent-content-slide-item {
    /* Exactly 4 cards visible on desktop: (100% - 3 gaps of 24px) / 4 */
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: calc((100% - 72px) / 4);
    max-width: calc((100% - 72px) / 4);
    height: auto;
    box-sizing: border-box;
    display: flex;
}

.recent-content-slide-item .report-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1100px) {
    .recent-content-slide-item {
        /* 3 cards visible on medium screens */
        flex: 0 0 calc((100% - 48px) / 3);
        min-width: calc((100% - 48px) / 3);
        max-width: calc((100% - 48px) / 3);
    }
}

@media (max-width: 768px) {
    .recent-contents-slider-container .recent-contents-slider-track {
        gap: 16px;
    }
    .recent-content-slide-item {
        /* 2 cards visible on tablet / mobile */
        flex: 0 0 calc((100% - 16px) / 2);
        min-width: calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }
}

@media (max-width: 520px) {
    .recent-content-slide-item {
        /* 1 card visible on small mobile */
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.report-row {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.report-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(10, 92, 54, 0.04);
}

.report-icon {
    font-size: 2.2rem;
    color: #e74c3c;
    margin-right: 25px;
}

.report-info {
    flex-grow: 1;
}

.report-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.report-title {
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.report-date {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Partners Area */
.partners-section {
    background-color: var(--light-bg);
}

.partners-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.partner-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-logo-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 3rem;
    color: var(--primary-color);
}

.partner-logo {
    max-height: 100%;
    max-width: 150px;
    filter: grayscale(1);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-card:hover .partner-logo {
    filter: grayscale(0);
    opacity: 1;
}

.partner-name {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.partner-country {
    font-size: 0.8rem;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Page Banner */
.page-banner {
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.page-banner-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

.page-banner-subtitle {
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 400;
}

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

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

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

/* Detail Pages Split Layout */
.detail-container,
.faculty-container,
.department-container,
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 80px;
}

@media(min-width: 992px) {

    .detail-container,
    .faculty-container,
    .department-container {
        grid-template-columns: 2.7fr 1fr;
    }

    .contact-container {
        grid-template-columns: 1.2fr 1.8fr;
    }
    
    .detail-container.full-width {
        grid-template-columns: 1fr;
    }
}

/* News details */
.article-detail {
    background-color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.article-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.25;
}

.article-meta {
    display: flex;
    gap: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-img-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
    text-align: center;
}

.article-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.article-body {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.9;
    margin-bottom: 40px;
}

.article-body img,
.department-body img,
.faculty-body img {
    max-width: 100%;
    height: auto !important;
    object-fit: contain !important;
    border-radius: var(--border-radius-sm);
    display: block;
    margin: 20px auto;
}

/* Rich Text Table Styling */
.article-body table,
.department-body table,
.faculty-body table,
.detail-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
}

.article-body table th,
.department-body table th,
.faculty-body table th,
.detail-container table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-body table td,
.department-body table td,
.faculty-body table td,
.detail-container table td {
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    color: var(--text-color);
    vertical-align: middle;
}

.article-body table tr:nth-child(even),
.department-body table tr:nth-child(even),
.faculty-body table tr:nth-child(even),
.detail-container table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.article-body table tr:hover,
.department-body table tr:hover,
.faculty-body table tr:hover,
.detail-container table tr:hover {
    background-color: rgba(10, 93, 54, 0.04);
}

@media screen and (max-width: 768px) {
    .article-body table,
    .department-body table,
    .faculty-body table,
    .detail-container table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ol,
.article-body ul {
    padding-left: 1.5rem;
    margin-bottom: 20px;
}

.article-body ol li,
.article-body ul li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-body strong {
    color: var(--primary-dark);
}

.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--primary-dark);
}

/* Custom Page Details styling */
.page-hero-img {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.page-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.page-section-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.page-section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.page-address {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-top: 40px;
    font-size: 1.05rem;
}


.article-footer {
    border-top: 1px solid var(--gray-light);
    padding-top: 30px;
}

/* Sidebars styling */
.detail-sidebar,
.faculty-sidebar,
.department-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--light-bg);
    border: 1px solid var(--gray-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

.widget-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.widget-news-list li {
    border-bottom: 1px solid var(--gray-light);
    padding: 12px 0;
}

.widget-news-list li:last-child {
    border-bottom: none;
}

.widget-news-list li a {
    display: block;
}

.widget-news-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.widget-news-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
}

.widget-news-list li:hover .widget-news-title {
    color: var(--primary-color);
}

/* Faculty & Dean Sidebar Details */
.dean-avatar-wrapper,
.head-avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 4px solid var(--white);
    box-shadow: var(--box-shadow);
    background-color: var(--gray-light);
}

.dean-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dean-img-placeholder,
.head-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

.dean-name,
.head-name {
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.dean-label,
.head-label {
    text-align: center;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Departments lists on Faculty Detail */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.dept-card {
    background-color: var(--light-bg);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
}

.dept-card:hover {
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
    transform: translateY(-4px);
}

.dept-card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.dept-card-title a {
    color: var(--primary-dark);
}

.dept-card-head {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.dept-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Parent Faculty Badge */
.parent-faculty-badge {
    font-size: 0.85rem;
    background-color: var(--secondary-light);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--secondary-hover);
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Olympiad Archive list styles */
.olympiad-year-block {
    margin-bottom: 60px;
}

.year-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.olympiads-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.olympiad-item {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    transition: var(--transition);
}

.olympiad-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.05);
}

.oly-title {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.oly-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact page structures */
.contact-info-panel {
    background-color: var(--light-bg);
    border: 1px solid var(--gray-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-panel-title {
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 35px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-detail-item .icon-box {
    background-color: var(--primary-color);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(10, 92, 54, 0.15);
    flex-shrink: 0;
}

.contact-detail-item .icon-box i {
    color: #ffffff !important;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-detail-item .details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--primary-dark);
}

.contact-detail-item .details p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
}

/* Contact form panel styling */
.contact-form-panel {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: var(--light-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(10, 92, 54, 0.08);
}

textarea.form-control {
    resize: vertical;
}

/* Alerts / Django messages styling */
.messages-container {
    padding-top: 20px;
}

.alert {
    padding: 15px 25px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.no-data {
    color: var(--text-light);
    text-align: center;
    padding: 40px 0;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Footer layout details */
.main-footer {
    background-color: #02aa5c;
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

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

@media(min-width: 992px) {
    .footer-col.brand-col {
        grid-column: span 1.2;
    }
}

.footer-title {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

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

.social-links a {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

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

.footer-section-title {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-info li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
}

.footer-contact-info li i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.footer-contact-info li strong {
    color: var(--white);
    display: block;
    margin-bottom: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1240px) {
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: #f1f5f9;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        font-size: 1.15rem;
        color: var(--primary-dark);
        cursor: pointer;
        flex-shrink: 0;
        margin-left: 6px;
        transition: all 0.2s ease;
    }

    .mobile-nav-toggle:hover {
        background: #e2e8f0;
    }

    .header-lang-selector {
        margin-left: auto;
        margin-right: 4px;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 68px);
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        padding: 24px 28px;
        transition: var(--transition);
        overflow-y: auto;
        display: block;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nav-menu>ul>li {
        width: 100%;
    }

    .nav-menu>ul>li>a {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--gray-light);
        border-radius: 0;
        font-size: 0.95rem;
        justify-content: space-between;
    }

    .dropdown-menu,
    .submenu-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 16px;
        padding-top: 8px;
        transform: none;
        display: none;
        border: none;
        min-width: 100%;
        /* toggled via JS */
    }

    .dropdown-item.active-mobile>.dropdown-menu,
    .dropdown-submenu-item.active-mobile>.submenu-dropdown {
        display: block;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .slide-subtitle {
        font-size: 1.1rem;
    }

    .history-card {
        flex-direction: column;
    }

    .history-image-col {
        min-height: 250px;
        min-width: 100%;
    }

    .history-content-col {
        padding: 40px 20px;
    }

    .report-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .report-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Pagination Styling */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 45px;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background-color: var(--white);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--gray-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    text-decoration: none;
}

.pagination .page-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(10, 93, 54, 0.25);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    border-color: var(--gray-light);
    background-color: #f8faf8;
}

/* ── Custom Site PDF Viewer Modal ──────────── */
.pdf-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pdf-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.pdf-modal-container {
    width: 100%;
    max-width: 1050px;
    height: 92vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pdfModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pdfModalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #0a5c36;
    color: #ffffff;
}
.pdf-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pdf-modal-title i {
    font-size: 20px;
    color: #4ade80;
    flex-shrink: 0;
}
.pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pdf-modal-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
}
.pdf-modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.pdf-modal-body {
    flex: 1;
    background: #404345;
}
.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}
@media (max-width: 640px) {
    .pdf-modal-overlay { padding: 10px; }
    .pdf-modal-container { height: 95vh; border-radius: 12px; }
    .pdf-modal-header { padding: 12px 16px; }
    .pdf-modal-title { font-size: 14px; }
}

/* ── Elektron Neşirler (Publications) Showcase Section ────────── */
.journal-showcase-section {
    padding: 65px 0 75px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.journal-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 35px;
    gap: 20px;
    flex-wrap: wrap;
}

.journal-header-title-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.journal-tagline {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color, #0a5d36);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.journal-section-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
}

.journal-header-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color, #0a5d36);
    border-radius: 3px;
    margin-top: 4px;
}

.journal-header-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 22px;
    background: #ffffff;
    border: 1.5px solid rgba(10, 93, 54, 0.25);
    border-radius: 30px;
    color: var(--primary-color, #0a5d36);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(10, 93, 54, 0.06);
    transition: all 0.25s ease;
}

.journal-header-all-btn:hover {
    background: var(--primary-color, #0a5d36);
    color: #ffffff;
    border-color: var(--primary-color, #0a5d36);
    box-shadow: 0 4px 16px rgba(10, 93, 54, 0.25);
    transform: translateY(-2px);
}

.journal-showcase-wrapper {
    position: relative;
    width: 100%;
}

.journal-showcase-viewport {
    width: 100%;
    overflow: hidden;
    padding: 10px 4px 20px;
}

.journal-showcase-track {
    display: flex;
    gap: 24px;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.journal-showcase-track.is-static {
    justify-content: flex-start;
}

.journal-card-item {
    flex: 0 0 calc((100% - (3 * 24px)) / 4);
    min-width: calc((100% - (3 * 24px)) / 4);
    max-width: calc((100% - (3 * 24px)) / 4);
    box-sizing: border-box;
}

/* Card Styling */
.journal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.journal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(10, 93, 54, 0.16);
    border-color: rgba(10, 93, 54, 0.45);
}

.journal-card-cover-box {
    position: relative;
    width: 100%;
    height: 310px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.journal-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease;
}

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

.journal-card-no-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
}

.journal-card-no-img i {
    font-size: 42px;
    color: var(--primary-color, #0a5d36);
    opacity: 0.7;
}


.journal-card-hover-mask {
    position: absolute;
    inset: 0;
    background: rgba(10, 93, 54, 0.35);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.journal-card:hover .journal-card-hover-mask {
    opacity: 1;
}

.journal-card-read-label {
    background: #ffffff;
    color: var(--primary-color, #0a5d36);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
    transition: transform 0.25s ease;
}

.journal-card:hover .journal-card-read-label {
    transform: translateY(0);
}

/* Card Details / Book title directly underneath cover */
.journal-card-details {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    text-align: center;
}

.journal-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    transition: color 0.2s ease;
}

.journal-card:hover .journal-card-title {
    color: var(--primary-color, #0a5d36);
}

/* Nav arrows */
.journal-nav-btn {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(10, 93, 54, 0.25);
    color: var(--primary-color, #0a5d36);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transition: all 0.25s ease;
}

.journal-nav-btn:hover {
    background: var(--primary-color, #0a5d36);
    color: #ffffff;
    border-color: var(--primary-color, #0a5d36);
    box-shadow: 0 6px 20px rgba(10, 93, 54, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.journal-nav-btn.prev {
    left: -22px;
}

.journal-nav-btn.next {
    right: -22px;
}

/* Bottom Footer */
.journal-showcase-footer {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.journal-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color, #0a5d36);
    text-decoration: none;
    padding: 10px 26px;
    border-radius: 30px;
    background: rgba(10, 93, 54, 0.08);
    transition: all 0.25s ease;
}

.journal-view-all-link:hover {
    background: var(--primary-color, #0a5d36);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(10, 93, 54, 0.25);
}

.journal-empty-container {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.journal-empty-container i {
    font-size: 38px;
    color: #cbd5e1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .journal-card-item {
        flex: 0 0 calc((100% - (2 * 20px)) / 3);
        min-width: calc((100% - (2 * 20px)) / 3);
        max-width: calc((100% - (2 * 20px)) / 3);
    }
    .journal-showcase-track {
        gap: 20px;
    }
    .journal-nav-btn.prev { left: -14px; }
    .journal-nav-btn.next { right: -14px; }
}

@media (max-width: 768px) {
    .journal-section-title {
        font-size: 22px;
    }
    .journal-card-item {
        flex: 0 0 calc((100% - 16px) / 2);
        min-width: calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }
    .journal-showcase-track {
        gap: 16px;
    }
    .journal-card-cover-box {
        height: 260px;
    }
    .journal-nav-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .journal-card-item {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* ── Elektron Neşirler Grid (Image 3) ────────────────────────────────── */
.journal-list-section {
    padding: 45px 0 80px;
    background-color: #f8fafc;
    min-height: 550px;
}

.journal-list-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.journal-list-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.journal-list-accent-bar {
    width: 3.5px;
    height: 24px;
    background-color: var(--primary-color, #0a5d36); /* Site primary green bar */
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

.journal-categories-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.journal-category-tab {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.journal-category-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.journal-category-tab.active {
    background: var(--primary-color, #0a5d36);
    color: #ffffff;
    border-color: var(--primary-color, #0a5d36);
    box-shadow: 0 2px 8px rgba(10, 93, 54, 0.25);
}

/* 4-column Grid */
.journal-issues-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .journal-issues-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .journal-issues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .journal-issues-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Issue Card */
.journal-issue-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease;
}

.journal-issue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.journal-issue-cover-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.journal-issue-cover-img {
    max-width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.journal-issue-cover-placeholder {
    width: 100%;
    height: 220px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 8px;
    font-size: 13px;
}

.journal-issue-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    line-height: 1.45;
    margin: 0 0 12px 0;
    width: 100%;
}

.journal-issue-card-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 6px;
}

.journal-issue-download-link {
    color: var(--primary-color, #0a5d36);
    font-size: 16px;
    background: transparent;
    border: none;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.journal-issue-download-link:hover {
    background-color: var(--primary-light, #eefdf5);
    color: var(--primary-dark, #02aa5c);
    transform: translateY(-1px);
}

/* ── Journal Detail Page ────────────────────────────── */
.journal-detail-header {
    background: linear-gradient(135deg, #0a5c36 0%, #064025 100%);
    color: #ffffff;
    padding: 60px 0 50px;
    position: relative;
}

.journal-detail-banner-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.journal-detail-avatar {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.journal-detail-avatar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.journal-detail-avatar i {
    font-size: 54px;
    color: var(--primary-color, #0a5c36);
}

.journal-detail-title-group h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}

.journal-detail-meta {
    display: flex;
    gap: 15px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.journal-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.journal-book-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.journal-book-card:hover {
    transform: translateY(-4px);
    border-color: #0a5c36;
    box-shadow: 0 14px 28px rgba(10, 92, 54, 0.12);
}

.journal-book-top {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.journal-book-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #0a5c36;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.journal-book-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.35;
}

.journal-book-year {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.journal-book-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.journal-book-actions .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .journals-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .journal-detail-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .journal-detail-meta {
        justify-content: center;
    }
}

/* ── Bilim.tm News Section (Baş sahypa aşagy) ────────────────────────── */
.bilim-news-section {
    background-color: #f8fafc;
    padding: 75px 0;
    border-top: 1px solid #edf2f7;
}

.bilim-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 15px;
}

.bilim-news-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.bilim-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px -8px rgba(10, 92, 54, 0.15);
    border-color: #cbd5e1;
}

.bilim-news-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.bilim-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.bilim-news-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.bilim-news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1e293b;
    margin-bottom: 10px;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bilim-news-card:hover .bilim-news-card-title {
    color: var(--primary-color, #0a5c36);
}

.bilim-news-card-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.bilim-news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    margin-top: auto;
}

.bilim-news-link {
    font-weight: 700;
    color: var(--primary-color, #0a5c36);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s ease;
}

.bilim-news-card:hover .bilim-news-link {
    gap: 10px;
}

.bilim-news-views {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

@media (max-width: 992px) {
    .bilim-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .bilim-news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .bilim-news-img-wrap {
        height: 190px;
    }
}

/* ────────────────────────────────────────────────
   WYSIWYG Mazmuny Inserted Document Download Cards
   ──────────────────────────────────────────────── */
.content-doc-download-wrapper {
    margin: 22px 0 !important;
}

.content-doc-download-card {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease !important;
    max-width: 100% !important;
}

.content-doc-download-card:hover {
    background: #ffffff !important;
    border-color: var(--primary-color, #0a5c36) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(10, 92, 54, 0.12) !important;
}

.content-doc-download-card .cdd-icon-box {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
}

.content-doc-download-card .cdd-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.content-doc-download-card .cdd-title {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
}

.content-doc-download-card .cdd-meta {
    font-size: 12.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.content-doc-download-card .cdd-badge {
    padding: 8px 16px !important;
    background: var(--primary-color, #0a5c36) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex-shrink: 0 !important;
    transition: background 0.2s ease !important;
}

.content-doc-download-card:hover .cdd-badge {
    background: var(--primary-dark, #064426) !important;
}

@media (max-width: 600px) {
    .content-doc-download-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .content-doc-download-card .cdd-badge {
        width: 100% !important;
        justify-content: center !important;
    }
}