body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: #f4f6f9;
    color: #2c3e50;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #1a2a44, #111a2e);
    color: white;
    height: 100vh;
    padding: 20px;
    position: fixed;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.sidebar a {
    display: block;
    color: #dfe6e9;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar a:hover {
    background: #2c3e50;
    transform: translateX(5px);
}

/* Main */
.main {
    margin-left: 240px;
}

/* Top Navbar */
.navbar {
    background: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
}

.navbar strong {
    color: #1a2a44;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 25px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 28px;
    margin: 10px 0;
    color: #1a2a44;
}

/* Content Box */
.content {
    margin: 0 25px 25px 25px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}



/* =========================
   RESPONSIVE CSS
========================= */

@media screen and (max-width: 992px){

    .sidebar{
        width: 200px;
        padding: 15px;
    }

    .main{
        margin-left: 200px;
    }

    .cards{
        grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    }
}

/* MOBILE VIEW */
@media screen and (max-width: 768px){

    .sidebar{
        position: relative;
        width: 100%;
        height: auto;
        padding: 15px 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar h2{
        width: 100%;
        margin-bottom: 15px;
        font-size: 22px;
    }

    .sidebar a{
        margin: 5px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .main{
        margin-left: 0;
        width: 100%;
    }

    .navbar{
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .cards{
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .card{
        padding: 20px;
    }

    .card h3{
        font-size: 24px;
    }

    .content{
        margin: 15px;
        padding: 15px;
    }
}

/* SMALL MOBILE */
@media screen and (max-width: 480px){

    .sidebar h2{
        font-size: 18px;
    }

    .sidebar a{
        width: 100%;
        text-align: center;
    }

    .navbar{
        padding: 12px;
    }

    .card h3{
        font-size: 20px;
    }

    .content{
        margin: 10px;
    }
}




/* ===================================
GLOBAL RESPONSIVE FIX
=================================== */

*{
    box-sizing:border-box;
}

html,body{
    overflow-x:hidden;
    width:100%;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

/* ===================================
HEADER LOGO FIX
=================================== */

.col-lg-2.col-md-6.col-4{
    margin-left:0 !important;
}

.logo img{
    height:auto !important;
    max-height:100px;
    margin-top:0 !important;
    margin-left:0 !important;
}

/* ===================================
MENU RESPONSIVE
=================================== */

.main-menu ul{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
}

.main-menu ul li{
    position:relative;
}

.main-menu ul li a{
    font-size:14px;
    padding:10px 12px;
}

/* ===================================
DROPDOWN FIX
=================================== */

.submenu,
.sub-dropdown{
    z-index:99999;
}

.main-dropdown:hover .submenu{
    display:block;
}

/* ===================================
SLIDER FIX
=================================== */

.carousel-container{
    width:100%;
    overflow:hidden;
}

.mySlides img{
    width:100%;
    height:550px;
    object-fit:cover;
}

/* ===================================
LATEST UPDATE FIX
=================================== */

.containerJi,
.containerJi .headertextJi{
    width:100% !important;
    max-width:100% !important;
}

#marquee-container{
    width:100% !important;
}

/* ===================================
CARD SECTION
=================================== */

.single-choose-us{
    height:100%;
}

/* ===================================
CAROUSEL CARD FIX
=================================== */

.carousel1 .card1{
    height:auto;
    min-height:420px;
}

.card1 .img img{
    border-radius:50%;
}

/* ===================================
TABLET VIEW
=================================== */

@media(max-width:992px){

    .main-menu ul li a{
        font-size:13px;
        padding:8px;
    }

    .mySlides img{
        height:400px;
    }

    .wrapper1 .carousel1{
        grid-auto-columns: calc((100% / 2) - 10px);
    }

    .containerJi{
        margin-top:30px;
    }
}

/* ===================================
MOBILE VIEW
=================================== */

@media(max-width:768px){

    .header-top{
        text-align:center;
    }

    .login-register ul{
        justify-content:center;
    }

    .logo{
        text-align:center;
    }

    .logo img{
        max-height:70px;
    }

    .main-menu{
        display:none;
    }

    .mobile-menu-area{
        display:block !important;
    }

    .mySlides img{
        height:220px;
    }

    .prev,
    .next{
        padding:10px;
        font-size:18px;
    }

    .dots{
        height:10px;
        width:10px;
    }

    .containerJi{
        width:100% !important;
    }

    #marquee-container{
        width:100% !important;
        height:300px !important;
    }

    .about-us{
        padding-top:50px !important;
        padding-bottom:50px !important;
    }

    .section-title h2{
        font-size:28px;
    }

    p{
        font-size:15px;
        line-height:1.8;
    }

    .wrapper1 .carousel1{
        grid-auto-columns:100%;
    }

    .wrapper1 i{
        display:none;
    }

    .teacher-img img{
        width:100%;
        height:auto !important;
    }

    .custom-row{
        flex-direction:column;
        align-items:center;
    }
}

/* ===================================
SMALL MOBILE
=================================== */

@media(max-width:480px){

    .logo img{
        max-height:55px;
    }

    .mySlides img{
        height:180px;
    }

    .section-title h2{
        font-size:22px;
    }

    p{
        font-size:14px;
    }

    .headertextJi{
        font-size:14px !important;
    }

    .containerJi{
        padding:10px;
    }

    .card1{
        padding:15px;
    }
}

/* ===== KEEP DESKTOP LAYOUT ON MOBILE ===== */

@media only screen and (max-width: 991px) {

    /* Full desktop navbar */
    .main-menu {
        display: block !important;
        overflow-x: auto;
        white-space: nowrap;
    }

    .main-menu nav ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
    }

    .main-menu nav ul li {
        display: inline-block !important;
        float: none !important;
    }

    .main-menu nav ul li a {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    /* Hide mobile menu */
    .mobile-menu-area {
        display: none !important;
    }

    /* Header alignment */
    .menu-cart-wrap {
        overflow-x: auto;
        width: 100%;
    }

    /* Logo responsive */
    .logo img {
        height: 70px !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
    }

    /* Remove bootstrap column stacking */
    .col-lg-2,
    .col-lg-11,
    .col-md-6,
    .col-4,
    .col-8 {
        flex: unset !important;
        max-width: unset !important;
    }

    .header-bottom .row {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
}

/* ===========================
   NAVBAR OVERRIDE FIX
   (DO NOT REMOVE OLD CSS)
===========================*/

/* prevent horizontal cut */
html, body{
    overflow-x: hidden;
}

/* FORCE MENU TO SHOW */
.main-menu{
    display: block !important;
}

/* keep navbar horizontal */
.main-menu nav ul{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* prevent wrapping */
.main-menu nav ul li{
    white-space: nowrap;
    position: relative;
}

/* links spacing fix */
.main-menu nav ul li a{
    padding: 12px 14px !important;
    font-size: 14px;
}

/* ===========================
   DROPDOWN FIX
===========================*/

.submenu,
.sub-dropdown{
    display: none;
    position: absolute;
    background: #fff;
    min-width: 200px;
    z-index: 99999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* first level */
.main-menu ul li:hover > .submenu{
    display: block;
    top: 100%;
    left: 0;
}

/* second level */
.dropdown:hover > .sub-dropdown{
    display: block;
    top: 0;
    left: 100%;
}

/* ===========================
   MOBILE FIX (KEEP DESKTOP LOOK)
===========================*/

@media (max-width: 991px){

    /* keep desktop navbar visible */
    .main-menu{
        display: block !important;
        overflow-x: auto;
        white-space: nowrap;
    }

    .main-menu nav ul{
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-menu nav ul::-webkit-scrollbar{
        display: none;
    }

    /* IMPORTANT: mobile menu off */
    .mobile-menu-area{
        display: none !important;
    }

    /* dropdown still usable */
    .submenu,
    .sub-dropdown{
        position: absolute;
    }
}

/* ===========================
   SMALL MOBILE
===========================*/

@media (max-width: 576px){

    .main-menu nav ul li a{
        padding: 10px 10px !important;
        font-size: 13px;
    }
}





.card{
    position:relative;
    background:#fafafa;
    border:1px solid #e2e2e2;
    padding:22px;
    border-radius:8px;
    transition:0.3s ease;
    overflow:hidden;
}

.card:hover{
    transform:translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    border-color:#8b0000;
    background:#fff;
}

.card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:5px;
    height:100%;
    background:#8b0000;
}

.card a{
    text-decoration:none;
    color:#222;
    font-size:16px;
    font-weight:600;
    line-height:1.8;
    display:block;
}

.delete-btn{
    margin-top:15px;
    padding:8px 14px;
    border:none;
    background:#8b0000;
    color:#fff;
    border-radius:5px;
    cursor:pointer;
}

.delete-btn:hover{
    background:#b30000;
}