/* 
    KD Institute Global Styles 
    Inspired by ClinicMaster Premium Medical Template
*/

:root {
    --primary-color: #00B7D1;
    --primary-dark: #009cb3;
    --secondary-color: #00204A;
    --secondary-light: #00367a;
    --accent-color: #FF5E14;
    /* Orange for CTAs */
    --text-color: #555555;
    --heading-color: #00204A;
    --white: #ffffff;
    --light-bg: #f4f9fc;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 15px;
    font-weight: 600;
    border-radius: 5px;
}

.text-primary.text-primary {
    --bs-text-opacity: 1;
    color: var(--primary-color) !important;
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
}

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

/* Header & Navbar */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

@media (min-width: 992px) {
    .top-bar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1040;
        height: 45px;
    }
}

.top-bar a {
    color: var(--white);
    margin-right: 15px;
}

.navbar {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.navbar.fixed-top {
    position: fixed;
    width: 100%;
    z-index: 1030;
}

@media (min-width: 992px) {
    .navbar.fixed-top {
        top: 45px;
    }
}

@media (max-width: 991px) {
    .navbar.fixed-top {
        top: 0;
    }
}

.navbar-brand img {
    max-height: 60px;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 600;
    padding: 10px 13px !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px 0;
    margin-top: 10px !important;
}

.dropdown-item {
    font-weight: 500;
    padding: 10px 25px;
    transition: var(--transition);
    text-wrap: auto;
}

.dropdown-item:hover {
    background-color: rgba(0, 183, 209, 0.05);
    color: var(--primary-color);
    padding-left: 30px;
}

@media (min-width: 992px) {
    .dropdown-menu {
        min-width: 320px;
        animation: slideDown 0.3s ease;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .dropdown-menu {
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        margin-top: 0 !important;
        padding: 10px 0;
    }
}

/* Hero Section */
.hero-section {
    padding: 50px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-section {
        padding-top: 195px;
        /* top-bar(45) + nav(90) + strip(40) */
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 90px;
        /* navbar(90) only */
    }
}

.hero-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero-image .carousel,
.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

/* Sections */
.section-padding {
    padding: 55px 0;
}

@media (max-width: 768px) {

    .section-padding,
    .hero-section {
        padding: 40px 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.text-start h2::after {
    left: 0;
    transform: none;
}

/* Course Cards */
.course-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    margin-bottom: 30px;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.course-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-info {
    padding: 25px;
}

.course-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Admission Form Styles */
.admission-info {
    background: linear-gradient(135deg, #f4f9fc 0%, #e8f3f8 100%);
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-custom i {
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    font-size: 16px;
    z-index: 10;
    transition: var(--transition);
}

.input-group-custom .form-control,
.input-group-custom .form-select {
    padding-left: 45px;
    height: 55px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    background-color: #fdfdfd;
}

.input-group-custom .form-control:focus,
.input-group-custom .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 183, 209, 0.1);
    background-color: var(--white);
}

.input-group-custom textarea.form-control {
    height: auto;
    padding-top: 15px;
}

.input-group-custom .form-control:focus+i,
.input-group-custom .form-select:focus+i {
    color: var(--secondary-color);
}

.form-wrapper {
    position: relative;
    z-index: 1;
}

.form-wrapper h3 {
    font-size: 28px;
    color: var(--secondary-color);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.form-wrapper h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Stats Strip Section */
.stats-strip {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 183, 209, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stat-box {
    padding: 30px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Ghost Border */
    transition: var(--transition);
    height: 100%;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(0, 183, 209, 0.3);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 183, 209, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.stat-box:hover .icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 20px rgba(0, 183, 209, 0.4);
}

.stat-box h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.stat-box h2::after {
    content: '+';
    font-size: 32px;
    color: var(--primary-color);
    margin-left: 2px;
    vertical-align: top;
}

.stat-box p {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Apply For Admission Section */
.apply-admission-section {
    overflow: hidden;
}

.apply-img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.apply-content {
    min-height: 500px;
}

.btn-danger {
    background-color: #e31e24;
    /* Professional institutional red */
    border-color: #e31e24;
    transition: var(--transition);
}

.btn-danger:hover {
    background-color: #c4191f;
    border-color: #c4191f;
    transform: scale(1.05);
}

/* Student's Journey Section */
.journey-container {
    /* border: 1px solid rgba(0, 32, 74, 0.05); */
}

.journey-img {
    width: 100%;
    height: 100%;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.journey-tabs .nav-link {
    background: transparent;
    border: 1px solid #eee;
    color: var(--secondary-color);
    margin-right: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    transition: var(--transition);
}

.journey-tabs .nav-link.active {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 10px 20px rgba(0, 32, 74, 0.2);
}

.journey-tabs .nav-link:hover:not(.active) {
    background: #f8f9fa;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .journey-tabs {
        justify-content: center !important;
        gap: 10px;
    }

    .journey-tabs .nav-item {
        margin: 0 !important;
    }

    .journey-tabs .nav-link {
        margin: 0 !important;
    }
}

.journey-content p {
    font-size: 17px;
    color: #666;
    line-height: 1.8;
}

.journey-content ul li {
    font-weight: 500;
    color: var(--secondary-color);
}

/* Syncing Carousel and Tabs (Optional JS can enhance this, but design first) */
.carousel-fade .carousel-item {
    transition-duration: 0.8s;
}

/* Trust Banner */
.trust-banner {
    background: var(--primary-color);
    padding-bottom: 0;
}

.trust-card {
    /* background: var(--primary-color); */
    padding: 60px 40px;
    /* border-radius: 60px; */
    color: var(--white);
    /* box-shadow: 0 20px 40px rgba(0, 183, 209, 0.2); */
    position: relative;
    z-index: 10;
}

.trust-badge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-seal {
    max-width: 100px;
    height: auto;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.trust-card h2 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 0;
}

.trust-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    margin-bottom: 0;
    font-weight: 600;
}

.trust-card .btn-white {
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 5px;
    border: 2px solid #fff;
    transition: var(--transition);
}

.trust-card .btn-white:hover {
    background: transparent;
    color: #fff;
}

.trust-card .btn-outline-white {
    background: transparent;
    color: #fff;
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 5px;
    border: 2px solid #fff;
    transition: var(--transition);
}

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

/* Footer */
footer {
    background-color: #001229;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
    font-size: 14px;
}

footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    padding-left: 0;
    transform: translateY(-3px);
}

/* Edge Cards */
.edge-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.edge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(0, 183, 209, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 28px;
    transition: var(--transition);
}

.edge-card:hover .icon-circle {
    background: var(--primary-color);
    color: #fff;
}

.edge-card h4 {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.edge-card p {
    font-size: 15px;
    line-height: 1.6;
}

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

/* About Us Page Styles */
.about-banner {
    background-color: var(--secondary-color);
    padding: 180px 0 140px;
    color: var(--white);
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
}

.banner-about {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 100%), url('images/about-banner-scientist.png');
}

.banner-dmlt {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 100%), url('images/dmlt-banner.png');
}

.banner-drit {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 100%), url('images/drit-banner.png');
}

.banner-cch {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 100%), url('images/cch-banner.png');
}

.banner-chd {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 100%), url('images/chd-banner.png');
}

.banner-cat {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 100%), url('images/dmlt-banner.png');
}

.banner-courses {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 100%), url('images/about-banner-scientist.png');
}

.banner-contact {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 100%), url('images/campus-bg.png');
}

.banner-admission {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 100%), url('images/campus-bg.png');
}

.about-banner h1 {
    color: var(--white);
    font-size: 72px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 1s ease-out;
}

.breadcrumb-tab {
    position: absolute;
    bottom: 0;
    left: 100px;
    background: #fff;
    padding: 18px 45px;
    border-radius: 30px 30px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
}

.breadcrumb-tab i {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.breadcrumb-tab a {
    color: #333;
    opacity: 0.7;
}

.breadcrumb-tab a:hover {
    opacity: 1;
}

.breadcrumb-tab span.active {
    color: var(--secondary-color);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    padding-right: 10px;
}

.breadcrumb-item a:hover {
    opacity: 1 !important;
    color: var(--primary-color) !important;
}

/* Editorial Typography */
.editorial-quote {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
    position: relative;
    padding-left: 30px;
    border-left: 8px solid var(--primary-color);
}

.institutional-text {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

/* Data Monolith Section */
.data-monolith-section {
    background-color: var(--secondary-color);
    padding: 100px 0;
    color: var(--white);
}

.monolith-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.monolith-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: rgba(0, 183, 209, 0.3);
}

.monolith-card .card-category {
    color: var(--white);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 15px;
}

.monolith-card .card-highlight {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.monolith-card .card-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-bottom: 0;
}

/* Glassmorphism Advantages */
.glass-advantage-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 24px;
    height: 100%;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.glass-advantage-card:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.glass-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
}

.about-content-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-text-block {
    max-width: 900px;
}

.about-text-block p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #444;
}

.certification-seal {
    max-width: 120px;
    margin-bottom: 20px;
}

.about-img-frame {
    position: relative;
    padding-left: 20px;
    padding-top: 20px;
}

.about-img-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
}

@media (min-width: 992px) {
    .botom-bar {
        position: fixed;
        top: 135px;
        /* 45 + 90 */
        left: 0;
        width: 100%;
        z-index: 1020;
        text-align: center;
    }
}

.bg-color {
    background: #002d55;
    padding: 14px 0 7px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Marquee Section Styles */
.marquee-section {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 0;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    z-index: 5;
}

.marquee-section.integrated {
    background: transparent;
    color: var(--secondary-color);
    border: none;
    padding: 10px 0;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 30px;
}


.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 30px;
    min-width: 100%;
    animation: scroll-rtl 40s linear infinite;
}

.marquee-section:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: uppercase;
}

.marquee-item i {
    color: var(--primary-color);
    margin-right: 10px;
}

@keyframes scroll-rtl {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .marquee-item {
        font-size: 14px;
    }
}

/* News Section Styles V2 */
.news-section {
    position: relative;
    background-image: radial-gradient(circle at 100% 100%, rgba(0, 183, 209, 0.03) 0%, transparent 40%);
}


/* News Marquee Styles */
.news-marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 30px;
    padding: 20px 0;
}

.news-marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 30px;
    min-width: 100%;
    animation: scroll-news 50s linear infinite;
}

.news-marquee-container:hover .news-marquee-content {
    animation-play-state: paused;
}

.news-card-v2 {
    width: 380px;
    /* Fixed width for consistent marquee */
    flex-shrink: 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: var(--secondary-color);
}

@keyframes scroll-news {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .news-card-v2 {
        width: 300px;
        height: 350px;
    }
}


.news-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-v2:hover .news-img-wrapper img {
    transform: scale(1.15);
    opacity: 0.6;
}

.news-date-v2 {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0, 183, 209, 0.3);
}

.news-date-v2 .day {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.news-date-v2 .month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.news-content-v2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 32, 74, 0.98) 0%, rgba(0, 32, 74, 0.8) 60%, transparent 100%);
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 4;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    transition: transform 0.5s ease;
}

.news-hover-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.news-card-v2:hover .news-hover-details {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 15px;
}

.news-card-v2:hover .news-content-v2 {
    padding-bottom: 40px;
    background: linear-gradient(to top, rgba(0, 32, 74, 0.98) 0%, rgba(0, 32, 74, 0.4) 100%);
}

.read-more-v2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 20px;
    transition: var(--transition);
}

.read-more-v2:hover {
    color: white;
    padding-left: 5px;
}

/* Gallery Styles */
.gallery-filters .filter-btn {
    border: none;
    background: #f8f9fa;
    color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-filters .filter-btn:hover,
.gallery-filters .filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 183, 209, 0.3);
}

.gallery-item {
    transition: all 0.4s ease;
}

.gallery-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-img-box {
    position: relative;
    overflow: hidden;
}

.gallery-img-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 32, 74, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card:hover .gallery-img-box img {
    transform: scale(1.1) rotate(2deg);
}

.gallery-info span {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
}

.gallery-info h4 {
    color: white;
    margin-top: 5px;
    font-weight: 700;
}

.gallery-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    opacity: 0;
    transition: all 0.4s ease;
    transform: scale(0.5);
}

.gallery-card:hover .gallery-zoom {
    opacity: 1;
    transform: scale(1);
}