/* Mega Menu Custom Layout */
.mega-content {
    align-items: flex-start;
    padding: 20px 0;
}

.menu-item-with-icon {
    display: flex;
    gap: 15px;
    flex: 1;
}

.menu-icon-box {
    font-size: 35px;
    color: #555; /* Grayish icon color as per image */
    padding-top: 5px;
}

.menu-heading-link {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: var(--primary-blue) !important;
    margin-bottom: 5px;
}

.menu-desc {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.4;
    max-width: 250px;
}

/* Vertical Divider */
.menu-divider {
    width: 1px;
    height: 100px;
    background: #ddd;
    align-self: center;
}

/* Right Side Links Alignment */
.simple-links {
    flex: 0.8;
}

.simple-links a {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--primary-blue) !important;
    margin-bottom: 8px;
}

.simple-links a:hover {
    text-decoration: underline;
}
/* Curricula Specific Styling */
.curricula-item {
    display: flex;
    flex-direction: column; /* Stack Icon on top of text as per image */
    gap: 15px;
    flex: 1;
    max-width: 400px;
    padding: 10px;
}

.curricula-icon {
    height: 60px;
    display: flex;
    align-items: center;
}

.curricula-title {
    font-weight: 800 !important;
    font-size: 18px !important;
    color: var(--primary-blue) !important;
    text-transform: none !important; /* Image mein lowercase mix hai */
    margin-bottom: 8px;
    display: block;
}

.curricula-desc {
    font-size: 13.5px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Vertical Divider logic */
.menu-divider {
    width: 1px;
    height: 120px;
    background: #e0e0e0;
    align-self: center;
    margin: 0 30px;
}

/* Hover effect */
.curricula-item:hover .curricula-title {
    color: var(--accent-blue) !important;
}

/* --- Fixed Mega Menu Design --- */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%; /* Center alignment starts here */
    transform: translateX(-50%); /* Exact center fix */
    width: 100vw;
    background: #ffffff; /* Clean white background */
    border-bottom: 4px solid var(--accent-blue);
    padding: 40px 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    cursor: default;
    z-index: 9999;
}

.mega-content {
    display: flex;
    justify-content: center;
    gap: 25px; /* Cards ke beech ka gap */
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Card Styles for School Levels --- */
.level-card {
    flex: 1;
    max-width: 280px;
    text-align: left;
}

.level-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.level-title {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: var(--primary-blue) !important;
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
}

.level-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}
/* Mega Menu Slide Fix: Isse menu bilkul center mein rahega bina move huye */
.navbar .nav-item { position: static; } /* Taaki mega-menu window ke hisab se center ho */

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* Puri width lega */
    background: #ffffff;
    border-bottom: 4px solid var(--accent-blue);
    padding: 40px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 9999;
}

/* Student Life Specific Grid */
.student-life-grid {
    display: grid !important;
    grid-template-columns: 3fr 1fr; /* Left side cards, Right side list */
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.cards-wrapper {
    display: flex;
    gap: 20px;
}

.side-links {
    border-left: 1px solid #eee;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.side-links a {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--primary-blue) !important;
    margin-bottom: 12px;
    padding: 0 !important;
}

/* Common Card Styling (If not added before) */
.level-card { flex: 1; }
.level-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}
/* Admission Grid Specifics */
.admission-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1.2fr 1.2fr 0.8fr; /* 4 columns as per image */
    gap: 20px;
    align-items: start;
}

.icon-item {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 10px;
    align-content: start;
}

.spacing-v {
    grid-column: span 2;
    height: 30px; /* Do rows ke beech ka gap */
}

.menu-icon-box {
    font-size: 28px;
    color: #444;
    padding-top: 5px;
}

.menu-heading-link {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #222 !important;
    display: block;
    margin-bottom: 3px;
    text-transform: none !important;
}

.menu-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    margin: 0;
}

/* Right side list links */
.simple-side-links {
    padding-left: 20px;
}

.simple-side-links a {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #222 !important;
    margin-bottom: 15px;
    padding: 0 !important;
}

.simple-side-links a:hover {
    color: var(--accent-blue) !important;
}

/* --- Resources Layout Fix --- */
.resources-layout {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.resources-main {
    display: flex;
    gap: 40px; /* Icons ke beech ka gap */
    flex: 1;
}

.res-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.res-item i {
    font-size: 32px;
    color: #444;
}

.res-item span {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.res-item:hover i, .res-item:hover span {
    color: var(--accent-blue);
}

/* Right Side Links */
.resources-side {
    border-left: 1px solid #ddd;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resources-side a {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #222 !important;
    padding: 0 !important;
    text-decoration: none;
}

.resources-side a:hover {
    color: var(--accent-blue) !important;
}

/* Slide/Shake Prevention Fix */
.mega-menu {
    left: 0 !important;
    transform: none !important;
    width: 100vw !important;
    transition: none !important; /* Animations hata di hain taaki jump na ho */
}
/* Header Layout Fix */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-section {
    display: flex;
    align-items: center; /* Vertical alignment center */
    gap: 15px; /* Logo aur naam ke beech ka gap */
}

.logo img {
    height: 60px; /* Logo size control */
    width: auto;
}

/* Stylish School Name */
.school-name {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif; /* Modern Font */
    letter-spacing: -0.5px;
    
    /* Gradient Color Effect */
    background: linear-gradient(45deg, #004a99, #00aeef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Subtle Shadow for depth */
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.1));
    text-transform: uppercase;
}

/* Search and Links adjustment */
.top-right {
    display: flex;
    flex-direction: row; /* Column se Row kiya */
    align-items: center; /* Sabko vertically center karega */
    gap: 25px; /* Search box aur Links ke beech ka gap */
}

.search-box {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding-left: 8px;
    font-size: 13px;
    width: 150px; /* Width thodi kam rakhi hai taaki space bache */
}

.top-links {
    display: flex;
    flex-direction: row; /* Links bhi ek line mein rahenge */
    gap: 15px;
    align-items: center;
}

.top-links a {
    text-decoration: none;
    font-size: 13.5px;
    color: #333;
    font-weight: 600;
    white-space: nowrap; /* Text ko wrap hone se rokega */
}

.btn-tour {
    background: #004a99;
    color: white !important;
    padding: 8px 18px;
    border-radius: 5px;
    transition: 0.3s;
}
/* Navigation List Styling */
.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

/* Link Styling */
.nav-link {
    text-decoration: none;
    color: #333; /* Default black color */
    font-weight: 600;
    font-size: 15px;
    padding: 10px 5px;
    position: relative;
    transition: color 0.3s ease;
    display: block;
}

/* Hover Highlight Effect */
.nav-item:hover .nav-link {
    color: #004a99; /* Cursor jane par Blue color */
}

/* Bottom line effect on hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #00aeef; /* Light blue underline */
    transition: width 0.3s ease;
}

.nav-item:hover .nav-link::after {
    width: 100%;
}

/* Donate Button Special Style (Optional) */
.donate-btn {
    background: #ffcc00; /* Yellow background */
    padding: 8px 15px !important;
    border-radius: 5px;
    color: #000 !important;
}

.donate-btn::after {
    display: none; /* Donate button par underline nahi chahiye */
}

.donate-btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
}

/* Mega Menu Display on Hover */
.nav-item:hover .mega-menu {
    display: block !important;
}