@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

:root {
    --manarat-primary: #00594c;
    --manarat-orange: #f29924;
}

/* Top Bar Styling */
.top-bar {
    padding: 15px 0;
    background: #fff;
}

.logo-name{
    color: var(--manarat-primary);
    font-size: 24px;
}
.logo-address{
    color: var(--manarat-primary);
    font-size: 20px;
    font-weight: 500;
}
.info-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.info-icon {
    background: var(--manarat-primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.info-text span {
    display: block;
    font-size: 13px;
    color: #666;
}
.info-text strong {
    display: block;
    font-size: 15px;
    color: #1a1a1a;
}

.btn-apply {
    background-color: var(--manarat-orange);
    color: black;
    font-weight: 700;
    border-radius: 30px;
    padding: 12px 30px;
    border: none;
    transition: 0.3s;
}
.btn-apply:hover {
    background-color: #d8861d;
    color: white;
}

/* =========================
   Navbar Styling
========================= */

.main-nav {
    background-color: var(--manarat-primary);
}

/* Nav Link Style */
.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 15px 20px !important;
}

.nav-link:hover {
    opacity: 0.8;
}

/* =========================
   Remove Bootstrap default arrow
========================= */

.dropdown-toggle::after {
    display: none !important;
}

/* =========================
   Dropdown Menu
========================= */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    border-radius: 6px;
    border: none;
    padding: 10px 0;
    background-color: var(--manarat-primary);
    z-index: 999;
}

/* Hover to show main dropdown */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

/* Dropdown item style */
.dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: var(--manarat-primary);
    color: #ffffff;
    font-size: 18px;
    transform: scale(1.05); /* Slight zoom in */
}

/* =========================
   Nested Dropdown (Submenu)
========================= */

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    display: none;
}

/* Hover to show nested submenu */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* =========================
   Arrow Animations
========================= */

/* Main arrow (down/up) */
.arrow-icon {
    transition: transform 0.3s ease;
}

/* Hover or open state rotate main arrow */
.nav-item.dropdown:hover > a > .arrow-icon,
.nav-item.dropdown.show > a > .arrow-icon {
    transform: rotate(180deg);
}

/* Submenu arrow (right arrow) */
.dropdown-submenu > a > .fa-chevron-right {
    transition: transform 0.3s ease;
}

/* Rotate right arrow on hover */
.dropdown-submenu:hover > a > .fa-chevron-right {
    transform: rotate(90deg);
}

/* =========================
   Search Icon
========================= */

/* Search Icon Style */
.search-icon {
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
}

/* Search Input Hidden by default */
.search-input {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    padding: 5px 10px;
    border-radius: 20px;
    border: none;
    outline: none;
    transition: width 0.3s ease, opacity 0.3s ease;
    background: white;
    color: black;
}

/* When active (show input) */
.search-input.active {
    width: 200px;
    opacity: 1;
}

/* =========================
   Mobile Navbar
========================= */

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Optional: allow dropdown to show on click for mobile */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
    }
    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-left: 0;
    }
}

/* =========================
   Submenu fade animation
========================= */

.dropdown-menu {
    display: block; /* Required for animation to work, hide with opacity */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px); /* Slide up a bit */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover parent menu */
.nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Nested submenu */
.dropdown-submenu > .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px); /* Slide left a bit */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover nested submenu */
.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Optional: smooth fade for items */
.dropdown-item {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* =========================
           Hero Section
 ========================= */
.hero-section {
    background-image: url('assets/img/hero-bg1.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 100px 0;
    width: 100%;
    min-height: 720px;
    position: relative;
    overflow: hidden;
    color: white;
}

.h-title2 {
    font-family: 'Just Another Hand', cursive;
    color: #EF9A20;
    font-size: 32px;
    letter-spacing: 1px;
}

/* Hero Right Image */
.hero-right img {
    max-width: 100%;
    min-height: 400px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s ease;
}

/* Container content above overlay */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Left Column */
.hero-left .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-left .hero-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-left .btn {
    font-weight: 600;
}

/* Right Column */
.hero-right img {
    max-width: 100%;
    border-radius: 10px; /* Optional styling */
}
.floating-img{
    position:absolute;
    max-width:120px;
    z-index:3;
    pointer-events:none;
}

/* Large screen */
.floating-top-right{
    top:62px;
    right:394px;
}

.floating-bottom-right{
    bottom:150px;
    right:400px;
}

.floating-bottom-left{
    bottom:233px;
    left:750px;
}


/* 1396px */
@media (max-width:1396px){

    .floating-top-right{
        top:76px;
        right:130px;
    }

    .floating-bottom-right{
        right:260px;
    }

    .floating-bottom-left{
        left:520px;
    }

}


/* 1366px */
@media (max-width:1366px){

    .floating-top-right{
        top:55px;
        right:250px;
    }

    .floating-bottom-right{
        bottom:130px;
        right:260px;
    }

    .floating-bottom-left{
        bottom:200px;
        left:520px;
    }

}


/* =========================
   Floating Animation
========================= */

@keyframes floatUpDown{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-15px);
    }

    100%{
        transform:translateY(0);
    }

}

/* Floating animation keyframes */
@keyframes floatUpDown {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================
       Responsive adjustments
========================= */
@media (max-width: 991px) {
    .hero-left .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    .hero-left .hero-description {
        text-align: center;
    }
    .hero-right {
        margin-top: 30px;
    }
    /* Floating images smaller on mobile */
    .floating-img {
        max-width: 80px;
    }
}

/*.hero-socials-bottom-left {*/
/*    position: absolute;*/
/*    bottom: 122px;*/
/*    left: 200px;*/
/*    display: flex;*/
/*    gap: 15px;*/
/*    z-index: 10;*/
/*}*/

.hero-socials-bottom-left a {
    color: white;       /* icon color */
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-socials-bottom-left a:hover {
    color: var(--manarat-orange);  /* hover color */
    transform: scale(1.2);        /* subtle zoom on hover */
}

.hero-slider{
    position:relative;
    min-height:450px;
}

.hero-slide{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    opacity:0;
    transform:translateY(60px);
    transition:all 0.8s ease;
    pointer-events:none;
}

.hero-slide.active{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}

.hero-slide.fade-out{
    opacity:0;
    transform:translateY(60px);
}

/* Hero Section Load Animation */
.hero-section{
    opacity:0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.hero-section.section-show{
    opacity:1;
    transform: translateY(0);
}

img.small-logo {
    height: 60px;
    width: 60px;
}


.whySlider .swiper-slide{
    opacity:0;
    transition:opacity 1s ease;
}

.whySlider .swiper-slide-active{
    opacity:1;
}



/* Container for the image */
.why-img-box1 .img1 {
    width: 100% !important;
    height: 400px!important;;
    display: flex!important;;
    justify-content: center!important;;
    align-items: center!important;;
    overflow: hidden!important;;
}

/* The image itself */
.why-img-box1 .img1 img {
    width: 100%!important;;
    height: 100%!important;;
    object-fit: contain!important;;
}
.custom-m-m{
    text-align: justify;
    margin: 0;
    padding: 0;
}


/*notice*/
.notice-table-wrapper{
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.notice-table{
    margin-bottom: 0;
}

.notice-table thead{
    background: #f5f7fa;
}

.notice-table th{
    font-weight: 600;
    padding: 16px;
}

.notice-table td{
    padding: 14px 16px;
}

/*tab section*/

/* Tab Nav Style */
.course-tab{
    border-bottom: none;
    gap: 10px;
}

/* ===============================
   Card Group Container
================================= */
.card-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Card spacing */
}

/* ===============================
   Individual Card Styling
================================= */
.card-group .card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 300px; /* Minimum width 300px, grow to fill space */
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-group .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* ===============================
   Card Image - Fixed 220px Height
================================= */
.card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.card-img-top {
    width: 100%;
    height: 220px; /* fixed height for all images */
    object-fit: cover; /* maintain aspect ratio, cover space */
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px;
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-text {
    font-size: 14px;
    color: #555;
    flex: 1;
}

/* ===============================
   Responsive Adjustments
================================= */
@media (max-width: 1200px) {
    .card-group .card {
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .card-group .card {
        flex: 1 1 45%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .card-group .card {
        flex: 1 1 100%;
    }
}

.box-img {
    position: relative;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* icon click না নেয়া */
}


.c-achievement-img {
    width: 100%;
    height: 568px !important;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Slide Title Overlay */
.slide-inner {
    position: relative;
    overflow: hidden;
}

.slide-title-overlay {
    position: absolute;
    bottom: 0; /* নিচে overlay করতে চাইলে */
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-inner:hover .slide-title-overlay {
    opacity: 1;
}

.slide-title-overlay:hover{
    color: #1CB098;
}

.ach-pre{
    color: #1CB098;
}
.ach-nxt{
    color: #1CB098;
}

img.custom-admission {
    height: 250px !important;
}
/* ===== Logo Row ===== */
.logo-wrapper{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo-img img{
    max-height:80px;
}

.logo-text{
    line-height:1.3;
    text-align:left;
}

.logo-title{
    font-size:24px;
    font-weight:700;
}

.logo-address{
    font-size:16px;
    color:#666;
}

/* Tablet: 768px - 991px */
@media (max-width: 991px) {
    .logo-img img {
        max-height: 60px;
    }
    .logo-title {
        font-size: 20px;
    }
    .logo-address {
        font-size: 14px;
    }
}

/* Mobile: <768px */
@media (max-width: 767px) {
    .logo-wrapper{
        display:flex;
        align-items:center;
        gap:12px;
    }

    .logo-img img{
        max-height:50px;
    }

    .logo-text{
        line-height:1.3;
        text-align:left;
    }

    .logo-title{
        font-size:16px;
        font-weight:700;
    }

    .logo-address{
        font-size:12px;
        color:#666;
    }
}

/* ===== Notice Bar ===== */
.notice-bar{
    background:#016A4E;
    color:#fff;
    padding:8px 0;
    text-align:center;
    font-size:14px;
}

/* ===== Sticky Menu ===== */
.menu-sticky{
    /*position: -webkit-sticky; !* Safari *!*/
    position: sticky !important;
    top: 0;
    z-index:9999;
    width:100%;
    background:#016A4E  !important;
}

/* Row padding */
.header-row-2{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:6px 0;
}

/* Menu Styles */
.menu-sticky .main-menu ul{
    display:flex !important;
    gap:20px;
    list-style:none;
    margin:0;
    padding:0;
}

.menu-sticky .main-menu ul li a{
    color:#fff;
    text-decoration:none;
    padding:14px 0;
    transition: color 0.3s;
}

.menu-sticky .main-menu ul li a:hover{
    color:#ffd700;
}

/* Login Button */
/*.menu-sticky .th-btn{*/
/*    background:#fff;*/
/*    color:#016A4E;*/
/*    padding:6px 14px;*/
/*}*/

/* Hero top padding */
.hero-1 {
    padding-top: 140px !important;
}


.hero-bg-shape1-2.th-anim-lr {
    top: 30px !important;
}
.breadcumb-wrapper {
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.page-title{
    color: var(--theme-color);
}

.notice-table-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.notice-table thead {
    background: #016A4E;

}

.notice-table thead th {
    padding: 14px;
    font-weight: 600;
    color: #fff !important;
}
.notice-table tbody tr {
    transition: 0.3s;
}

.notice-table tbody tr:hover {
    background: #f1f7ff;
    transform: scale(1.01);
}
.notice-table td:first-child {
    font-weight: bold;

}
.notice-table td:first-child {
    background: #e7f1ff;
    border-radius: 6px;
    text-align: center;
}

.activity-card{
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: all 0.35s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    position: relative;
}

/* hover effect */
.activity-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* image effect */
.activity-card img{
    height: 350px;
    transition: transform 0.5s ease;
}

.activity-card:hover img{

    transform: scale(1.08);
}

/* card body */
.activity-card .card-body{
    padding: 18px;
}

/* title style */
.activity-card .card-title a{
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.activity-card .card-title a:hover{
    color: #0d6efd;
}

/* text */
.activity-card .card-text{
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* subtle gradient overlay */
.activity-card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.08), transparent);
    opacity: 0;
    transition: 0.3s;
    z-index: 0;   /
    pointer-events: none;
}

.activity-card:hover::before{
    opacity: 1;
}
.activity-card .card-body{
    position: relative;
    z-index: 2;
}

.breadcumb-wrapper{
    max-height: 550px;
    position: relative;
    padding: 120px 0;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* dark overlay for clarity */
.breadcumb-wrapper::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

/* content on top */
.breadcumb-content{
    position: relative;
    z-index: 2;
}

.video-card{
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.video-card img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: .3s;
}

.video-card:hover img{
    transform: scale(1.05);
}

.play-icon{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 40px;
    color: white;
    background: rgba(0,0,0,0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
}

#videoModal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
    z-index:99999;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:0.3s ease;
}

#videoModal.active{
    display:flex;
    opacity:1;
}

#videoModal .box{
    width:80%;
    max-width:900px;
    transform:scale(0.8);
    transition:0.3s ease;
}

#videoModal.active .box{
    transform:scale(1);
}

.addmision-thumb{
    height: 350px!important;
}

.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
}

.img-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-modal-content {
    max-width: 80%;
    max-height: 80%;
}

.img-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.img-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
}

span.title1 {
    font-size: 45px;
    font-weight: 500;
    color: #016A4E;
}
span.title2 {
    font-size: 38px;
    display: inline-block;
    max-width: 500px;
    word-wrap: break-word;
    white-space: normal;
    font-weight: 500;
    color: #016A4E;
}

span.title3.text-theme2 {
    font-size: 24px;
    font-weight: 500;
    max-width: 700px;
}

.blog-card .blog-img img {
    height: 270px;
}