/* ================================= */
/* HEADER CSS - All Header Related Styles */
/* ================================= */
/* Moved from custom.css on 2025-10-03 */
/* ================================= */

/* ================================= */
/* PW Style Header CSS */
/* ================================= */
/* Added: 2025-10-03 */
/* Purpose: PW Style Header with Mega Menu */
/* ================================= */

.pw-style-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pw-style-header .navbar {
    padding: 0.5rem 0;
}

.pw-style-header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Logo Styles - Keep Original */
.header-logo {
    height: 40px;
    width: auto;
}

.logo-link {
    text-decoration: none;
}

.logo-link:hover {
    text-decoration: none;
}

/* Navigation Center */
.nav-center {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-center .nav-link {
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    border: none;
    background: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.nav-center .nav-link:hover {
    color: var(--indigo);
}

/* All Courses Dropdown */
.nav-center .nav-link.dropdown-toggle{padding: 0.8rem 1.2rem !important}
.dropdown-toggle {
    position: relative;
    padding: 0.5rem 1rem;
    border: 2px solid var(--indigo);
    border-radius: 6px;
    color: var(--indigo) !important;
    background: #fff;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(59, 95, 214, 0.1);
}

.dropdown-toggle:hover {
    background: var(--indigo);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 0 0 2px rgba(59, 95, 214, 0.2);
    transform: translateY(-1px);
}

/* Bootstrap dropdown arrow styling */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    font-size: 12px;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    vertical-align: 0.255em;
    transition: transform 0.3s ease;
}

/* Rotate arrow on hover */
.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    width: 100%;
    max-width: 1200px;
    left: 0;
    right: 0;
    margin: 0 auto;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    position: absolute;
    top: 100%;
    z-index: 1000;
    background: #fff;
    border: 1px solid rgba(59, 95, 214, 0.1);
}

/* Hover functionality */
.nav-item.dropdown:hover .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
   
}
    
.nav-item.dropdown {
    position: relative;
}

/* Ensure dropdown stays open when hovering over mega menu */
.mega-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Additional hover fix for better compatibility */
.nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
}

.nav-item.dropdown .dropdown-menu {
    display: none;
    min-width: 57rem;
}

.mega-menu-content {
    padding: 0.5rem 0;
}

.mega-menu .container {
    max-width: 100%;
    padding: 0;
}

.mega-menu .row {
    margin: 0;
    gap: 2rem;
}

.mega-menu .col-md-6 {
    padding: 0;
    flex: 1;
}

.menu-title {
    font-weight: 700;
    color: var(--indigo);
    margin-bottom: 1rem;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--indigo);
    padding-bottom: 0.5rem;
    padding-right: 2rem;
    display: block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-title:hover {
    background: rgba(59, 95, 214, 0.05);
    border-radius: 6px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    margin: -0.5rem -0.75rem 1rem -0.75rem;
}

/* Highlight first menu title by default */
.mega-menu .menu-title:first-of-type {
    background: rgba(59, 95, 214, 0.1);
    border-radius: 6px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    margin: -0.5rem -0.75rem 1rem -0.75rem;
    color: var(--indigo);
    font-weight: 800;
}

.mega-menu .menu-title:first-of-type::after {
    content: '×';
    transform: translateY(-50%) rotate(45deg);
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease;
    display: none !important;
}

.menu-title::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    color: var(--indigo);
    transition: transform 0.3s ease;
}

.menu-title:hover::after {
    transform: translateY(-50%) rotate(45deg);
}

.menu-title:hover + .menu-list {
    max-height: 500px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.menu-list li {
    margin-bottom: 0.75rem;
}

.menu-list a {
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
}

.menu-list a:hover {
    color: var(--indigo);
    background: rgba(59, 95, 214, 0.05);
    text-decoration: none;
    transform: translateX(5px);
}

.menu-list a i {
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.menu-list a:hover i {
    opacity: 1;
    transform: translateX(3px);
}

/* Force hide all menu lists by default */
.mega-menu .menu-list {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Show first menu list by default (Competitive Exams) - Only when no other menu is hovered */
.mega-menu .menu-list:first-of-type {
    display: block !important;
    max-height: 500px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
}

/* Hide first menu when hovering over any other menu title */
.mega-menu .menu-title:nth-child(2):hover ~ .menu-list:first-of-type,
.mega-menu .menu-title:nth-child(3):hover ~ .menu-list:first-of-type,
.mega-menu .menu-title:nth-child(4):hover ~ .menu-list:first-of-type,
.mega-menu .menu-title:nth-child(5):hover ~ .menu-list:first-of-type,
.mega-menu .menu-title:nth-child(6):hover ~ .menu-list:first-of-type,
.mega-menu .menu-title:nth-child(7):hover ~ .menu-list:first-of-type {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Show menu list only on title hover */
.mega-menu .menu-title:hover + .menu-list {
    display: block !important;
    max-height: 500px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
}

/* Additional force hide for all ul elements in mega menu */
.mega-menu ul {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Show ul only on title hover */
.mega-menu .menu-title:hover + ul {
    display: block !important;
    max-height: 500px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
}

/* Force hide all li elements in mega menu by default */
.mega-menu .menu-list li {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Show first menu list li elements by default - Only when no other menu is hovered */
.mega-menu .menu-list:first-of-type li {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

/* Hide first menu li elements when any other menu title is hovered */
.mega-menu .menu-title:nth-child(2):hover ~ .menu-list:first-of-type li,
.mega-menu .menu-title:nth-child(3):hover ~ .menu-list:first-of-type li,
.mega-menu .menu-title:nth-child(4):hover ~ .menu-list:first-of-type li,
.mega-menu .menu-title:nth-child(5):hover ~ .menu-list:first-of-type li,
.mega-menu .menu-title:nth-child(6):hover ~ .menu-list:first-of-type li,
.mega-menu .menu-title:nth-child(7):hover ~ .menu-list:first-of-type li {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Show li elements only when parent ul is visible (for other menus) */
.mega-menu .menu-title:hover + .menu-list li {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

/* ================================= */
/* MODERN MEGA MENU DESIGN */
/* ================================= */

.mega-menu-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
  
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Left Panel - Menu Categories */
.menu-categories {
    width: 300px;
    background: #f8f9fd;
    border-right: 1px solid #e5e7eb;
    padding: 0;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover,
.category-item.active {
    background: var(--indigo);
    color: #fff;
}

.category-item:hover .fas,
.category-item.active .fas {
    color: #fff;
    transform: translateX(3px);
}

.category-name {
    font-weight: 600;
    font-size: 15px;
    flex: 1;
}

.category-item .fas {
    color: var(--indigo);
    font-size: 12px;
    transition: all 0.3s ease;
}

/* Right Panel - Menu Content */
.menu-content {
    flex: 1;
    padding: 30px;
    background: #fff;
    position: relative;
}

.content-panel {
    display: none;
    opacity: 0;
    /* position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.3s ease;
}

.content-panel.active {
    display: block;
    opacity: 1;
    z-index: 2;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 100%;
}

.content-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    min-height: 80px;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 95, 214, 0.15);
    border-color: var(--indigo);
    text-decoration: none;
    color: inherit;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--indigo), var(--blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(59, 95, 214, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.card-text {
    font-weight: 700;
    color: #374151;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mega-menu-container {
        flex-direction: column;
        max-width: 95vw;
    }
    
    .menu-categories {
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .content-card {
        padding: 18px;
        min-height: 70px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .card-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .content-card {
        padding: 15px;
        min-height: 60px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .card-text {
        font-size: 14px;
    }
}

/* ================================= */
/* END MODERN MEGA MENU DESIGN */
/* ================================= */

/* ================================= */
/* END PW Style Header CSS */
/* ================================= */

/* ================================= */
/* Original Header Styles */
/* ================================= */

.header-fixed{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-fixed .navbar{
    background: #fff;
}

/* Header Styles */
#header {
    background: #fff;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.5s ease;
    font-family: "Epilogue", sans-serif;
}

#header.header-fixed{
     background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 5px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width:1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
}

.nav-links a:hover {
    color: #0273b0;
}

.contact-btn {
    background: #0273b0;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.contact-btn:hover {
    background: #1e4080;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ================================= */
/* Header Responsive Styles */
/* ================================= */

/* Responsive */
@media (max-width: 768px) {
    .nav-center {
        display: none;
    }
    
    .mega-menu {
        width: 95vw;
        left: 2.5vw;
        right: 2.5vw;
        margin: 0.5rem auto 0;
        padding: 1.5rem;
    }
    
    .mega-menu .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mega-menu .col-md-6 {
        width: 100%;
    }
    
    .menu-title {
        font-size: 14px;
        margin-bottom: 0.75rem;
    }
    
    .menu-list a {
        font-size: 14px;
        padding: 0.4rem 0.5rem;
    }
    
    /* Mobile: Show mega menu on click instead of hover */
    .nav-item.dropdown:hover .mega-menu {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width:600px){
    .nav-links{gap: 2rem}
}

@media (max-width: 480px) {
    .nav-links { gap: 1.6rem;}
}