/* ROOT */
.gls-course-wrapper {
    --primary: #1f3154;
    --secondary: #bb171d;
    --accent: #3b82f6;
    --bg: #f8fafc;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;

    color: var(--text);
    line-height: 1.6;
}

/* SVG ICONS - STANDARDIZED SIZING */
.gls-svg-icon {
    width: 24px !important;
    height: 24px !important;
    display: inline-block !important;
    vertical-align: middle;
}

.gls-svg-icon-small {
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    vertical-align: middle;
    margin-right: 8px;
}

.gls-svg-icon-large {
    width: 32px !important;
    height: 32px !important;
    display: inline-block !important;
    vertical-align: middle;
}

/* Icon Wrappers (Rounded BG) */
.gls-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* Strong bottom margin for separation */
    transition: all 0.3s ease;
}

.gls-icon-wrapper.square {
    border-radius: 12px;
}

.gls-icon-wrapper svg {
    width: 24px !important;
    height: 24px !important;
}

/* Base Icon Colors */
.gls-icon svg,
.gls-box-icon svg,
.gls-feature-icon svg,
.gls-hero-links svg {
    color: var(--accent);
}

/* COURSE ARCHIVE CARDS */
.gls-course-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gls-course-card-image {
    width: 100%;
    height: 200px;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.gls-course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gls-course-card:hover .gls-course-card-image img {
    transform: scale(1.1);
}

.gls-course-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gls-course-card-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 800;
}

.gls-course-card-content p {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.5;
}

.gls-course-card-footer {
    margin-top: auto;
}

.gls-archive-header h1 {
    font-size: 3rem;
    font-weight: 900;
}

.gls-archive-header .lead {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
}

/* BREADCRUMBS */
.gls-breadcrumb {
    font-size: 0.9rem;
    color: var(--muted);
}

.gls-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.gls-breadcrumb span {
    margin: 0 8px;
    color: #cbd5e1;
}

/* CATEGORY SPECIFIC HERO */
.gls-category-hero {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%) !important;
    border-bottom: 1px solid var(--border);
}

.gls-category-hero .gls-title {
    margin-bottom: 15px;
}

.gls-category-hero .lead {
    font-size: 1.2rem;
    color: var(--muted);
}

/* HERO LINKS LAYOUT FIX */
.gls-hero-links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 0 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.gls-hero-links li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.gls-hero-links li a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 18px !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: 0.2s !important;
}

.gls-hero-links li a:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1) !important;
}

/* CUSTOM LANDING PAGE NAV */
.gls-custom-nav {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.gls-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gls-logo a {
    font-size: 1.4rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.gls-logo strong {
    color: var(--secondary);
}

.gls-nav-btn {
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.gls-nav-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* CUSTOM LANDING PAGE FOOTER */
.gls-custom-footer {
    background: #111;
    color: #999;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.gls-custom-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* CONTAINER */
.gls-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SECTIONS */
.gls-section {
    padding: 50px 0;
    background: #fff;
    scroll-margin-top: 100px;
    /* Offset for floating menu */
}

.gls-section.alt {
    background: rgba(59, 130, 246, 0.03);
    /* Light Accent Tint */
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.gls-section.dark {
    background: var(--primary);
    color: #fff;
}

.gls-section.dark .gls-title {
    color: #fff;
}

/* TITLES */
.gls-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 800;
}

.gls-title span {
    color: var(--accent);
}

.gls-title a:hover span {
    color: var(--secondary);
}

.gls-title a {
    transition: all 0.3s ease;
}

/* HERO */
.gls-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

.gls-hero h1 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary);
}

.gls-hero p {
    color: var(--muted);
    font-size: 1.05rem;
}

.gls-hero .badge {
    background: var(--accent);
    padding: 6px 12px;
    border-radius: 6px;
    margin: 4px;
    font-size: 0.8rem;
}

/* CARDS (GLOBAL) */
.gls-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    transition: 0.25s ease;
}

.gls-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* WHY / FEATURES GRID */
.gls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* TIP CARDS */
.gls-tip-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 20px;
}

.gls-tip-card .gls-icon {
    margin-bottom: 20px;
}

.gls-tip-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text);
}

/* WHY CARD */
.gls-why-card {
    text-align: center;
}

.gls-why-card h5 {
    margin-bottom: 10px;
    color: var(--primary);
}

.gls-why-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ELIGIBILITY SECTION - SINGLE CARD */
.gls-eligibility-single-card {
    padding: 30px !important;
    background: #fff;
}

.gls-eligibility-item {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 25px;
}

.gls-eligibility-item:last-child {
    margin-bottom: 0;
}

.gls-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.gls-item-header strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.gls-item-body {
    font-size: 0.95rem;
    color: var(--muted);
}

.gls-item-body ul li {
    position: relative;
    padding-left: 15px;
    margin-top: 8px;
    font-size: 0.9rem;
}

.gls-item-body ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.gls-eligibility-img-wrapper {
    height: 100%;
    min-height: 300px;
}

/* =========================
   /* =========================
   TIER SYSTEM (IMPROVED)
========================= */

.gls-tier-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.gls-tier-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s ease;
}

.gls-tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Polymorphic Overview Grid */
.gls-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gls-overview-card {
    background: #fcfcfc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.gls-overview-card:hover {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gls-overview-card-icon {
    background: rgba(0, 106, 255, 0.1);
    color: var(--primary-color);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gls-overview-card-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.gls-overview-card-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Tiers Footer & Features */
.gls-tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gls-tier-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #444;
}

.gls-tier-features li:last-child {
    border-bottom: none;
}

.gls-tiers-footer-text {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gls-info-box {
    background: #eef7ff;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
    color: #004085;
}

.gls-info-box .gls-svg-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

/* HEADER */
.gls-tier-header {
    background: var(--primary);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gls-tier-header h5 {
    margin: 0;
    font-size: 1rem;
}

.gls-badge {
    background: var(--secondary);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

/* BODY */
.gls-tier-body {
    padding: 20px;
}

.gls-tier-body h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text);
}

/* SUBJECT LIST */
.gls-subject {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.9rem;
}

.gls-subject:last-child {
    border-bottom: none;
}

/* FOOTER */
.gls-tier-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.gls-tier-footer div {
    padding: 14px 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    border-right: 1px solid var(--border);
}

.gls-tier-footer div:last-child {
    border-right: none;
}

/* =========================
   SYLLABUS / TIPS / FEATURES
========================= */

.gls-box {
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 12px;
    background: #fff;
    transition: 0.2s ease;
}

.gls-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.gls-box h6 {
    margin-bottom: 8px;
    color: var(--primary);
}

.gls-box p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* CTA SECTION - BRANDED COLORS */
.gls-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #16243d 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.gls-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #fff;
}

.gls-cta-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.gls-cta-actions .gls-btn {
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: 0.3s;
    border: 2px solid transparent;
}

/* Specific Action Colors */
.gls-cta-actions .btn-demo {
    background: var(--accent);
    color: #fff;
}

.gls-cta-actions .btn-demo:hover {
    background: #fff;
    color: var(--accent);
    border-color: var(--accent);
}

.gls-cta-actions .btn-syllabus {
    background: #fff;
    color: var(--primary);
}

.gls-cta-actions .btn-syllabus:hover {
    background: var(--accent);
    color: #fff;
}

.gls-cta-actions .btn-call {
    background: var(--secondary);
    color: #fff;
}

.gls-cta-actions .btn-call:hover {
    background: #fff;
    color: var(--secondary);
    border-color: var(--secondary);
}

/* WHY SECTION ACCENTS */
.gls-why-card .gls-icon svg {
    color: var(--secondary) !important;
}

/* SYLLABUS ACCENTS */
.gls-syllabus-header svg {
    color: var(--accent) !important;
}

/* TIER FOOTER ACCENTS */
.gls-tier-footer div svg {
    color: var(--accent) !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .gls-title {
        font-size: 1.6rem;
    }

    .gls-hero h1 {
        font-size: 1.7rem;
    }

    .gls-tier-flex {
        grid-template-columns: 1fr;
    }
}

/* FAQ SECTION */
.gls-faq {
    padding: 80px 0;
    background: #fff;
}

.gls-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.gls-faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.gls-faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gls-faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
}

.gls-faq-icon {
    transition: transform 0.3s ease;
    color: var(--accent);
}

.gls-faq-question[aria-expanded="true"] .gls-faq-icon {
    transform: rotate(180deg);
}

.gls-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.gls-faq-answer-content {
    padding: 0 25px 20px;
    color: #475569;
    line-height: 1.6;
}