:root {
    --primary: #293883;
    --primary-dark: #1e2a66;
    --primary-light: #3a4d9e;
    --secondary-color: #fdea04;
    --secondary-color-dark: #d4c803;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-light: #6c757d;
    --bg-light: #f7f8fc;
    --bg-lighter: #f1f3f8;
    --white: #ffffff;
    --border: #e2e5f0;
    --shadow-sm: 0 2px 8px rgba(41, 56, 131, 0.08);
    --shadow-md: 0 4px 20px rgba(41, 56, 131, 0.12);
    --shadow-lg: 0 8px 40px rgba(41, 56, 131, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Google Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.4;
    overflow-x: hidden;
    font-size: 15px;
    padding-right: 0 !important;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
}

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

img {
    max-width: 100%;
}

.top-bar {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1060;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

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

.top-bar .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 6px;
    font-size: 12px;
}

.top-bar .social-icons a:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

.lang-switcher .dropdown-toggle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    background: none;
    border: none;
    padding: 2px 8px;
}

.lang-switcher .dropdown-toggle::after {
    margin-left: 4px;
}

.lang-switcher .dropdown-menu {
    min-width: auto;
    font-size: 13px;
    z-index: 1061;
}

.lang-switcher .dropdown-menu a {
    color: var(--primary-dark);
    padding: 6px 12px;
}

.lang-switcher .dropdown-menu a:hover,
.lang-switcher .dropdown-menu a.active {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

.quick-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    padding: 0 8px;
    position: relative;
}

.quick-links a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -2px;
    color: rgba(255, 255, 255, 0.3);
}

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

.navbar {
    background: var(--primary);
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.navbar-brand .brand-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.navbar-brand .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand .brand-text .brand-name {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.navbar-brand .brand-text .brand-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.main-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    font-weight: 500;
    padding: 20px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.main-navbar .navbar-nav {
    flex-direction: row;
    align-items: center;
}

.main-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link[aria-expanded="true"] {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.main-navbar .navbar-nav .nav-link:hover::after,
.main-navbar .navbar-nav .nav-link.active::after,
.main-navbar .navbar-nav .nav-link[aria-expanded="true"]::after {
    transform: scaleX(1);
}

.main-navbar .navbar-nav .nav-link.active,
.main-navbar .navbar-nav .nav-link[aria-expanded="true"] {
    color: var(--white);
}

.main-navbar .nav-link.dropdown-toggle::after {
    border: none !important;
}

.main-navbar .dropend .dropdown-toggle::after {
    display: inline-block;
    margin-left: auto;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid currentColor;
    border-right: none;
    content: '';
}

.nav-search,
.nav-profile {
    position: relative;
}

.nav-profile {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
}

.nav-search .search-toggle,
.nav-profile .profile-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-search .search-toggle:hover,
.nav-profile .profile-toggle:hover,
.nav-profile .profile-toggle[aria-expanded="true"] {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

.nav-profile .profile-toggle::after {
    display: none;
}

.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 42, 102, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay .search-inner {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.search-overlay input {
    width: 100%;
    padding: 18px 24px;
    font-size: 20px;
    border: none;
    border-bottom: 3px solid var(--secondary-color);
    background: transparent;
    color: var(--white);
    outline: none;
}

.search-overlay input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-overlay .search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
    position: relative;
    height: 85vh;
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 85vh;
    min-height: 550px;
    max-height: 800px;
}

.hero-slider .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 42, 102, 0.85) 0%, rgba(41, 56, 131, 0.6) 50%, rgba(41, 56, 131, 0.3) 100%);
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 780;
    margin-bottom: 16px;
    max-width: 740px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(15px, 2vw, 18px);
    max-width: 620px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-buttons .btn {
    letter-spacing: 0.8px;
    transition: var(--transition);
}

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

.btn-secondary-color:hover {
    background: var(--secondary-color-dark);
    border-color: var(--secondary-color-dark);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 234, 4, 0.4);
}

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

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

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    margin: 0 5px;
    transition: var(--transition);
}

.carousel-indicators .active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(41, 56, 131, 0.6);
    border-radius: 50%;
    margin: 0 20px;
    opacity: 0;
    z-index: 20;
    transition: var(--transition);
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-dark);
}

.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.section-title .section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 40px;
}

.section-title .section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--secondary-color);
}

.section-title h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
}

.section-title.text-center .section-label {
    padding-left: 0;
}

.section-title.text-center .section-label::before {
    display: none;
}

.section-title.text-center p {
    margin-left: auto;
    margin-right: auto;
}

.bg-light-custom {
    background: var(--bg-light);
}

.specialty-card {
    transition: var(--transition);
}

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

.specialty-card .card-img-wrapper {
    position: relative;
    height: 330px;
    overflow: hidden;
}

.specialty-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.specialty-card .card-body h4 {
    color: var(--primary-dark);
}

.specialty-card .card-body p {
    color: var(--text-medium);
    line-height: 1.4;
}

.specialty-card .card-body .card-meta {
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

.specialty-card .card-body .card-meta i {
    color: var(--primary);
    font-size: 13px;
}

.specialty-card .card-body .card-link {
    color: var(--primary);
    letter-spacing: 0.5px;
}

.specialty-card .card-body .card-link:hover {
    color: var(--primary-light);
    gap: 10px;
}

.education-feature {
    transition: var(--transition);
}

.education-feature:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.education-feature .feature-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-size: 22px;
    flex-shrink: 0;
}

.education-feature h5 {
    color: var(--primary-dark);
}

.education-feature p {
    color: var(--text-medium);
}

.education-image {
    min-height: 400px;
}

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

.education-image .edu-overlay-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--primary-dark);
}

.admission-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.admission-section .section-title .section-label {
    color: var(--secondary-color);
}

.admission-section .section-title h2 {
    color: var(--white);
}

.admission-section .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.admission-step {
    position: relative;
    z-index: 2;
}

.admission-step .step-number {
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    color: var(--primary-dark);
    font-size: 20px;
}

.admission-step h5 {
    color: var(--white);
}

.admission-step p {
    color: rgba(255, 255, 255, 0.7);
}

.admission-info-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.admission-info-box h4 {
    color: var(--white);
}

.admission-info-box ul li {
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admission-info-box ul li:last-child {
    border-bottom: none;
}

.admission-info-box ul li i {
    color: var(--secondary-color);
    font-size: 12px;
}

.btn-secondary-color-lg {
    background: var(--secondary-color);
    color: var(--primary-dark);
    border: none;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-secondary-color-lg:hover {
    background: var(--secondary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(253, 234, 4, 0.3);
    color: var(--primary-dark);
}

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

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

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

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

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

.news-card .news-img .news-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem
}

.news-card .news-body h5 {
    color: var(--primary-dark);
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .news-body p {
    color: var(--text-medium);
    line-height: 1.2;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .news-body .read-more {
    color: var(--primary);
}

.news-card .news-body .read-more:hover {
    gap: 10px;
    color: var(--primary-light);
}

.events-list .event-item {
    transition: var(--transition);
}

.events-list .event-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.events-list .event-date-box {
    width: 60px;
}

.events-list .day {
    font-size: 28px;
    color: var(--primary);
    line-height: 1;
}

.events-list .month {
    color: var(--text-light);
    letter-spacing: 1px;
}

.events-list .event-info h6 {
    color: var(--primary-dark);
}

.events-list .event-info p {
    color: var(--text-light);
}


.slick-slide {
    margin: 0px 20px;
}

.slick-slide img {
    width: 100%;
}

.slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
            user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
        touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slick-list:focus {
    outline: none;
}

.slick-list.dragging {
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
    -webkit-transform: translate3d(0, 0, 0);
       -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
         -o-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: block;
}

.slick-track:before,
.slick-track:after {
    display: table;
    content: '';
}

.slick-track:after {
    clear: both;
}

.slick-loading .slick-track {
    visibility: hidden;
}

.slick-slide {
    display: none;
    float: left;
    height: 130px;
    min-height: 1px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.slick-slide div {
    height: 100%;
}

[dir='rtl'] .slick-slide {
    float: right;
}

.slick-slide img {
    display: block;
    height: 100%;
    object-fit: contain;
}

.slick-slide.slick-loading img {
    display: none;
}

.slick-slide.dragging img {
    pointer-events: none;
}

.slick-initialized .slick-slide {
    display: block;
}

.slick-loading .slick-slide {
    visibility: hidden;
}

.partners-carousel .slide img {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    opacity: 0.75;
}

.partners-carousel .slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.slick-vertical .slick-slide {
    display: block;
    height: auto;
    border: 1px solid transparent;
}

.slick-arrow.slick-hidden {
    display: none;
}

.cta-section {
    background: var(--secondary-color);
}

.cta-section h3 {
    color: var(--primary-dark);
    font-size: 28px;
}

.cta-section p {
    color: var(--primary);
    font-size: 16px;
}

.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    letter-spacing: 0.8px;
    transition: var(--transition);
}

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

.footer {
    background: #0f1638;
    color: rgba(255, 255, 255, 0.75);
}

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

.footer h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

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

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-brand .footer-logo .logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand .footer-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-brand .footer-logo span {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.footer-contact-item i {
    color: var(--secondary-color);
    margin-top: 4px;
    width: 16px;
    text-align: center;
}

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

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul li a::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0;
    transition: var(--transition);
}

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

.footer-links ul li a:hover::before {
    opacity: 1;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    margin-right: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

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

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

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.scroll-top.show {
    display: flex;
}

.partners-section {
    background: var(--white);
}

@media (max-width: 991.98px) {
    .hero-section,
    .hero-slider .carousel-item {
        height: 65vh;
        min-height: 450px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section,
    .hero-slider .carousel-item {
        height: 55vh;
        min-height: 380px;
    }

    .top-bar .d-flex {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .section-padding {
        padding: 50px 0;
    }

    .specialty-card .card-img-wrapper {
        height: 230px;
    }

    .admission-info-box {
        margin-top: 30px;
    }

    .education-image {
        min-height: initial !important;
        max-height: 300px;
    }

    .events-list .day {
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 24px;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* https://codepen.io/typo3-freelancer/pen/poEvyGj */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.main-navbar .dropdown-menu.show {
    -webkit-animation: fadeIn 0.3s alternate;
    /* Safari 4.0 - 8.0 */
    animation: fadeIn 0.3s alternate;
}

.main-navbar .nav-item.dropdown.dropdown-mega {
    position: static;
}

.main-navbar .nav-item.dropdown.dropdown-mega .dropdown-menu {
    width: 90%;
    top: auto;
    left: 5%;
}

.main-navbar .dropdown-menu {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    --bs-dropdown-bg: var(--primary);
    border: 0;
    padding-top: 0px;
}

.main-navbar .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
}

.main-navbar .nav-item.dropdown .dropdown-menu .dropdown-item {
    padding: 9px 16px;
}

.main-navbar .nav-item.dropdown .dropdown-menu .dropdown-item:focus,
.main-navbar .nav-profile .dropdown-menu .dropdown-item:focus {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.85);
}

.main-navbar .nav-item.dropdown .dropdown-menu .dropdown-item:hover,
.main-navbar .nav-item.dropdown .dropdown-menu .dropdown-item.active,
.main-navbar .nav-item.dropdown .dropdown-menu a[aria-expanded="true"],
.main-navbar .nav-profile .dropdown-menu .dropdown-item:hover,
.main-navbar .nav-profile .dropdown-menu .dropdown-item.active {
    background-color: var(--secondary-color) !important;
    color: var(--primary-dark) !important;
}
.member-image {
    aspect-ratio: 5/6;
    object-fit: cover;
}

.client-logo-sm {
    height: 42px;
    width: 42px;
}

.client-brand-text {
    font-size: 0.95rem;
}

.client-logo-lg {
    height: 70px;
    width: 70px;
}

.client-footer-text {
    font-size: 0.95rem;
}

.client-footer-heading {
    font-size: 1rem;
}

.bg-blue {
    background-color: #22566c !important;
}

.nav-menu {
    z-index: 1030;
}

.hover-nav:hover,
.hover-nav.active {
    color: #982e30 !important;
}

.hamburger {
    background: transparent;
    border: 0;
    height: 40px;
    padding: 0;
    width: 40px;
}

.hamburger-box {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 28px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    background-color: #212529;
    border-radius: 999px;
    height: 2px;
    left: 0;
    position: absolute;
    transition: transform 0.2s ease, opacity 0.2s ease;
    width: 28px;
}

.hamburger-inner {
    top: 11px;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
    opacity: 0;
}

.hamburger.is-active .hamburger-inner::after {
    top: 0;
    transform: rotate(-90deg);
}

.mobile-nav {
    background: #fff;
    box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.12);
    display: none;
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 58px;
}

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

.stop-scrolling {
    overflow: hidden;
}

.conference-hero {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 48%, rgba(255, 255, 255, 0.62) 100%),
        url("../img/ue2.webp") center 0 / cover no-repeat,
        #eef4f8;
    min-height: 380px;
}

.conference-hero .container {
    min-height: 380px;
}

.conference-section-mark {
    background: #982e30;
    border-radius: 999px;
    display: inline-block;
    height: 34px;
    width: 6px;
}

.conference-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.conference-card:hover {
    box-shadow: 0 1rem 2.5rem rgba(21, 40, 61, 0.14) !important;
    transform: translateY(-5px);
}

.conference-card .bi {
    color: var(--conference-color);
}

.conference-card .btn-conference-outline .bi {
    color: currentColor;
}

.btn-conference-outline {
    --bs-btn-color: var(--conference-color);
    --bs-btn-border-color: var(--conference-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--conference-color);
    --bs-btn-hover-border-color: var(--conference-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--conference-color);
    --bs-btn-active-border-color: var(--conference-color);
}

@media (max-width: 768px) {
    .conference-hero {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
            url("../img/ue2.webp") center 0 / cover no-repeat,
            #eef4f8;
        min-height: 380px;
    }

    .conference-hero .container {
        align-items: flex-start;
        min-height: 380px;
    }
}

.hero-wrapper {
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('https://edfor.varna.bg/images/home.jpg?v=3'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center; 
    justify-content: center; 
    min-height: 450px; 
    padding: 2rem 0;
}

.hero-sub-text {
    color: #ffffff;
    opacity: 0.85;                
    font-weight: 400;   
    font-size: 1rem; 
}

.hero-content-container {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.hero-timer-spacer {
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .hero-wrapper {
        background-color: rgba(0, 0, 0, 0.45); 
        min-height: 750px; 
        padding: 0; 
    }
    .hero-sub-text {
        font-size: 1.25rem; 
    }
    .hero-content-container {
        max-width: 100%;
    }
    .hero-timer-spacer {
        margin-top: 5rem;
    }
}

.hero-wrapper {
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('https://edfor.varna.bg/images/home.jpg?v=3'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center; 
    justify-content: center; 
    min-height: 450px; 
    padding: 2rem 0;
}

.hero-sub-text {
    color: #ffffff;
    opacity: 0.85;                
    font-weight: 400;   
    font-size: 1rem; 
}

.hero-content-container {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.hero-timer-spacer {
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .hero-wrapper {
        background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('https://edfor.varna.bg/images/home.jpg?v=3'); 
        min-height: 750px; 
        padding: 0; 
    }
    .hero-sub-text {
        font-size: 1.25rem; 
    }
    .hero-content-container {
        max-width: 100%;
    }
    .hero-timer-spacer {
        margin-top: 5rem;
    }
}

.custom-file-upload {
  border: 1px solid #ccc;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
}

/* Настройки на навигацията - подменютата да се отваря вдясно от менютата */
@media (min-width: 992px) {
    .dropdown-menu .dropdown-menu {
        top: 0;
        left: 100%;
        right: auto;
        width: fit-content;
    }

    /* JS добавя този клас за да се отвори наляво ако няма място */
    .dropdown-menu .dropdown-menu.open-left {
        left: auto;
        right: 100%;
    }
}

/* При мобилна се маха скрола на страницата при навигацията */
@media (max-width: 991.98px) {
    body.no-scroll {
        overflow: hidden;
        height: 100vh;
    }
    
    /* Позволява навигацията да се скролва */
    .navbar-collapse {
        /* Ограничаваме височината не навигацията за да може браузърът да сложи скрол ако тя е твърде дълга. */
        max-height: calc(100vh - 70px); /* 70px е горната лента без менютата */
        overflow-y: auto;
    }
}

/* Цвят на подменюта */
.dropdown-menu {
    background: var(--primary);
}

/* За да не се оцветяват елементите на подменютата */
.navbar-nav li {
    background: transparent !important;
}

/* Слагаме невидима линия на линковете която ще се оцветява при hover, click и тн. */
.navbar-nav a.nav-link,
.navbar-nav .dropdown-menu a {
    background: transparent !important;
    border-bottom: 2px solid transparent !important; 
}

/* Toggle на жълтата линие при отваряне на меню */
.navbar-nav a.nav-link.active,
.navbar-nav .dropdown-menu a.active,
.navbar-nav a.dropdown-toggle.show,
.navbar-nav [aria-expanded="true"],
.navbar-nav .nav-item.show > .nav-link,
.navbar-nav .dropdown.show > .dropdown-toggle {
    border-bottom-color: var(--secondary-color) !important; 
}

/* Показване на жълтата линия при hover за desktop */
@media (hover: hover) {
    .navbar-nav a.nav-link:hover, 
    .navbar-nav .dropdown-menu a:hover { 
        border-bottom-color: var(--secondary-color) !important; 
    }
}

/* Навигацията да стои най-отгоре на видимия екран*/
.fixed-top-custom {
    /* Същото но със !important за да сработи */
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    z-index: 1050 !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* IMG HOVER START */
.stretched-link::after {
    z-index: 9999 !important;
}

.hover {
    overflow: hidden;
    position: relative;
    padding-bottom: 40%;
}

.hover-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: all 0.4s;
}

.hover img {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s;
}

.hover-content {
    position: relative;
    z-index: 2;
}

.hover-1::after, .hover-3::after {
    content: '';
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    border: 1px solid #fff;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1;
    transition: all 0.3s;
    transform: scale(1.1);
    opacity: 0;
    display: block;
    opacity: 0;
}

.hover-3-content {
    position: absolute;
    top: 65%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    z-index: 2;
}

.hover-3-title {
    position: absolute;
    top: 30%;
    z-index: 3;
    width: 100%;
    text-align: center;
}

.hover-3-description {
    opacity: 0;
    transform: scale(1.3);
    transition: all 0.3s;
    line-height: 1rem;
}

.hover-1 img, .hover-3 img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: all 0.3s;
}

.hover-3 .hover-overlay {
    background: rgba(46, 49, 146, 0.5);
}

.hover-1:hover img, .hover-3:hover img {
    width: 100%;
    transform: scale(1.1);
}

.hover-1:hover::after, .hover-3:hover::after {
    opacity: 1;
    transform: none;
}

.hover-1:hover .hover-3-description, .hover-3:hover .hover-3-description {
    opacity: 1;
    transform: none;
}

.hover-3:hover .hover-overlay, .hover-1:hover .hover-overlay {
    background: rgba(46, 49, 146, 0.5);
}

/* gallery-client */
.hover-4 .hover-overlay {
    background: rgba(46, 49, 146, 0.2);
}

.hover-4 img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: all 0.3s;
    object-position: top;
}

.hover-4 .hover-overlay {
    background: rgba(46, 49, 146, 0.2);
}

.hover-4:hover img {
    width: 100%;
    transform: scale(1.1);
}

.hover-4:hover::after {
    opacity: 1;
    transform: none;
}

.hover-4:hover .hover-overlay {
    background: none !important;
}
/* IMG HOVER END */
