﻿  .grid-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: center;
}

.logo {
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.topbar {
    grid-column: 2 / 3;
}

.navbar-row {
    grid-column: 2 / 3;
}

.navbar-vertical .dropdown-menu {
    min-width: 180px;
    padding: 0;
    margin-top: 5px; /* small gap below the button */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.navbar-vertical .dropdown-item {
    padding: 6px 15px;
    font-size: 0.9rem;
    color: #333;
}

.navbar-vertical .dropdown-item:hover {
    background-color: #007bff;
    color: #fff;
}

.nav-link {
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: #f1f1f1;
    color: #007bff;
    border-radius: 5px;
}





@media (max-width: 991px) {
    .grid-container {
        display: block;
        text-align: center;
    }

    .logo {
        display: block;
        margin: 0 auto 10px auto; /* Add bottom margin */
        text-align: center;
    }

    .topbar {
        text-align: center;
    }

  /* Center everything inside topbar and navbar-row */
    .topbar .d-flex,
    .navbar-row .d-flex {
        flex-direction: column !important;
        align-items: center !important; /* Center horizontally */
        justify-content: center !important; /* Center vertically if needed */
    }

    /* Make the 'Subjects' button full width with centered text */
    .navbar-row > a {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Navbar collapse full width and centered items */
    .navbar-row nav.collapse {
        width: 100% !important;
        text-align: center;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .navbar-nav .nav-item {
        margin: 5px 0; /* Spacing between nav links */
    }

    .btn.btn-primary {
        margin: 10px 0 0 0; /* Keep 'Join Now' button below navbar */
    }
}


@media (max-width: 767px) 
{
    
   .logo img {
        max-height: 70px; /* Reduce logo size */
    }

    .topbar h4 {
        font-size: 1rem; /* Scale text down on small screens */
    }
    
    .navbar{
        text-align: center;
    }
    
    .navbar-nav {
        text-align: center;
    }

    .d-inline-flex {
        justify-content: center;
    }
    
    .topbar 
    {
        font-size:9pt;
    }
    
  .font-weight-semi-bold {
        font-weight: 600; /* Ensures it stays semi-bold on small screens */
    }
}

 

  .font-weight-semi-bold {
    font-weight: 600;
}

/* home page */

/* Make the image full width on mobile */
/* FULL WIDTH IMAGE ON MOBILE */
@media (max-width: 576px) {

    /* Remove container padding */
    .container, .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Remove row margins */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Remove column padding */
    .col-lg-5 {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

/* For the text column */
    .col-lg-7 {
        padding-left: 15px !important;   /* small space on left */
        padding-right: 15px !important;  /* small space on right */
        text-align: center !important;   /* center align text */
    }

    /* For headings also center aligned */
    .col-lg-7 h1 {
        text-align: center !important;
    }

    /* For paragraphs */
    .col-lg-7 p {
        text-align: center !important;
    }
    
    /* Make image 100% width */
  .img-wrapper {
    position: relative;      /* allow shifting inside */
    display: inline-block;   /* keeps image inline inside centered column */
}

.about-img {
    width: 100%;
    height: 320px;             /* adjust as needed */
    object-fit: cover;         /* fills container */
    object-position: 30% center; /* shift image slightly right */
    border-radius: 0 !important;
}

.about-section {
        margin-top: 0 !important;
        padding-top: 15px !important; /* adjust as needed */
    }

 .content-safe-area {
        padding-left: 15px !important;   /* small space on left */
        padding-right: 15px !important;  /* small space on right */
        text-align: justify !important;   /* center align text */
        
}




.event-card {
    width: 100%;
    max-width: 350px;   /* Desktop size */
}

.event-card img {
    width: 100% !important;
    height: auto;
    object-fit: cover;
}


.cat-item img {
    width: 100%;
    height: auto;
    object-fit: contain;   /* shows full image */
    background: #fff;       /* prevents black gaps */
}

/* Shorter on desktop */
@media (min-width: 992px) {
    .about-img {
        height: 450px;
    }
}

@media (max-width: 576px) {
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col-lg-5, 
    .col-lg-7 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    
    .just-justfy
{
     text-align: justify !important;   /* center align text */
}

    .guid-img {
    width: 100%;
    height: 500px;             /* adjust as needed */
    object-fit: cover;         /* fills container */
    object-position: 30% center; /* shift image slightly right */
    border-radius: 0 !important;
}

  .contact-text {
        font-size: 14px !important;   /* Increase text size */
    }
    .contact-title {
        font-size: 17px !important;   /* Increase "Email Us" / "Call Us" */
    }

}


/*Why Choose Our School */

@media (max-width: 576px) {

    /* Add small spacing to BOTH content columns */
    .bg-registration .col-lg-5,
    .bg-registration .col-lg-7 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Optional: center-align text on mobile */
    .bg-registration .col-lg-5,
    .bg-registration .col-lg-5 h1,
    .bg-registration .col-lg-5 p {
        text-align: center !important;
    }
}


/* Footer spacing and alignment */
/* Force footer left aligned on mobile */
@media (max-width: 576px) {

    /* Remove all text-center coming from Bootstrap */
    .footer-section * {
        text-align: left !important;
    }

    /* Ensure second footer row also aligns left */
    .footer-bottom *,
    .footer-section .text-center,
    .footer-section .text-md-right,
    .footer-section .text-md-left {
        text-align: left !important;
    }

    /* Prevent unwanted horizontal spacing */
    .footer-section .col-md-6,
    .footer-section .col-md-12,
    .footer-section .col-lg-5,
    .footer-section .col-lg-7 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    
}


/* social media alignment */

 .btn-square {
    width: 45px;                  /* square size */
    height: 45px;
    background-color: transparent;
    border: 1px solid #fff;       /* same as outline */
    border-radius: 0;             /* optional: remove rounded corners */
    display: flex !important;     
    align-items: center !important; 
    justify-content: center !important; 
    padding: 0 !important;       
    line-height: 1 !important;    
    font-size: 18px;              /* adjust icon size */
    color: #fff;
    text-decoration: none;
}

.btn-square i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-block;
}




/* Custom content padding left & right */ 
.content-safe-area {
    margin-left: 70px;    /* adjust this number as needed */
}

/* On mobile, remove margin so layout stays normal */
@media (max-width: 576px) {
    .content-safe-area {
        margin-left: 0 !important;
    }
    
     .content-gap-mobile {
        margin-top: 45px !important;  /* Move content down */
        padding-left: 15px;           /* optional spacing */
        padding-right: 15px;          /* optional spacing */
    }
    
     .mobile-clear-img {
        width: 100% !important;
        height: auto !important;      /* prevents distortion */
        object-fit: cover;            /* keeps image clean */
        border-radius: 0 !important;  /* optional */
        image-rendering: auto;        /* helps clarity */
}


