/* ========================================
           ADDITIONAL FIXES FOR RESPONSIVE & JUSTIFIED CONTENT
        ======================================== */
        
        /* Fix for all containers to be properly centered */
        .container {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* Section Header Styles */
        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .section-tag {
            display: inline-block;
            background: rgba(11, 43, 94, 0.1);
            padding: 8px 24px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            color: #1A4A8B;
            margin-bottom: 15px;
            letter-spacing: 1px;
        }
        
        .section-title {
            font-size: 38px;
            font-weight: 700;
            color: #0B2B5E;
            margin-bottom: 15px;
            line-height: 1.3;
        }
        
       
        
        .section-subtitle {
            font-size: 16px;
            color: #666;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        /* ========================================
           ENTRANCE EXAM ACCEPTANCE SECTION
        ======================================== */
        .exam-acceptance-section {
            padding: 80px 0;
            background: #f8f9fc;
            width: 100%;
            overflow-x: hidden;
        }
        
        .acceptance-card {
            background: #fff;
            border-radius: 20px;
            padding: 35px;
            height: 100%;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }
        
        .acceptance-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        }
        
        .acceptance-card h4 {
            font-size: 22px;
            font-weight: 700;
            color: #0B2B5E;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 3px solid #687EFF;
            display: inline-block;
        }
        
        .acceptance-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .acceptance-list li {
            padding: 12px 0;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            color: #444;
            line-height: 1.5;
            font-size: 15px;
            text-align: left;
            justify-content: flex-start;
        }
        
        .acceptance-list li:last-child {
            border-bottom: none;
        }
        
        .acceptance-list li::before {
            content: "✓";
            color: #687EFF;
            font-weight: bold;
            font-size: 18px;
            flex-shrink: 0;
        }
        
        .acceptance-note {
            background: #e8f0fe;
            border-radius: 12px;
            padding: 20px 25px;
            margin-top: 30px;
            text-align: center;
            border-left: 4px solid #687EFF;
        }
        
        .acceptance-note p {
            margin: 0;
            color: #0B2B5E;
            font-weight: 500;
            text-align: center;
        }
        
        /* ========================================
           ADMISSION GUIDANCE SECTION
        ======================================== */
        .admission-guidance-section {
            padding: 80px 0;
            background: #fff;
            width: 100%;
            overflow-x: hidden;
        }
        
        .guidance-card {
            background: linear-gradient(135deg, #0B2B5E 0%, #1A4A8B 100%);
            border-radius: 24px;
            padding: 40px;
            color: #fff;
            height: 100%;
            position: relative;
            overflow: hidden;
        }
        
        .guidance-card h3 {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 25px;
            color: #687EFF;
        }
        
        .guidance-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 25px;
            text-align: left;
            justify-content: flex-start;
        }
        
        .guidance-icon {
            width: 50px;
            height: 50px;
            background: rgba(255,180,71,0.2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .guidance-icon span {
            font-size: 24px;
            color: #687EFF;
        }
        
        .guidance-content h4 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #fff;
            text-align: left;
        }
        
        .guidance-content p {
            font-size: 14px;
            color: rgba(255,255,255,0.85);
            line-height: 1.5;
            margin: 0;
            text-align: left;
        }
        
        .journey-card {
            background: #f8f9fc;
            border-radius: 24px;
            padding: 40px;
            height: 100%;
            border: 1px solid #eee;
        }
        
        .journey-card h2 {
            font-size: 32px;
            font-weight: 700;
            color: #0B2B5E;
            margin-bottom: 20px;
            line-height: 1.3;
        }
        
        .journey-card h2 span {
            color: #687EFF;
        }
        
        .journey-card p {
            color: #555;
            line-height: 1.7;
            margin-bottom: 30px;
            font-size: 15px;
            text-align: left;
        }
        
        .btn-journey {
            background: #687EFF;
            color: #0B2B5E;
            padding: 14px 35px;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        
        .btn-journey:hover {
            background: #ff9f1a;
            color: #0B2B5E;
            transform: translateY(-2px);
        }
        
        .apply-box {
            background: #e8f0fe;
            border-radius: 12px;
            padding: 20px;
            margin: 25px 0;
            text-align: left;
        }
        
        .apply-box p {
            margin: 0;
            font-weight: 500;
            text-align: left;
        }
        
        .apply-box ul {
            margin-top: 10px;
            padding-left: 20px;
            text-align: left;
        }
        
        .apply-box ul li {
            text-align: left;
            margin-bottom: 5px;
        }
        
        /* FAQ Section */
        .faq-section {
            padding: 80px 0;
            background: #f8f9fc;
            width: 100%;
            overflow-x: hidden;
        }

        .faq-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
        }

        .faq-card {
            background: #fff;
            border-radius: 16px;
            padding: 25px;
            transition: all 0.3s ease;
            border: 1px solid #eee;
            cursor: pointer;
            text-align: left;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .faq-card:hover {
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            border-color: #687EFF;
        }

        .faq-question {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 700;
            font-size: 18px;
            color: #0B2B5E;
            margin-bottom: 0;
            text-align: left;
        }

        .faq-question .faq-icon {
            font-size: 24px;
            color: #687EFF;
            transition: transform 0.3s ease;
            display: inline-block;
        }

        .faq-card.active .faq-question .faq-icon {
            transform: rotate(45deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
            color: #666;
            line-height: 1.6;
            margin-top: 0;
            font-size: 14px;
            text-align: left;
        }

        .faq-card.active .faq-answer {
            max-height: 300px;
            margin-top: 15px;
        }
        
        /* ========================================
           EQUAL HEIGHT FIXES FOR ALL SECTIONS
        ======================================== */
        
        /* Fix for row and column spacing - EQUAL HEIGHT */
        .row {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -15px;
        }
        
        .row [class*="col-"] {
            display: flex;
            flex-direction: column;
        }
        
        .col-xl-3, .col-lg-6, .col-md-6, .col-xl-4, .col-lg-4, .col-xl-6, .col-lg-12, .col-12 {
            padding: 0 15px;
        }
        
        /* Category Two Section - Equal Height */
        .category-two .row [class*="col-"] {
            display: flex;
            flex-direction: column;
        }

        .category-two__single {
            display: flex;
            flex-direction: column;
            background-color: #687EFF;
            height: 100%;
            width: 100%;
            transition: all 0.3s ease;
        }

        .category-two__single-inner {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .category-two__text {
            flex: 1;
            margin-bottom: 0;
        }
        
        /* Events Two Section - Equal Height */
        .events-two .row [class*="col-"] {
            display: flex;
            flex-direction: column;
        }
        
        .events-two__single {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .events-two__content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .events-two__content p {
            flex: 1;
        }
        
        /* Blog Four Section - Equal Height */
        .blog-four .row [class*="col-"] {
            display: flex;
            flex-direction: column;
        }
        
        .blog-four__single {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .blog-four__content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        /* Courses Three Section - Equal Height */
        .courses-three .row [class*="col-"] {
            display: flex;
            flex-direction: column;
        }
        
        .courses-three__content {
            height: 100%;
            display: flex;
            flex-direction: column;
            background: #fff;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }
        
        .courses-three__content:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        }
        
        .courses-three__content p {
            flex: 1;
        }
        
        /* Banner Carousel Items - Equal Height */
        .banner-two__carousel .swiper-slide {
            height: auto;
        }
        
        .courses-three__single {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .courses-three__content {
            flex: 1;
        }
        
        /* ========================================
           TEXT JUSTIFICATION
        ======================================== */
        
        /* Ensure all text is properly justified where needed */
        p, .category-two__text, .courses-three__text, .events-two__content p, .blog-four__text, .banner-two__text, .guidance-content p, .journey-card p {
            text-align: justify;
            text-justify: inter-word;
        }
        
        /* Headers remain center/left as needed */
        h1, h2, h3, h4, .section-title, .category-two__title, .courses-three__title {
            text-align: left;
        }
        
        .text-center h1, .text-center h2, .text-center h3, .text-center .section-title {
            text-align: center;
        }
        
        /* Fix for category cards inner */
        .category-two__single-inner {
            text-align: center;
        }
        
        .category-two__title {
            text-align: center;
        }
        
        /* ========================================
           RESPONSIVE BREAKPOINTS
        ======================================== */
        @media (max-width: 1200px) {
            .section-title {
                font-size: 32px;
            }
            .journey-card h2 {
                font-size: 28px;
            }
        }
        
        @media (max-width: 992px) {
            .exam-acceptance-section,
            .admission-guidance-section,
            .faq-section {
                padding: 60px 0;
            }
            
            .faq-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .guidance-card,
            .journey-card {
                margin-bottom: 25px;
            }
            
            .acceptance-card {
                margin-bottom: 20px;
            }
            
            .section-title {
                font-size: 28px;
            }
            
            .journey-card h2 {
                font-size: 26px;
            }
        }
        
        @media (max-width: 768px) {
            .exam-acceptance-section,
            .admission-guidance-section,
            .faq-section {
                padding: 50px 0;
            }
            
            .section-title {
                font-size: 24px;
            }
            
            .section-subtitle {
                font-size: 14px;
            }
            
            .acceptance-card {
                padding: 25px;
            }
            
            .acceptance-card h4 {
                font-size: 18px;
            }
            
            .acceptance-list li {
                font-size: 13px;
                padding: 10px 0;
            }
            
            .guidance-card {
                padding: 25px;
            }
            
            .guidance-card h3 {
                font-size: 20px;
            }
            
            .guidance-content h4 {
                font-size: 16px;
            }
            
            .guidance-content p {
                font-size: 13px;
            }
            
            .journey-card {
                padding: 25px;
            }
            
            .journey-card h2 {
                font-size: 22px;
            }
            
            .journey-card p {
                font-size: 14px;
            }
            
            .btn-journey {
                padding: 10px 25px;
                font-size: 14px;
            }
            
            .faq-question {
                font-size: 15px;
            }
            
            .faq-card {
                padding: 18px;
            }
            
            .faq-answer {
                font-size: 13px;
            }
            
            .acceptance-note p {
                font-size: 13px;
            }
            
            .courses-three__content {
                padding: 20px;
            }
        }
        
        @media (max-width: 576px) {
            .guidance-item {
                flex-direction: column;
                gap: 10px;
            }
            
            .guidance-icon {
                width: 40px;
                height: 40px;
            }
            
            .guidance-icon span {
                font-size: 18px;
            }
            
            .acceptance-list li {
                flex-wrap: wrap;
            }
        }
/* Desktop/Laptop (992px and above) - Keep negative margin */
@media (min-width: 992px) {
    .category-two .container,
    .admission-guidance-section .container,
    .events-two .container,
    .faq-section .container {
        margin-top: -50px !important;
        margin-top: -70px !important;
    }
}

/* Tablet (768px to 991px) - Reduce or remove negative margin */
@media (min-width: 768px) and (max-width: 991px) {
    .category-two .container,
    .blog-four .container,
    .admission-guidance-section .container,
    .events-two .container,
    .faq-section .container {
        margin-top: 0 !important;  /* No negative margin on tablet */
    }
}

/* Mobile (767px and below) - No negative margin at all */
@media (max-width: 767px) {
    .category-two .container,
    .blog-four .container,
    .admission-guidance-section .container,
    .events-two .container,
    .faq-section .container {
        margin-top: 0 !important;  /* No negative margin on phone */
        padding-top: 30px;  /* Add some spacing instead */
    }
}

@media (max-width: 767px) {
    .blog-four .container {
        margin-top: -30px !important;  /* No negative margin on phone */
        padding-top: 30px;  /* Add some spacing instead */
    }
}

@media (max-width: 767px) {
    .admission-guidance-section .container {
        margin-top: -70px !important;  /* No negative margin on phone */
        padding-top: 30px;  /* Add some spacing instead */
    }
}


@media (max-width: 767px) {
    .courses-three .container {
        margin-top: 30px !important;  /* No negative margin on phone */
    }
}

@media (max-width: 767px) {
    .category-two .container {
        margin-top: -30px !important;  /* No negative margin on phone */
        padding-top: 30px;  /* Add some spacing instead */
    }
}

@media (max-width: 767px) {
    .events-two .container {
        margin-top: -30px !important;  /* No negative margin on phone */
        padding-top: 30px;  /* Add some spacing instead */
    }
}

@media (max-width: 767px) {
    .faq-section .container {
        margin-top: -70px !important;  /* No negative margin on phone */
        padding-top: 30px;  /* Add some spacing instead */
    }
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start; /* 🔥 IMPORTANT FIX */
}

.faq-card {
    height: auto;
}
/* ===== MOBILE FIRST (default) ===== */
.faq-grid {
    display: block; /* stack in mobile */
}

.faq-card {
    width: 100%;
    margin-bottom: 15px;
}

/* ===== DESKTOP / LARGE SCREEN ONLY ===== */
@media (min-width: 768px) {

    .faq-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: start; /* 🔥 prevents equal height stretching */
    }

    .faq-card {
        margin-bottom: 0;
    }
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-card.active .faq-answer {
    max-height: 200px; /* adjust if needed */
}


/* NIOS Section Styling */
.blog-four__single {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.blog-four__single:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.blog-four__content {
    padding: 30px;
}

/* Badge Styling */
.nios-badge {
    margin-bottom: 20px;
}

.badge-10th, .badge-12th {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-10th {
    background: linear-gradient(135deg, #687EFF, #FF8C00);
    color: #fff;
}

.badge-12th {
    background: linear-gradient(135deg, #0B2B5E, #1a4a8a);
    color: #fff;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 12px;
    background: #f8f9fc;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #687EFF;
}

.info-icon {
    font-size: 24px;
}

.info-text {
    flex: 1;
    line-height: 1.5;
    color: #555;
}

/* Rules List */
.rules-list {
    margin: 20px 0;
}

.rules-list h4 {
    font-size: 18px;
    color: #0B2B5E;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.rules-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.rules-list li i {
    color: #687EFF;
    font-size: 14px;
    width: 20px;
}

/* Subjects Box */
.subjects-box {
    margin: 25px 0;
    text-align: center;
}

.subjects-box h4 {
    font-size: 18px;
    color: #0B2B5E;
    margin-bottom: 20px;
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 8px;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;  /* Increased gap between spans */
    justify-content: center;
    align-items: center;
    max-width: 800px;  /* Limit width for better centering */
    margin: 0 auto;  /* Center the entire container */
}

.subject-tags span {
    background: #f0f4f9;
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 13px;
    color: #0B2B5E;
    transition: all 0.3s ease;
    width: 180px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;  /* Prevent shrinking */
}

.subject-tags span:hover {
    background: #687EFF;
    color: #fff;
    transform: translateY(-2px);
}

/* Desktop - 2 spans in one row with gap between them */
@media (min-width: 769px) {
    .subject-tags {
        column-gap: 30px;  /* Gap between two spans */
    }
    
    .subject-tags span {
        width: 180px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .subject-tags {
        column-gap: 20px;
        justify-content: center;
    }
    
    .subject-tags span {
        width: 160px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Mobile - One by one (stack vertically) */
@media (max-width: 480px) {
    .subject-tags {
        display: flex;
        flex-direction: column;  /* Stack vertically */
        align-items: center;
        gap: 12px;  /* Vertical gap between spans */
        column-gap: 0;
    }
    
    .subject-tags span {
        width: 180px;
        font-size: 13px;
        padding: 8px 12px;
    }
}
/* Combinations Box */
.combinations-box {
    margin: 25px 0 0;
}

.combinations-box h4 {
    font-size: 18px;
    color: #0B2B5E;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.combo-card {
    background: #fff8f0;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #ffe0b5;
}

.combo-card strong {
    display: block;
    color: #0B2B5E;
    margin-bottom: 8px;
    font-size: 14px;
}

.combo-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-four__content {
        padding: 20px;
    }
    
    .subject-tags span {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .combo-card {
        padding: 10px 12px;
    }
    
    .rules-list li {
        font-size: 14px;
    }
    
    .info-text {
        font-size: 14px;
    }
}
