:root {
    --primary-blue: #0092D1;
    --primary-green: #009846;
    --primary-orange: #F58220;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    --card-hover-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    --jamia-navy: #1e3a8a;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --bg-light: #f8fafc;
}

body {
    font-family: 'Outfit', sans-serif;
}

/* Tightened Content Section */
.content-section {
    position: relative;
    background: white;
}

/* Section Headings */
.category-header {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.category-header h2 {
    font-size: 2.22rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Denser Program Grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

/* Card Refinement */
.program-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    background: white;
}

.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.program-card:hover .card-img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
}

/* Badges */
.card-badge {
    position: absolute;
    top: 15px;
    left: 66px;
    background: var(--primary-orange);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(245, 130, 32, 0.2);
}

.card-duration {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 3;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.25;
}

.card-body p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Modern Button */
.explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: var(--primary-blue);
    color: white;
    border-radius: 15px;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: all 0.3s ease;
    gap: 8px;
    border: none;
    font-size: 0.95rem;
}

.explore-btn:hover {
    background: var(--primary-orange);
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(245, 130, 32, 0.2);
}

.explore-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.explore-btn:hover svg {
    transform: translateX(3px);
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
    margin: 60px 0;
}

/* Advantages Section */
.advantages-sec {
    padding: 80px 0;
    background: #fbfcfd;
    position: relative;
    overflow: hidden;
}

.advantages-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.advantages-header h2 span {
    color: var(--primary-green);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.advantage-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.advantage-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 152, 70, 0.08);
}

.adv-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 152, 70, 0.1);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.advantage-card:hover .adv-icon-wrapper {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1);
}

.adv-icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.advantage-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Why Choose Section */
.why-choose-sec {
    padding: 100px 0;
    background-color: #eefdf5;
    position: relative;
    overflow: hidden;
}

.why-choose-sec::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg width="400" height="400" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="%23009846" stroke-width="0.5" stroke-opacity="0.1"><circle cx="400" cy="200" r="100"/><circle cx="400" cy="200" r="150"/><circle cx="400" cy="200" r="200"/><circle cx="400" cy="200" r="250"/><circle cx="400" cy="200" r="300"/></g></svg>');
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.6;
}

.why-choose-header {
    text-align: center;
    margin-bottom: 60px;
}

.why-choose-header span {
    color: var(--primary-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.why-choose-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

.why-card {
    background: white;
    border-radius: 10px;
    padding: 40px 25px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 152, 70, 0.1);
}

.why-number {
    position: absolute;
    top: 20px;
    right: -10px;
    background: #1e293b;
    color: white;
    padding: 5px 12px;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 4px;
    z-index: 3;
}

.why-number::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    border-left: 8px solid transparent;
    border-top: 8px solid #0f172a;
}

.why-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
}

.why-icon-wrapper svg {
    width: 50px;
    height: 50px;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .programs-intro {
        padding: 100px 0 40px;
    }

    .intro-content h1 {
        font-size: 2.8rem;
    }

    .custom-breadcrumb {
        top: 80px;
    }

    .category-header h2 {
        font-size: 1.8rem;
    }

    .program-grid {
        gap: 20px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-choose-header h2 {
        font-size: 2rem;
    }
}

/* FAQ Section Styles */
.index-faq {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
    background: #f0f9ff;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: all 0.3s ease-in-out;
    padding: 0 24px 24px;
    border-top: 1px solid rgba(0, 146, 209, 0.1);
}

.faq-answer-content {
    padding-top: 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-answer-content a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.faq-read-more {
    text-align: center;
    margin-top: 40px;
}

.faq-read-more {
    text-align: center;
    margin-top: 40px;
}

/* Accreditation & Ranking Section */
.accreditation-sec {
    padding: 80px 0;
    background-color: #f8fafc;
    text-align: center;
}

.accreditation-sec h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 50px;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ranking-card {
    background: white;
    border-radius: 20px;
    padding: 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.ranking-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ranking-logo {
    height: 100px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-logo img {
    max-height: 100%;
    max-width: 220px;
    object-fit: contain;
}

.ranking-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.ranking-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #8b0000;
    margin-bottom: 15px;
}

.ranking-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.ranking-footer {
    width: 100%;
    padding-top: 0px;
    border-top: 1px solid #f1f5f9;
    color: #1e3a8a;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .accreditation-sec h2 {
        font-size: 2rem;
    }

    .ranking-grid {
        grid-template-columns: 1fr;
    }
}

/* Learning Portal Section */
.learning-portal-card {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/learning-portal-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.portal-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.portal-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    color: white;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    box-shadow: 0 10px 20px rgba(245, 130, 32, 0.3);
}

.portal-btn:hover {
    background: #e07310;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(245, 130, 32, 0.4);
    color: white;
}

/* CDOE Hero */
.cdoe-hero {
    background: linear-gradient(rgba(30, 58, 138, 0.85), rgba(30, 58, 138, 0.85));
    background-size: cover;
    background-position: center;
    padding: 30px 0 30px;
    color: white;
    text-align: center;
}

.cdoe-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cdoe-hero p {
    font-size: 1.2rem;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Feature Cards */
.cdoe-features {
    padding: 80px 0;
    background: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 146, 209, 0.1);
    color: var(--primary-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--jamia-navy);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Director Section */
.director-section {
    padding: 100px 0;
}

.director-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.director-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.director-image img {
    width: 100%;
    display: block;
}

.director-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.director-badge h4 {
    margin: 0;
    color: var(--jamia-navy);
    font-weight: 800;
}

.director-badge span {
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.director-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--jamia-navy);
}

.director-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Programs List */
.cdoe-programs {
    padding: 80px 0;
    background: #f1f5f9;
}

.program-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.program-cat {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cat-header {
    background: var(--jamia-navy);
    color: white;
    padding: 25px 30px;
}

.cat-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.cat-body {
    padding: 30px;
}

.cat-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-body li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

.cat-body li:last-child {
    border-bottom: none;
}

.cat-body li::before {
    content: '?';
    color: var(--primary-green);
    font-weight: 800;
}

/* Narrative Section */
.narrative-card {
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.narrative-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .narrative-card {
        grid-template-columns: 1fr;
    }

    .cdoe-hero h1 {
        font-size: 2.5rem;
    }

    .director-container {
        grid-template-columns: 1fr;
    }
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.program-card-fee {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.program-card-fee:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.program-card-fee h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.info-group {
    margin-bottom: 20px;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.info-value {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.page-intro {
    background: linear-gradient(135deg, var(--jamia-navy) 0%, #1e40af 100%);
    padding: 30px 0 30px;
    color: white;
    text-align: center;
}

.intro-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: left;
}

.counseling-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.member-card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2.5rem;
    color: var(--primary-blue);
    border: 3px solid white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.member-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--jamia-navy);
    margin-bottom: 10px;
}

.designation {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.contact-info {
    width: 100%;
    text-align: left;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-blue);
}

.info-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.info-item a:hover {
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .intro-content h1 {
        font-size: 2.2rem;
    }
}