/* File: resources/assets/css/service.css */

/* ========================================
   SERVICE PAGES CUSTOM STYLES
   For NIOS 10th & 12th Service Pages
   ======================================== */

/* ========================================
   COLOR VARIABLES
   ======================================== */
:root {
    --primary-blue: #0B2B5E;
    --primary-dark: #1A4A8B;
    --accent-orange: #687EFF;
    --accent-dark: #ff9f1a;
    --text-dark: #333;
    --text-light: #555;
    --text-white: #fff;
    --bg-light: #f8f9fc;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-accent {
    color: var(--accent-orange);
}

.bg-accent {
    background-color: var(--accent-orange);
}

.text-primary {
    color: var(--primary-blue);
}

.bg-primary {
    background-color: var(--primary-blue);
}

/* ========================================
   SECTION TITLE BORDER
   ======================================== */
.section-title-border {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-orange);
    padding-left: 15px;
}

/* ========================================
   COURSE CONTENT SECTION
   ======================================== */
.course-content-section {
    padding: 30px 0;
    background: var(--bg-white);
}

/* Course Overview */
.course-overview {
    margin-bottom: 40px;
}

.course-overview__title {
    color: var(--primary-blue);
    font-size: 32px;
    margin-bottom: 20px;
}

.course-overview__text {
    color: var(--text-light);
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 15px;
}

/* Eligibility Section */
.eligibility-section {
    margin-bottom: 40px;
}

/* Subjects Section */
.subjects-section {
    margin-bottom: 40px;
}

.subjects-section__subtitle {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 10px;
}

/* Vocational Section - Improved */
.vocational-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.vocational-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.vocational-section__icon {
    font-size: 32px;
}

.vocational-section__title {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 0;
}

.vocational-section__title span {
    font-size: 16px;
    color: var(--accent-orange);
    font-weight: normal;
}

.vocational-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.vocational-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.vocational-card__icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.vocational-card__title {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 10px;
}

.vocational-card__text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Exam Section */
.exam-section {
    margin-bottom: 40px;
}

.exam-section__subtitle {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 10px;
}

/* TMA Section */
.tma-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    padding: 25px;
    border-radius: 16px;
    color: var(--text-white);
    margin-bottom: 40px;
}

.tma-section__title {
    color: var(--accent-orange);
    font-size: 24px;
    margin-bottom: 15px;
}

.tma-section__text {
    text-align: justify;
    line-height: 1.7;
}

/* ========================================
   LIST STYLES - Fixed Alignment
   ======================================== */
.check-list,
.bullet-list,
.arrow-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li,
.bullet-list li,
.arrow-list li {
    margin-bottom: 12px;
    color:white;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.check-mark,
.bullet-mark,
.arrow-mark {
    color: var(--accent-orange);
    margin-right: 12px;
    font-weight: bold;
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
}

/* Documents List - Improved */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.document-number {
    width: 32px;
    height: 32px;
    background: rgba(255, 180, 71, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.document-text {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   SIDEBAR FORM STYLES
   ======================================== */
.contact-form-box {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.contact-form-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-form-box__title {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-control:focus {
    border-color: var(--accent-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 180, 71, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--accent-orange);
    color:white;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Documents Box */
.documents-box {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.documents-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent-orange);
}

.documents-box__title {
    color: var(--primary-blue);
    font-size: 20px;
    margin-bottom: 15px;
}

/* ========================================
   WHY CHOOSE CARDS SECTION - Centered
   ======================================== */
.why-choose-section {
    padding: 10px 0;
    background: var(--bg-light);
}

.why-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.why-card__icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 180, 71, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.why-card:hover .why-card__icon-wrapper {
    background: var(--accent-orange);
}

.why-card__icon-wrapper span {
    font-size: 35px;
    color: var(--accent-orange);
    transition: all 0.3s ease;
}

.why-card:hover .why-card__icon-wrapper span {
    color: var(--text-white);
}

.why-card__title {
    color: var(--primary-blue);
    font-size: 20px;
    margin-bottom: 15px;
}

.why-card__text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Flex equal height for cards */
.d-flex {
    display: flex;
}

/* ========================================
   OUR SERVICES CARDS SECTION
   ======================================== */
.our-services-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.service-card {
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card__icon {
    margin-bottom: 20px;
}

.service-card__icon span {
    font-size: 50px;
}

.service-card__title {
    font-size: 28px;
    margin-bottom: 15px;
}

.service-card__text {
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card__list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.service-card__list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-card__list .check-mark {
    margin-right: 10px;
}

/* Card - Blue (NIOS 10th) */
.service-card--blue {
background-color: #687EFF;
    color:white;
}

.service-card--blue .service-card__title {
    color: var(--accent-orange);
}

.service-card--blue .service-card__list .check-mark {
    color: var(--accent-orange);
}

.service-card--blue .btn-service--orange {
    background: var(--accent-orange);
    color: var(--primary-blue);
}

/* Card - Orange (NIOS 12th) */
.service-card--orange {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-dark) 100%);
    color: var(--primary-blue);
}

.service-card--orange .service-card__title {
    color: var(--primary-blue);
}

.service-card--orange .service-card__list .check-mark {
    color: var(--primary-blue);
}

.service-card--orange .btn-service--blue {
    background: var(--primary-blue);
    color: var(--text-white);
}

/* Service Buttons */
.btn-service {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ADMISSION PROCESS SECTION
   ======================================== */
.admission-process-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.process-step {
    text-align: center;
}

.process-step__number {
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 35px;
    font-weight: bold;
    color: var(--accent-orange);
    transition: all 0.3s ease;
}

.process-step:hover .process-step__number {
    background: var(--accent-orange);
    color: var(--text-white);
    transform: scale(1.05);
}

.process-step__title {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 10px;
}

.process-step__text {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
}

.cta-section__title {
    color: var(--text-white);
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-section__text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--primary-blue);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (max-width: 1200px) {
    .course-content-section { padding: 30px 0; }
    .why-card__title { font-size: 18px; }
    .service-card__title { font-size: 24px; }
    .cta-section__title { font-size: 28px; }
}

@media (max-width: 992px) {
    .course-content-section,
    .why-choose-section,
    .our-services-section,
    .admission-process-section,
    .cta-section { padding: 50px 0; }
    .contact-form-box { margin-top: 30px; }
    .process-step { margin-bottom: 30px; }
    .why-card { margin-bottom: 20px; }
    .service-card { margin-bottom: 20px; }
}

@media (max-width: 768px) {
    .course-content-section,
    .why-choose-section,
    .our-services-section,
    .admission-process-section,
    .cta-section { padding: 20px 0; }
    .course-overview__title { font-size: 28px; }
    .section-title-border { font-size: 22px; }
    .vocational-section__title { font-size: 20px; }
    .vocational-card { margin-bottom: 15px; }
    .why-card { padding: 20px; }
    .why-card__icon-wrapper { width: 60px; height: 60px; }
    .why-card__icon-wrapper span { font-size: 28px; }
    .service-card { padding: 25px; }
    .service-card__title { font-size: 22px; }
    .process-step__number { width: 60px; height: 60px; font-size: 28px; }
    .cta-section__title { font-size: 24px; }
    .contact-form-box { padding: 20px; }
    .documents-box { padding: 20px; }
}

@media (max-width: 576px) {
    .course-overview__title { font-size: 24px; }
    .section-title-border { font-size: 20px; }
    .vocational-section { padding: 20px; }
    .vocational-section__header { flex-direction: column; text-align: center; }
    .why-card { padding: 15px; }
    .why-card__icon-wrapper { width: 50px; height: 50px; }
    .why-card__icon-wrapper span { font-size: 24px; }
    .service-card__title { font-size: 20px; }
    .service-card__text { font-size: 14px; }
    .service-card__list li { font-size: 13px; }
    .process-step__title { font-size: 16px; }
    .process-step__text { font-size: 12px; }
    .cta-section__title { font-size: 20px; }
    .btn-cta { padding: 10px 25px; font-size: 14px; }
}
/* Default */
#sidebar {
    position: relative;
    width: 100%;
}

/* Fixed state */
#sidebar.fixed {
    position: fixed;
    top: 120px;
    width: var(--sidebar-width);
}

/* Bottom state */
#sidebar.bottom {
    position: absolute;
    bottom: 0;
    top: auto;
    width: var(--sidebar-width);
}

/* Mobile fix */
@media (max-width: 991px) {
    #sidebar,
    #sidebar.fixed,
    #sidebar.bottom {
        position: relative !important;
        width: 100% !important;
    }
}

/* Prevent layout issues */
.course-content-section .row {
    position: relative;
}


/* ========================================
   IMPROVED SUBJECTS SECTION STYLES - FULLY RESPONSIVE
   ======================================== */

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.subject-group-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.subject-group-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-orange);
}

.subject-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-orange);
}

.subject-group-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.subject-group-title {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.subject-group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subject-tag {
    background: rgba(255, 180, 71, 0.1);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.subject-tag:hover {
    background: var(--accent-orange);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE BREAKPOINTS FOR SUBJECTS
   ======================================== */

/* Desktop - 2 columns (default) */
@media (min-width: 992px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Tablet - 2 columns */
@media (max-width: 991px) and (min-width: 768px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .subject-group-card {
        padding: 18px;
    }
    
    .subject-group-title {
        font-size: 16px;
    }
    
    .subject-group-icon {
        font-size: 24px;
    }
    
    .subject-tag {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* Mobile Landscape - 2 columns (adjust for small screens) */
@media (max-width: 767px) and (min-width: 576px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .subject-group-card {
        padding: 15px;
    }
    
    .subject-group-title {
        font-size: 15px;
    }
    
    .subject-group-icon {
        font-size: 22px;
    }
    
    .subject-group-tags {
        gap: 8px;
    }
    
    .subject-tag {
        padding: 4px 10px;
        font-size: 11px;
        white-space: normal;
        word-break: keep-all;
    }
}

/* Mobile Portrait - 1 column */
@media (max-width: 575px) {
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .subject-group-card {
        padding: 15px;
    }
    
    .subject-group-header {
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .subject-group-title {
        font-size: 16px;
    }
    
    .subject-group-icon {
        font-size: 24px;
    }
    
    .subject-group-tags {
        gap: 8px;
    }
    
    .subject-tag {
        padding: 5px 12px;
        font-size: 12px;
        white-space: normal;
        word-break: break-word;
    }
}

/* Fix for long words on mobile */
@media (max-width: 480px) {
    .subject-group-card {
        padding: 12px;
    }
    
    .subject-group-title {
        font-size: 14px;
    }
    
    .subject-group-icon {
        font-size: 20px;
    }
    
    .subject-tag {
        padding: 4px 10px;
        font-size: 11px;
    }
}