﻿  .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;
}