/* Custom Styles for VNMU Homepage */

/* Import fallback font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* e-Ukraine local font definitions for production compatibility */
@font-face {
    font-family: 'e-Ukraine';
    src: url('fonts/e-Ukraine/e-Ukraine-Regular.woff2') format('woff2'),
         url('fonts/e-Ukraine/e-Ukraine-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'e-Ukraine';
    src: url('fonts/e-Ukraine/e-Ukraine-Medium.woff2') format('woff2'),
         src: url('fonts/e-Ukraine/e-Ukraine-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'e-Ukraine';
    src: url('fonts/e-Ukraine/e-Ukraine-Bold.woff2') format('woff2'),
         src: url('fonts/e-Ukraine/e-Ukraine-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'e-UkraineHead';
    src: url('fonts/e-UkraineHead/e-UkraineHead-Regular.woff2') format('woff2'),
         src: url('fonts/e-UkraineHead/e-UkraineHead-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'e-UkraineHead';
    src: url('fonts/e-UkraineHead/e-UkraineHead-Bold.woff2') format('woff2'),
         src: url('fonts/e-UkraineHead/e-UkraineHead-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --themeColor: #53161D;
    --mainColor: #4e90cc;
    --secondaryColor: #91AABA;
    --thirdColor: #666666;
    --forthColor: #999999;
    --bgColor: #FFFBF0;
    --whiteColor: #ffffff;
    --blackColor: #222222;
    --eablackColor: #222222;
    --fontSize: 14px;
    --transition: .5s;
    --box-shadow: 0 0 20px 3px rgba(0, 0, 0, 0.05);
    --fontFamily: 'e-Ukraine', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --bs-body-font-family: 'e-Ukraine', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --bs-body-font-size: 14px;
    --header-height: 120px;
    --brand-maroon: #53161d;
    --brand-maroon-light: #6a1d25;
    --brand-blue: #4894d0;
    --brand-blue-hover: #3b82bc;
    --brand-pink-bg: #f3e8e8;
    --brand-pink-hover: #eadada;
    --brand-blue-light: #e3effa;
    --text-dark: #212529;
    --text-muted: #555555;
    --font-heading: 'e-UkraineHead', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'e-Ukraine', 'Helvetica Neue', Arial, sans-serif;
}

/* Global Reset & Base */
body {
    background-color: var(--bgColor);
    color: var(--blackColor);
    font-family: var(--fontFamily);
    font-size: var(--fontSize);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'e-UkraineHead', var(--fontFamily);
    font-weight: 700;
    color: var(--themeColor);
}

/* Custom rounded buttons */
.btn-custom {
    font-family: var(--fontFamily);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.btn-custom-theme {
    background-color: var(--themeColor);
    color: var(--whiteColor);
}

.btn-custom-theme:hover {
    background-color: var(--whiteColor);
    color: var(--themeColor);
    border-color: var(--themeColor);
}

.btn-custom-main {
    background-color: var(--mainColor);
    color: var(--whiteColor);
}

.btn-custom-main:hover {
    background-color: var(--whiteColor);
    color: var(--mainColor);
    border-color: var(--mainColor);
}

.btn-custom-white {
    background-color: var(--whiteColor);
    color: var(--themeColor);
    border: 1px solid rgba(83, 22, 29, 0.2);
}

.btn-custom-white:hover {
    background-color: var(--themeColor);
    color: var(--whiteColor);
    border-color: var(--themeColor);
}

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

.btn-custom-outline-white:hover {
    background-color: var(--whiteColor);
    color: var(--themeColor);
}

/* Section Common Styles */
section {
    padding: 60px 0;
}

.section-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondaryColor);
    margin-bottom: 8px;
    display: inline-block;
}

.section-title-wrapper {
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
}

.section-desc {
    color: var(--thirdColor);
    max-width: 600px;
    font-size: 14px;
}

/* --- Header Section --- */
header {
    background-color: var(--whiteColor);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.top-bar {
    background-color: var(--whiteColor);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 6px 0;
    font-size: 12px;
}

.top-bar-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar-menu li a {
    color: var(--thirdColor);
    font-weight: 500;
}

.top-bar-menu li a:hover {
    color: var(--themeColor);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--thirdColor);
    transition: all var(--transition);
}

.lang-btn.active, .lang-btn:hover {
    background-color: rgba(83, 22, 29, 0.1);
    color: var(--themeColor);
}

.lang-btn img {
    border-radius: 2px;
    margin-right: 4px;
}

.main-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    width: 100%;
}

.main-navbar {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 350px;
}

.brand-logo {
    height: 48px;
    width: auto;
}

.brand-text {
    font-family: 'e-UkraineHead', var(--fontFamily);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    color: var(--themeColor);
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-links li {
    position: relative;
}

.nav-links li a.nav-link-item {
    font-weight: 500;
    font-size: 14px;
    color: var(--blackColor);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links li a.nav-link-item:hover,
.nav-links li.active a.nav-link-item {
    color: var(--themeColor);
}

.nav-links li a.nav-link-item i {
    font-size: 10px;
    transition: transform var(--transition);
}

.nav-links li:hover a.nav-link-item i {
    transform: rotate(180deg);
}

/* Simple Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--whiteColor);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 15px;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition) cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 100;
}

.nav-links li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    margin-bottom: 8px;
}

.nav-dropdown li:last-child {
    margin-bottom: 0;
}

.nav-dropdown li a {
    font-size: 13px;
    color: var(--thirdColor);
    padding: 6px 10px;
    border-radius: 4px;
    display: block;
}

.nav-dropdown li a:hover {
    background-color: rgba(78, 144, 204, 0.08);
    color: var(--mainColor);
    padding-left: 14px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-trigger {
    background: none;
    border: none;
    color: var(--themeColor);
    font-size: 18px;
    cursor: pointer;
    transition: color var(--transition);
}

.search-trigger:hover {
    color: var(--mainColor);
}

.burger-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    cursor: pointer;
}

.burger-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--themeColor);
    transition: all var(--transition);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 80px 0 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--whiteColor);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(135deg, rgba(83, 22, 29, 0.9) 0%, rgba(34, 34, 34, 0.8) 100%);*/
    background: linear-gradient(135deg, rgb(3 80 124 / 80%) 0%, rgba(34, 34, 34, 0.8) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondaryColor);
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--whiteColor);
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 45px;
}

.hero-search-box {
    background-color: var(--whiteColor);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 580px;
}

.hero-search-box input {
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--blackColor);
    flex-grow: 1;
    background: transparent;
}

.hero-search-box input::placeholder {
    color: var(--forthColor);
}

.hero-search-box button {
    background-color: var(--themeColor);
    color: var(--whiteColor);
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition);
}

.hero-search-box button:hover {
    background-color: var(--mainColor);
}

/* Video Card Right Side */
.video-promo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.video-promo-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: -1;
    transition: transform 1.5s ease;
}

.video-promo-card:hover .video-promo-card-bg {
    transform: scale(1.1);
}

.video-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--whiteColor);
    opacity: 0.7;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.video-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--whiteColor);
}

.video-desc {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 25px;
}

.video-link {
    color: var(--mainColor);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.video-link:hover {
    color: var(--whiteColor);
}

.video-link:hover i {
    transform: translateX(5px);
}

/* --- Popular Sections --- */
.popular-card {
    background-color: var(--whiteColor);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.popular-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.popular-card-num {
    font-size: 11px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(78, 144, 204, 0.1);
    color: var(--mainColor);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.popular-card-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--themeColor);
}

.popular-card-content p {
    font-size: 12px;
    color: var(--thirdColor);
    margin: 0;
}

.popular-card-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    color: var(--themeColor);
    font-size: 12px;
    opacity: 0.5;
    transition: transform var(--transition), opacity var(--transition);
}

.popular-card:hover .popular-card-arrow {
    transform: translateX(5px);
    opacity: 1;
    color: var(--mainColor);
}

/* --- Admissions Section --- */
.admissions-main-card {
    background-color: var(--themeColor);
    border-radius: 20px;
    padding: 40px;
    color: var(--whiteColor);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.admissions-main-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.admissions-main-card h3 {
    font-size: 26px;
    color: var(--whiteColor);
    margin-bottom: 15px;
    line-height: 1.3;
}

.admissions-main-card p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.6;
}

.admissions-main-card .admissions-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admissions-sub-card {
    background-color: var(--whiteColor);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition), box-shadow var(--transition);
}

.admissions-sub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.admissions-sub-card-num {
    font-size: 11px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(83, 22, 29, 0.08);
    color: var(--themeColor);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.admissions-sub-card-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.admissions-sub-card-content p {
    font-size: 12px;
    color: var(--thirdColor);
    margin: 0;
}

/* --- Stats Section --- */
.stats-card-main {
    background-color: var(--themeColor);
    color: var(--whiteColor);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-shadow: var(--box-shadow);
}

.stats-card-main .stat-num {
    font-size: 38px;
    font-weight: 700;
    font-family: 'e-UkraineHead', var(--fontFamily);
    margin-bottom: 8px;
    line-height: 1.1;
}

.stats-card-main .stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.stats-card-sub {
    background-color: var(--whiteColor);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.stats-card-sub:hover {
    transform: translateY(-3px);
}

.stats-card-sub .stat-num {
    font-size: 38px;
    font-weight: 700;
    font-family: 'e-UkraineHead', var(--fontFamily);
    color: var(--themeColor);
    margin-bottom: 8px;
    line-height: 1.1;
}

.stats-card-sub .stat-label {
    font-size: 13px;
    color: var(--thirdColor);
}

/* --- Faculties Section --- */
.faculty-card {
    background-color: var(--whiteColor);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--themeColor); /* Default brand border */
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Specific accent borders for cards based on layout mockup */
.faculty-card.accent-maroon {
    border-top-color: var(--themeColor);
}

.faculty-card.accent-blue {
    border-top-color: var(--mainColor);
}

.faculty-card.accent-red {
    border-top-color: #D32F2F;
}

.faculty-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.faculty-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: rgba(78, 144, 204, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mainColor);
    font-size: 16px;
    flex-shrink: 0;
}

.faculty-card.accent-maroon .faculty-card-icon {
    background-color: rgba(83, 22, 29, 0.08);
    color: var(--themeColor);
}

.faculty-card.accent-red .faculty-card-icon {
    background-color: rgba(211, 47, 47, 0.08);
    color: #D32F2F;
}

.faculty-card-header h3 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

.faculty-card-desc {
    font-size: 12px;
    color: var(--thirdColor);
    margin: 0;
}

/* --- News Section --- */
.news-tabs {
    display: inline-flex;
    background-color: rgba(83, 22, 29, 0.05);
    padding: 4px;
    border-radius: 50px;
    margin-bottom: 35px;
}

.news-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 22px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    color: var(--themeColor);
    transition: all var(--transition);
}

.news-tab-btn.active {
    background-color: var(--themeColor);
    color: var(--whiteColor);
}

.news-card {
    background-color: var(--whiteColor);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.news-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.news-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

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

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

.news-card-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--mainColor);
    margin-bottom: 12px;
}

.news-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--blackColor);
}

.news-card-desc {
    font-size: 12px;
    color: var(--thirdColor);
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--themeColor);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

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

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

/* --- Science Section --- */
.science-card {
    background-color: var(--whiteColor);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.science-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.science-card-num {
    font-size: 11px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(78, 144, 204, 0.08);
    color: var(--mainColor);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.science-card-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.science-card-content p {
    font-size: 12px;
    color: var(--thirdColor);
    margin: 0;
}

/* --- Global Network --- */
.global-card {
    background-color: var(--whiteColor);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.global-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.global-card.accent-maroon {
    background-color: var(--themeColor);
    color: var(--whiteColor);
}

.global-card.accent-maroon h3 {
    color: var(--whiteColor);
}

.global-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.global-card p {
    font-size: 13px;
    color: var(--thirdColor);
    margin-bottom: 25px;
    line-height: 1.6;
}

.global-card.accent-maroon p {
    color: rgba(255, 255, 255, 0.85);
}

.global-card-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--themeColor);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.global-card.accent-maroon .global-card-link {
    color: var(--whiteColor);
}

.global-card-link i {
    transition: transform var(--transition);
}

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

.global-card:hover .global-card-link {
    color: var(--mainColor);
}

.global-card.accent-maroon:hover .global-card-link {
    color: var(--secondaryColor);
}

/* --- Campus Section --- */
.campus-main-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 380px;
    box-shadow: var(--box-shadow);
}

.campus-main-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.campus-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(34, 34, 34, 0.95) 0%, rgba(34, 34, 34, 0.2) 70%);
    z-index: 2;
}

.campus-main-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 3;
    color: var(--whiteColor);
}

.campus-main-card-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--whiteColor);
    margin: 0;
    line-height: 1.3;
}

.campus-sub-card {
    background-color: var(--whiteColor);
    border-radius: 16px;
    padding: 24px 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.campus-sub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
}

.campus-sub-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.campus-sub-card p {
    font-size: 12px;
    color: var(--thirdColor);
    margin: 0;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 10px;
    background-color: #f1f6fa; /* Світло-блакитний відтінок */
    border: 2px solid transparent;
    border-radius: 12px;
    min-height: 140px;
    text-align: center;
    transition: all 0.25s ease-in-out;
}

.category-card .card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 12px;
}

.category-card .card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #2b4760;
}

/* --- Ховер та Активний стан (Бордовий обідок як на макеті) --- */
.category-card:hover {
    background-color: #e5f0f8;
    transform: translateY(-2px);
}

.category-card.active {
    background-color: #f1f6fa;
    border-color: #50161a; /* Фірмовий темно-бордовий колір */
}

/* --- Useful Links --- */
.link-badge-card {
    background-color: var(--whiteColor);
    border-radius: 12px;
    padding: 18px 24px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.link-badge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.link-badge-icon {
    font-size: 14px;
    color: var(--mainColor);
}

.link-badge-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--blackColor);
}

.link-badge-card:hover .link-badge-text {
    color: var(--themeColor);
}

/* --- Footer --- */
footer {
    background-color: var(--themeColor);
    color: var(--whiteColor);
    padding: 80px 0 40px;
    font-size: 13px;
}

.footer-brand-col {
    max-width: 380px;
}

.footer-logo {
    height: 52px;
    width: auto;
    margin-bottom: 25px;
}

.footer-brand-title {
    font-family: 'e-UkraineHead', var(--fontFamily);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 20px;
    color: #fff;
}

.footer-info {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-nav-col h4 {
    color: var(--whiteColor);
    font-size: 15px;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links li a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}

.footer-links li a:hover {
    color: var(--secondaryColor);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 50px 0 30px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

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

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-social-links {
    padding-top: 5px;
}

.social-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--whiteColor) !important;
    font-size: 16px;
    transition: all var(--transition) ease;
    text-decoration: none;
}

.social-link-item:hover {
    background-color: var(--whiteColor);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-link-item[data-social="facebook"]:hover { color: #1877F2 !important; }
.social-link-item[data-social="tiktok"]:hover { color: #010101 !important; }
.social-link-item[data-social="instagram"]:hover { color: #E1306C !important; }
.social-link-item[data-social="telegram"]:hover { color: #0088cc !important; }
.social-link-item[data-social="linkedin"]:hover { color: #0077B5 !important; }

.submenu-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.submenu-header {
    background-color: #50161a; /* Глибокий бордовий */
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.submenu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Кнопки підкатегорій */
.submenu-btn {
    display: block;
    background-color: #fdfaf4; /* Світло-кремовий фон */
    color: #50161a;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    padding: 14px 20px;
    border: 1px solid #dbe2e8;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.submenu-btn:hover {
    background-color: #ffffff;
    color: #802229;
    border-color: #0084c7; /* Синій акцент при ховері */
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Особлива плашка без шапки (наприклад, Гурток) */
.single-header-column .submenu-btn {
    border-radius: 20px 6px 6px 20px; /* Асиметричні кути з макета */
    border-left: 4px solid #50161a;
}

li.breadcrumb-item.active::after {
    background: none!important;
}

/* Адаптивність для мобільних екранів */
@media (max-width: 768px) {
    .footer-social-links {
        margin-top: 10px;
    }

    .main-category-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 картки в ряд на телефонах */
    }

    .single-header-column .submenu-btn {
        border-radius: 20px;
        border-left: 1px solid #dbe2e8;
    }
    section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 26px;
    }
    .hero-section {
        padding: 60px 0 80px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    .hero-buttons {
        gap: 10px;
        margin-bottom: 30px;
    }
    .hero-search-box {
        padding: 4px 4px 4px 15px;
    }
    .hero-search-box button {
        padding: 8px 18px;
    }
    .video-promo-card {
        margin-top: 30px;
    }
    .stats-card-main, .stats-card-sub {
        padding: 20px;
        text-align: center;
    }
    .stats-card-main .stat-num, .stats-card-sub .stat-num {
        font-size: 32px;
    }
    .admissions-main-card {
        padding: 30px;
        margin-bottom: 30px;
    }
    .footer-brand-col {
        margin-bottom: 40px;
    }
    .footer-nav-col {
        margin-bottom: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 1200px) {
    .nav-links {
        gap: 15px;
    }
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    :root {
        --header-height: 70px;
    }
    .top-bar {
        display: none; /* Hide top bar on mobile/tablet for simplicity */
    }
    .burger-menu-btn {
        display: flex; /* Show hamburger button */
    }
    .brand-wrapper {
        max-width: 280px;
    }

    .nav-links-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--whiteColor);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 80px 30px 40px;
        transition: right var(--transition) cubic-bezier(0.19, 1, 0.22, 1);
        overflow-y: auto;
    }

    .nav-links-wrapper.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links li a.nav-link-item {
        font-size: 16px;
        justify-content: space-between;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 12px 0;
    }

    .nav-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 10px 0 0 15px;
        opacity: 1;
        visibility: visible;
        display: none; /* Toggled via JS */
        transform: none;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 4px;
    }

    .nav-links li.dropdown-open .nav-dropdown {
        display: block;
    }

    .nav-links li.dropdown-open a.nav-link-item i {
        transform: rotate(180deg);
    }

    .nav-actions {
        /*margin-top: 30px;*/
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .nav-actions .btn-custom {
        text-align: center;
        width: 100%;
    }

    /* Overlay for menu */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

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

    .hero-title {
        font-size: 32px;
    }
}

/* Page Top Header Banner */
.page-top-banner {
    background-color: var(--whiteColor);
    border-bottom: 1px solid rgba(83, 22, 29, 0.08);
    padding: 30px 0;
    margin-bottom: 40px;
}

.page-top-holder {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #ddd8d8;
    gap: 8px;
    align-items: center;
}

.breadcrumb-list li a {
    color: #ddd8d8;;
}

.breadcrumb-list li a:hover {
    color: var(--themeColor);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--forthColor);
}

.breadcrumb-list li.active {
    color: var(--themeColor);
    font-weight: 500;
}

.page-main-title {
    font-size: 36px;
    color: var(--themeColor);
    margin: 0;
    font-weight: 700;
}

/* Search Box Block */
.departments-search-container {
    background-color: var(--whiteColor);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.search-field-wrapper {
    position: relative;
    width: 100%;
}

.search-field-wrapper input {
    width: 100%;
    border: 1.5px solid rgba(83, 22, 29, 0.15);
    border-radius: 50px;
    padding: 12px 24px 12px 50px;
    font-size: 14px;
    color: var(--blackColor);
    outline: none;
    transition: all var(--transition);
    background-color: var(--bgColor);
}

.search-field-wrapper input:focus {
    border-color: var(--themeColor);
    background-color: var(--whiteColor);
    box-shadow: 0 0 10px rgba(83, 22, 29, 0.05);
}

.search-field-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--themeColor);
    font-size: 16px;
}

.search-results-count {
    font-size: 12px;
    color: var(--thirdColor);
    margin-top: 12px;
    margin-left: 10px;
    font-weight: 500;
}

/* Department Listing Layout */
.departments-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

/* Department Card - KNMU Style */
.department-card-row {
    background-color: var(--whiteColor);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    transition: transform var(--transition), box-shadow var(--transition);
}

.department-card-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(83, 22, 29, 0.08);
}

.department-card-image {
    width: 325px;
    min-width: 325px;
    height: 260px;
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.department-card-image img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 1.2s ease;
}

.department-card-row:hover .department-card-image img {
    transform: scale(1.06);
}

.department-card-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.department-card-title {
    font-size: 20px;
    color: var(--themeColor);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.department-card-descr {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.department-head-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.department-head-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondaryColor);
    font-weight: 700;
}

.department-head-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--blackColor);
}

/* Contacts Styling */
.department-contacts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 5px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 15px;
}

.department-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.department-contact-label {
    font-size: 11px;
    color: var(--thirdColor);
    font-weight: 600;
}

.department-contact-link {
    font-size: 13px;
    color: var(--blackColor);
    font-weight: 700;
    transition: color var(--transition);
}

.department-contact-link:hover {
    color: var(--mainColor);
}

/* Button Detail */
.department-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 15px;
}

.btn-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(83, 22, 29, 0.06);
    color: var(--themeColor);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.btn-detail-link i {
    transition: transform var(--transition);
}

.btn-detail-link:hover {
    background-color: var(--themeColor);
    color: var(--whiteColor);
}

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

/* No Results placeholder */
.no-results-placeholder {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--whiteColor);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.no-results-placeholder i {
    font-size: 48px;
    color: var(--secondaryColor);
    margin-bottom: 20px;
}

.no-results-placeholder h3 {
    font-size: 18px;
    color: var(--themeColor);
    margin-bottom: 8px;
}

.no-results-placeholder p {
    font-size: 13px;
    color: var(--thirdColor);
    margin: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .department-card-row {
        flex-direction: column;
    }

    .department-card-image {
        width: 100%;
        min-width: 100%;
        height: 160px;
        background-color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .department-card-image img {
        max-width: 90% !important;
        max-height: 90% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .department-card-info {
        padding: 24px;
    }

    .department-card-title {
        font-size: 18px;
    }

    .department-contacts-wrapper {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .page-main-title {
        font-size: 28px;
    }

    .department-card-info {
        padding: 20px;
    }

    .department-contacts-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .department-card-action {
        justify-content: stretch;
    }

    .btn-detail-link {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Elementor Widget Submenu Page Block Layouts
   ========================================================================== */
.elementor-widget-container .main-submenu {
    padding: 70px 0 !important;
    background-color: var(--bgColor, #FFFBF0) !important;
}

.elementor-widget-container .main-submenu .category-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    justify-content: center !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.elementor-widget-container .main-submenu .category-grid a {
    text-decoration: none !important;
    display: block !important;
}

.elementor-widget-container .main-submenu .category-block {
    background: var(--whiteColor, #ffffff) !important;
    border: 2px solid #e2e8f0 !important;
    padding: 40px 24px !important;
    border-radius: 16px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.elementor-widget-container .main-submenu .category-block:hover {
    border-color: var(--themeColor, #53161D) !important;
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 25px -5px rgba(83, 22, 29, 0.1), 0 10px 10px -5px rgba(83, 22, 29, 0.04) !important;
}

.elementor-widget-container .main-submenu .icon-box.blue {
    width: 80px !important;
    height: 80px !important;
    background-color: rgba(83, 22, 29, 0.04) !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 20px !important;
    transition: background-color 0.3s ease !important;
}

.elementor-widget-container .main-submenu .category-block:hover .icon-box.blue {
    background-color: rgba(83, 22, 29, 0.08) !important;
}

.elementor-widget-container .main-submenu .icon-box.blue img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.elementor-widget-container .main-submenu .category-block:hover .icon-box.blue img {
    transform: scale(1.1);
}

.elementor-widget-container .main-submenu .category-label {
    font-family: 'e-UkraineHead', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--themeColor, #53161D) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    transition: color 0.3s ease !important;
}

@media (max-width: 991px) {
    .elementor-widget-container .main-submenu {
        padding: 40px 16px !important;
    }

    .elementor-widget-container .main-submenu .category-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        max-width: 100% !important;
    }

    .elementor-widget-container .main-submenu .category-block {
        padding: 16px 20px !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 16px !important;
        justify-content: flex-start !important;
        border-radius: 12px !important;
        border-width: 1px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    }

    .elementor-widget-container .main-submenu .category-block:hover {
        transform: translateY(-2px) !important;
    }

    .elementor-widget-container .main-submenu .icon-box.blue {
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
        border-radius: 10px !important;
    }

    .elementor-widget-container .main-submenu .icon-box.blue img {
        width: 24px !important;
        height: 24px !important;
    }

    .elementor-widget-container .main-submenu .category-label {
        font-size: 14px !important;
        text-align: left !important;
    }
}

/* ==========================================================================
   Department Page Header Alignment (.department-header)
   ========================================================================== */
.department-header {
    display: flex !important;
    flex-direction: row !important; /* Force side-by-side logo and title */
    flex-wrap: nowrap !important; /* Prevent column wrapping */
    align-items: center !important; /* Align vertically in center */
    justify-content: center !important; /* Center the group horizontally */
    gap: 24px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

.department-header > div:first-child {
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
}

.department-header > div:last-child {
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
}

.department-logo {
    max-width: 130px !important; /* A bit bigger logo */
    height: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
    transition: transform 0.3s ease !important;
    background: none !important; /* No background */
    border: none !important; /* No border */
    padding: 0 !important; /* No padding */
    box-shadow: none !important; /* No shadow */
}

.department-logo:hover {
    transform: scale(1.05) !important;
}

.department-header h2 {
    font-family: 'e-UkraineHead', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--themeColor, #53161D) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

@media (max-width: 768px) {
    .department-header {
        gap: 16px !important;
        margin-bottom: 25px !important;
    }

    .department-logo {
        max-width: 90px !important; /* Slightly smaller logo on mobile */
    }

    .department-header h2 {
        font-size: 22px !important; /* Smaller responsive heading size */
    }
}

.vnmu-content-header {
	background-color: transparent
}

.vnmu-content-header .page-main-title{
	color: white
}

.vnmu-content {
	margin-top: 25px;
}

/* Base styles for demo container */
.dept-hero-section {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 60px 0;
    color: #ffffff;
    font-family: var(--font-body);
    box-sizing: border-box;
    overflow: hidden;
}

/* Deep brand-maroon overlay */
.dept-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 80, 124, 0.88) 0%, rgba(3, 80, 124, 0.75) 100%) !important;
    z-index: 1;
}

/* Content Container */
.dept-hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
    z-index: 2;
    box-sizing: border-box;
}

/* Breadcrumbs */
.dept-hero-breadcrumbs {
    margin-bottom: 35px;
}

.dept-hero-breadcrumbs .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.dept-hero-breadcrumbs .breadcrumb-item {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
}

.dept-hero-breadcrumbs .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.dept-hero-breadcrumbs .breadcrumb-item a:hover {
    color: #ffffff;
}

.dept-hero-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 8px;
    padding-left: 8px;
    color: rgba(255, 255, 255, 0.5);
    content: "/";
}

.dept-hero-breadcrumbs .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
}

/* Main Row Layout */
.dept-hero-row {
    display: grid;
    grid-template-columns: 140px 1fr 340px;
    gap: 40px;
    align-items: center;
}

/* Left Column: Rounded Logo Card */
.dept-hero-logo-col {
    display: flex;
    justify-content: flex-start;
}

.dept-logo-card {
    width: 140px;
    height: 140px;
    background-color: #ffffff;
    border-radius: 28px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.dept-logo-card:hover {
    transform: translateY(-5px);
}

.dept-logo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.dept-logo-icon {
    width: 68px;
    height: 68px;
    background-color: var(--brand-blue-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--brand-maroon);
    margin-bottom: 10px;
    text-transform: lowercase;
    font-family: var(--font-heading);
}

.dept-logo-text {
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-maroon);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Middle Column: Typography and Slogan */
.dept-hero-main-col {
    display: flex;
    flex-direction: column;
}

.dept-hero-tag {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.dept-hero-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.dept-hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 28px 0;
}

/* Dynamic Social Media Buttons */
.dept-hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-hero:hover {
    transform: translateY(-2px);
}

.btn-fb {
    background-color: #ffffff;
    color: var(--brand-maroon);
}

.btn-fb:hover {
    background-color: #f7f7f7;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-ig {
    background-color: var(--brand-blue);
    color: #ffffff;
}

.btn-ig:hover {
    background-color: var(--brand-blue-hover);
    box-shadow: 0 6px 20px rgba(72, 148, 208, 0.3);
}

.btn-tg {
    background-color: var(--brand-pink-bg);
    color: var(--brand-maroon);
}

.btn-tg:hover {
    background-color: var(--brand-pink-hover);
    box-shadow: 0 6px 20px rgba(243, 232, 232, 0.25);
}

/* Right Column: Contacts Card */
.dept-hero-contacts-col {
    display: flex;
    justify-content: flex-end;
}

.dept-contacts-card {
    width: 340px;
    background-color: #ffffff;
    border-radius: 32px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease;
}

.dept-contacts-card:hover {
    transform: translateY(-5px);
}

.dept-contacts-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.dept-contact-address {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.dept-contact-phone {
    font-size: 14px;
    color: var(--text-dark);
}

.dept-contact-phone strong {
    font-weight: 700;
}

.dept-contact-email {
    margin-top: 4px;
}

.dept-contact-email a {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dept-contact-email a:hover {
    color: var(--brand-blue-hover);
    text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .dept-hero-row {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .dept-hero-logo-col {
        justify-content: center;
    }

    .dept-hero-main-col {
        align-items: center;
    }

    .dept-hero-buttons {
        justify-content: center;
    }

    .dept-hero-contacts-col {
        justify-content: center;
        width: 100%;
    }

    .dept-contacts-card {
        width: 100%;
        max-width: 450px;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .dept-hero-section {
        padding: 40px 0;
    }

    .dept-hero-breadcrumbs {
        margin-bottom: 25px;
    }

    .dept-hero-breadcrumbs .breadcrumb {
        justify-content: center;
    }

    .dept-hero-title {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .dept-hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .dept-logo-card {
        width: 130px;
        height: 130px;
        border-radius: 24px;
        padding: 12px;
    }

    .dept-logo-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 8px;
    }

    .dept-logo-text {
        font-size: 8.5px;
    }
}
