/* ==========================================================================
   AgyanAdda — Frontend Theme (Navy / Red)
   Built on Bootstrap 5. All custom classes are prefixed with `ag-`.
   ========================================================================== */

:root {
    /* agyanadda brand: navy + red (matches agyanadda.com) */
    --ag-brand: #1f386b;
    --ag-brand-600: #1a305c;
    --ag-brand-700: #152850;
    --ag-brand-900: #0f1f40;
    --ag-red: #e41937;
    --ag-red-700: #c2152f;
    --ag-violet: #e41937;
    --ag-accent: #e41937;
    --ag-accent-soft: #fde8eb;
    --ag-soft: #eef2f8;
    --ag-soft-2: #f8f8f8;
    --ag-ink: #333333;
    --ag-body: #666666;
    --ag-muted: #777777;
    --ag-line: #e6e6e6;
    --ag-surface: #f8f8f8;
    --ag-white: #ffffff;
    --ag-dark: #222222;
    --ag-success: #16a34a;
    --ag-danger: #dc2626;
    --ag-gradient: linear-gradient(0deg, #1f386b, #1f386b);
    --ag-gradient-dark: linear-gradient(0deg, rgba(31, 56, 107, .92), rgba(31, 56, 107, .92));
    --ag-radius-sm: 4px;
    --ag-radius: 6px;
    --ag-radius-lg: 8px;
    --ag-shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --ag-shadow: 0 6px 18px rgba(0, 0, 0, .10);
    --ag-shadow-lg: 0 12px 30px rgba(0, 0, 0, .16);
    --ag-font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ag-header-h: 72px;

    /* Bootstrap overrides */
    --bs-primary: #1f386b;
    --bs-primary-rgb: 31, 56, 107;
    --bs-link-color: #1f386b;
    --bs-link-color-rgb: 31, 56, 107;
    --bs-link-hover-color: #e41937;
    --bs-link-hover-color-rgb: 228, 25, 55;
    --bs-body-font-family: var(--ag-font);
    --bs-body-color: #666666;
    --bs-border-color: #e6e6e6;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--ag-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ag-body);
    background: var(--ag-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ag-font);
    color: var(--ag-ink);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
}
a { color: var(--ag-brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ag-brand-700); }
img { max-width: 100%; }
::selection { background: var(--ag-brand); color: #fff; }

.text-brand { color: var(--ag-brand) !important; }
.text-violet { color: var(--ag-violet) !important; }
.text-accent { color: var(--ag-accent) !important; }
.text-ink { color: var(--ag-ink) !important; }
.text-muted-ag { color: var(--ag-muted) !important; }
.bg-soft { background: var(--ag-soft) !important; }
.bg-surface { background: var(--ag-surface) !important; }
.bg-brand { background: var(--ag-brand) !important; color: #fff; }
.bg-gradient-brand { background: var(--ag-gradient) !important; color: #fff; }
.bg-gradient-dark { background: var(--ag-gradient-dark) !important; color: #fff; }
.text-gradient {
    background: var(--ag-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Bootstrap tweaks ---------- */
.btn-primary {
    --bs-btn-bg: var(--ag-brand);
    --bs-btn-border-color: var(--ag-brand);
    --bs-btn-hover-bg: var(--ag-brand-700);
    --bs-btn-hover-border-color: var(--ag-brand-700);
    --bs-btn-active-bg: var(--ag-brand-700);
    --bs-btn-active-border-color: var(--ag-brand-700);
}
.form-control, .form-select {
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius-sm);
    padding: .7rem 1rem;
    font-size: 15px;
    color: var(--ag-ink);
    background-color: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ag-brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.form-control::placeholder { color: #94a3b8; }
.form-label { font-weight: 600; font-size: 14px; color: var(--ag-ink); margin-bottom: .4rem; }
.form-check-input:checked { background-color: var(--ag-brand); border-color: var(--ag-brand); }

.pagination { gap: 6px; flex-wrap: wrap; }
.pagination .page-link {
    border-radius: 10px !important;
    border: 1px solid var(--ag-line);
    color: var(--ag-ink);
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}
.pagination .page-item.active .page-link { background: var(--ag-brand); border-color: var(--ag-brand); color: #fff; }
.pagination .page-link:hover { background: var(--ag-soft); color: var(--ag-brand); }

.accordion { --bs-accordion-border-color: var(--ag-line); --bs-accordion-active-bg: var(--ag-soft); --bs-accordion-active-color: var(--ag-brand-700); --bs-accordion-btn-focus-box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.accordion-item { border-radius: var(--ag-radius) !important; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--ag-line) !important; }
.accordion-button { font-weight: 600; color: var(--ag-ink); padding: 1.1rem 1.25rem; }

.nav-pills .nav-link { border-radius: 999px; color: var(--ag-ink); font-weight: 600; padding: .55rem 1.2rem; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--ag-gradient); color: #fff; }

.table { --bs-table-striped-bg: var(--ag-surface); }
.table > thead th { background: var(--ag-soft); color: var(--ag-brand-700); font-weight: 700; border-bottom: 0; }

.modal-content { border: 0; border-radius: var(--ag-radius-lg); overflow: hidden; box-shadow: var(--ag-shadow-lg); }

/* ---------- Buttons ---------- */
.ag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.ag-btn:hover { transform: translateY(-2px); }
.ag-btn-primary { background: var(--ag-gradient); color: #fff; box-shadow: 0 10px 20px -8px rgba(79, 70, 229, .6); }
.ag-btn-primary:hover { color: #fff; box-shadow: 0 14px 28px -10px rgba(79, 70, 229, .7); }
.ag-btn-outline { border-color: var(--ag-brand); color: var(--ag-brand); background: transparent; }
.ag-btn-outline:hover { background: var(--ag-brand); color: #fff; }
.ag-btn-white { background: #fff; color: var(--ag-brand-700); }
.ag-btn-white:hover { color: var(--ag-brand); box-shadow: var(--ag-shadow); }
.ag-btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.ag-btn-ghost:hover { background: #fff; color: var(--ag-brand-700); }
.ag-btn-accent { background: var(--ag-accent); color: var(--ag-ink); }
.ag-btn-accent:hover { color: var(--ag-ink); filter: brightness(1.05); }
.ag-btn-sm { padding: .5rem 1rem; font-size: 14px; }
.ag-btn-lg { padding: 1rem 2rem; font-size: 16px; }
.ag-btn-block { width: 100%; }
.ag-link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.ag-link-arrow i { transition: transform .2s ease; }
.ag-link-arrow:hover i { transform: translateX(4px); }

/* ---------- Sections & headings ---------- */
.ag-section { padding: 96px 0; position: relative; }
.ag-section-sm { padding: 64px 0; }
@media (max-width: 991.98px) { .ag-section { padding: 72px 0; } .ag-section-sm { padding: 48px 0; } }
@media (max-width: 575.98px) { .ag-section { padding: 56px 0; } }

.ag-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: var(--ag-soft);
    color: var(--ag-brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.ag-eyebrow-light { background: rgba(255, 255, 255, .14); color: #fff; }
.ag-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin-bottom: 1rem; }
.ag-title-sm { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; margin-bottom: .75rem; }
.ag-lead { font-size: 17px; color: var(--ag-muted); max-width: 680px; }
.ag-heading { margin-bottom: 48px; }
.ag-heading.text-center .ag-lead { margin-left: auto; margin-right: auto; }
.ag-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 40px; }
.ag-heading-row .ag-title { margin-bottom: .25rem; }

/* ---------- Header ---------- */
.ag-topbar { background: var(--ag-brand-900); color: rgba(255, 255, 255, .8); font-size: 13.5px; padding: 8px 0; }
.ag-topbar a { color: rgba(255, 255, 255, .85); }
.ag-topbar a:hover { color: #fff; }
.ag-topbar-list { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.ag-topbar-list i { color: var(--ag-accent); margin-right: .4rem; }
.ag-topbar-social { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.ag-topbar-social a { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 12px; }
.ag-topbar-social a:hover { background: var(--ag-brand); }

.ag-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.ag-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .35); border-bottom-color: var(--ag-line); }
.ag-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--ag-header-h); }

.ag-logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ag-ink); }
.ag-logo:hover { color: var(--ag-ink); }
.ag-logo-mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--ag-gradient);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
    box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .8);
}
.ag-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.ag-logo-text strong { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.ag-logo-text strong span { color: var(--ag-brand); }
.ag-logo-text small { font-size: 11px; color: var(--ag-muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ag-logo-light, .ag-logo-light:hover { color: #fff; }
.ag-logo-light .ag-logo-text strong span { color: #c4b5fd; }
.ag-logo-light .ag-logo-text small { color: rgba(255, 255, 255, .6); }

.ag-nav { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.ag-nav > li { position: relative; }
.ag-nav > li > a {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .6rem .9rem;
    font-weight: 600; font-size: 15px;
    color: var(--ag-ink);
    border-radius: 10px;
}
.ag-nav > li > a:hover, .ag-nav > li.active > a { color: var(--ag-brand); background: var(--ag-soft); }
.ag-nav > li > a .fa-chevron-down { font-size: 10px; transition: transform .2s ease; }
.ag-nav > li:hover > a .fa-chevron-down { transform: rotate(180deg); }
.ag-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: var(--ag-radius);
    box-shadow: var(--ag-shadow-lg);
    border: 1px solid var(--ag-line);
    padding: .5rem;
    list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .2s ease;
    z-index: 20;
}
.ag-dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.ag-nav > li:hover > .ag-dropdown, .ag-nav > li:focus-within > .ag-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.ag-dropdown a { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; color: var(--ag-ink); font-weight: 500; font-size: 14.5px; }
.ag-dropdown a i { width: 18px; color: var(--ag-brand); }
.ag-dropdown a:hover { background: var(--ag-soft); color: var(--ag-brand); }
.ag-header-actions { display: flex; align-items: center; gap: .75rem; }
.ag-icon-btn {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ag-soft); color: var(--ag-brand); border: 0; font-size: 18px;
}
.ag-icon-btn:hover { background: var(--ag-brand); color: #fff; }

/* Global search */
.global-search-box { position: relative; }
.ag-search { position: relative; }
.ag-search .form-control { padding-left: 2.6rem; border-radius: 999px; background: var(--ag-surface); }
.ag-search > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ag-muted); }
.searchResults {
    display: none;
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border-radius: var(--ag-radius);
    box-shadow: var(--ag-shadow-lg); border: 1px solid var(--ag-line);
    max-height: 360px; overflow-y: auto; z-index: 50; text-align: left;
}
.global-list-dropdown a { padding: .65rem 1rem; border-bottom: 1px solid var(--ag-line); font-size: 14px; }
.global-list-dropdown a:hover { background: var(--ag-soft); }
.global-list-dropdown strong { color: var(--ag-brand); }

/* Offcanvas mobile menu */
.ag-offcanvas { --bs-offcanvas-width: 320px; }
.ag-mobile-nav { list-style: none; margin: 0; padding: 0; }
.ag-mobile-nav > li { border-bottom: 1px solid var(--ag-line); }
.ag-mobile-nav > li > a, .ag-mobile-nav > li > button {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    padding: .9rem 0; font-weight: 600; color: var(--ag-ink); background: none; border: 0; text-align: left;
}
.ag-mobile-nav .collapse a, .ag-mobile-nav .collapsing a { display: block; padding: .45rem 0 .45rem 1rem; color: var(--ag-body); font-size: 15px; }
.ag-mobile-nav .collapse a:hover { color: var(--ag-brand); }

/* ---------- Hero (home) ---------- */
.ag-hero {
    position: relative;
    background: var(--ag-gradient-dark);
    color: #fff;
    overflow: hidden;
    padding: 96px 0 120px;
}
.ag-hero::before, .ag-hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none;
}
.ag-hero::before { width: 520px; height: 520px; background: #7c3aed; top: -180px; right: -120px; }
.ag-hero::after { width: 420px; height: 420px; background: #4f46e5; bottom: -200px; left: -140px; }
.ag-hero .container { position: relative; z-index: 2; }
.ag-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.ag-hero h1 .hl { color: #fcd34d; }
.ag-hero p.lead { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 560px; }
.ag-hero-search {
    background: #fff; border-radius: 999px; padding: 6px; display: flex; gap: 6px; align-items: center;
    max-width: 560px; box-shadow: var(--ag-shadow-lg); margin-top: 2rem;
}
.ag-hero-search .form-control { border: 0; background: transparent; padding-left: 1.25rem; box-shadow: none; }
.ag-hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.ag-hero-tags a { padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 13.5px; font-weight: 500; border: 1px solid rgba(255, 255, 255, .18); }
.ag-hero-tags a:hover { background: #fff; color: var(--ag-brand-700); }
.ag-hero-media { position: relative; }
.ag-hero-media .ag-hero-img {
    border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.2; box-shadow: var(--ag-shadow-lg);
    border: 6px solid rgba(255, 255, 255, .12);
}
.ag-hero-media .ag-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.ag-float-card {
    position: absolute; background: #fff; color: var(--ag-ink); border-radius: 16px; padding: .9rem 1.1rem;
    box-shadow: var(--ag-shadow-lg); display: flex; align-items: center; gap: .75rem; font-size: 14px;
    animation: ag-float 5s ease-in-out infinite;
}
.ag-float-card .ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--ag-soft); color: var(--ag-brand); font-size: 18px; }
.ag-float-card strong { display: block; font-size: 18px; line-height: 1.1; }
.ag-float-card.one { left: -32px; bottom: 48px; }
.ag-float-card.two { right: -20px; top: 40px; animation-delay: -2.5s; }
@keyframes ag-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991.98px) { .ag-hero { padding: 64px 0 88px; } .ag-float-card.one { left: 8px; } .ag-float-card.two { right: 8px; } }

/* Hero banner slider (dynamic banners) */
.ag-banner-slider .swiper-slide { height: auto; }
.ag-banner-slide { position: relative; min-height: 520px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.ag-banner-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 6s ease; }
.ag-banner-slider .swiper-slide-active .ag-banner-slide .bg { transform: scale(1); }
.ag-banner-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 27, 75, .92) 0%, rgba(49, 46, 129, .7) 45%, rgba(76, 29, 149, .15) 100%); }
.ag-banner-slide .container { position: relative; z-index: 2; }
.ag-banner-slide h1, .ag-banner-slide h2 { color: #fff; font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; max-width: 680px; }
.ag-banner-slide .desc { color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 600px; }
.ag-banner-slide .desc p { color: inherit; }
.ag-banner-slider .swiper-pagination-bullet { background: #fff; opacity: .5; width: 10px; height: 10px; }
.ag-banner-slider .swiper-pagination-bullet-active { opacity: 1; width: 28px; border-radius: 6px; background: var(--ag-accent); }
@media (max-width: 767.98px) { .ag-banner-slide { min-height: 380px; } }

/* ---------- Stats ---------- */
.ag-stats { position: relative; margin-top: -56px; z-index: 5; }
.ag-stats-card { background: #fff; border-radius: var(--ag-radius-lg); box-shadow: var(--ag-shadow-lg); padding: 28px 16px; }
.ag-stat { text-align: center; padding: 8px 12px; }
.ag-stat strong { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 800; background: var(--ag-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.ag-stat span { font-size: 14px; color: var(--ag-muted); font-weight: 600; }
@media (min-width: 768px) { .ag-stat + .ag-stat { border-left: 1px solid var(--ag-line); } }

/* ---------- Page hero (inner pages) ---------- */
.ag-page-hero {
    position: relative;
    background: var(--ag-gradient-dark);
    color: #fff;
    padding: 72px 0 80px;
    overflow: hidden;
}
.ag-page-hero.has-image { background-size: cover; background-position: center; }
.ag-page-hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 27, 75, .94), rgba(76, 29, 149, .7)); }
.ag-page-hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: #7c3aed; filter: blur(90px); opacity: .45; top: -200px; right: -100px; z-index: 1; }
.ag-page-hero .container { position: relative; z-index: 2; }
.ag-page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 46px); font-weight: 800; margin-bottom: .75rem; }
.ag-page-hero p { color: rgba(255, 255, 255, .8); max-width: 680px; margin-bottom: 0; }
.ag-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: 14px; font-weight: 600; }
.ag-breadcrumb li { color: rgba(255, 255, 255, .65); }
.ag-breadcrumb li + li::before { content: "\f054"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: 9px; margin-right: .5rem; color: rgba(255, 255, 255, .45); }
.ag-breadcrumb a { color: #fff; }
.ag-breadcrumb a:hover { color: #c4b5fd; }

/* ---------- Cards ---------- */
.ag-card {
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ag-card:hover { transform: translateY(-6px); box-shadow: var(--ag-shadow); border-color: transparent; }
.ag-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ag-soft); }
.ag-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ag-card:hover .ag-card-media img { transform: scale(1.06); }
.ag-card-media .ag-badge { position: absolute; top: 12px; left: 12px; }
.ag-card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.ag-card-title { font-size: 18px; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.ag-card-title a { color: var(--ag-ink); }
.ag-card-title a:hover { color: var(--ag-brand); }
.ag-card-text { font-size: 15px; color: var(--ag-muted); margin-bottom: 1rem; }
.ag-card-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: 13.5px; color: var(--ag-muted); margin-bottom: .75rem; list-style: none; padding: 0; }
.ag-card-meta i { color: var(--ag-brand); margin-right: .3rem; }
.ag-card-footer { padding: 14px 22px; border-top: 1px solid var(--ag-line); display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; }
.ag-card-logo { width: 64px; height: 64px; border-radius: 14px; background: #fff; border: 1px solid var(--ag-line); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px; flex-shrink: 0; }
.ag-card-logo img { max-height: 100%; object-fit: contain; }

.ag-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; color: var(--ag-brand-700); box-shadow: var(--ag-shadow-sm); }
.ag-badge-soft { background: var(--ag-soft); color: var(--ag-brand); box-shadow: none; }
.ag-badge-accent { background: var(--ag-accent-soft); color: #92400e; box-shadow: none; }
.ag-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--ag-line); background: #fff; color: var(--ag-ink); font-size: 14px; font-weight: 600; transition: all .2s ease; cursor: pointer; }
.ag-chip:hover, .ag-chip.active { border-color: var(--ag-brand); background: var(--ag-brand); color: #fff; }

/* Feature / icon box */
.ag-feature { background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); padding: 28px; height: 100%; transition: all .25s ease; }
.ag-feature:hover { border-color: transparent; box-shadow: var(--ag-shadow); transform: translateY(-4px); }
.ag-feature-icon { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; background: var(--ag-soft); color: var(--ag-brand); margin-bottom: 1.1rem; transition: all .25s ease; }
.ag-feature:hover .ag-feature-icon { background: var(--ag-gradient); color: #fff; }
.ag-feature h3, .ag-feature h4 { font-size: 19px; margin-bottom: .5rem; }
.ag-feature p { font-size: 15px; color: var(--ag-muted); margin-bottom: 0; }

/* Category tile (course types / cities / countries) */
.ag-tile {
    display: flex; align-items: center; gap: 1rem;
    padding: 18px 20px; background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius);
    color: var(--ag-ink); height: 100%; transition: all .25s ease;
}
.ag-tile:hover { border-color: var(--ag-brand); box-shadow: var(--ag-shadow); color: var(--ag-ink); transform: translateY(-3px); }
.ag-tile-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--ag-soft); color: var(--ag-brand); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; }
.ag-tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.ag-tile h3, .ag-tile h4 { font-size: 16px; margin: 0 0 .15rem; }
.ag-tile small { color: var(--ag-muted); font-size: 13px; }
.ag-tile .arrow { margin-left: auto; color: var(--ag-muted); transition: transform .2s ease, color .2s ease; }
.ag-tile:hover .arrow { color: var(--ag-brand); transform: translateX(4px); }

/* Image card with overlay (countries / destinations) */
.ag-dest { position: relative; display: block; border-radius: var(--ag-radius-lg); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; background: var(--ag-brand-900); }
.ag-dest img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ag-dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(30, 27, 75, .92) 100%); }
.ag-dest .ag-dest-body { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.ag-dest h3 { color: #fff; font-size: 20px; margin: 0; }
.ag-dest span { font-size: 13px; color: rgba(255, 255, 255, .8); }
.ag-dest:hover img { transform: scale(1.08); }
.ag-dest:hover { color: #fff; }

/* Team */
.ag-team { text-align: center; }
.ag-team-img { border-radius: var(--ag-radius-lg); overflow: hidden; aspect-ratio: 1 / 1.1; background: var(--ag-soft); margin-bottom: 1rem; }
.ag-team-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ag-team:hover .ag-team-img img { transform: scale(1.05); }
.ag-team h3, .ag-team h4 { font-size: 18px; margin-bottom: .15rem; }
.ag-team span { color: var(--ag-brand); font-weight: 600; font-size: 14px; }

/* Partner logos */
.ag-logo-card { background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); height: 96px; display: flex; align-items: center; justify-content: center; padding: 16px; transition: all .25s ease; }
.ag-logo-card img { max-height: 60px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .25s ease; }
.ag-logo-card:hover { box-shadow: var(--ag-shadow); }
.ag-logo-card:hover img { filter: none; opacity: 1; }

/* Steps */
.ag-step { position: relative; padding: 28px; background: #fff; border-radius: var(--ag-radius); border: 1px solid var(--ag-line); height: 100%; }
.ag-step-num { font-size: 44px; font-weight: 800; line-height: 1; background: var(--ag-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .75rem; display: block; }
.ag-step h3, .ag-step h4 { font-size: 19px; }
.ag-step p { color: var(--ag-muted); font-size: 15px; margin: 0; }

/* Testimonial / review */
.ag-review { background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); padding: 24px; height: 100%; }
.ag-review .stars { color: var(--ag-accent); font-size: 14px; margin-bottom: .6rem; }
.ag-review p { font-size: 15px; color: var(--ag-body); }
.ag-review-user { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.ag-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ag-gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.ag-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* CTA band */
.ag-cta { position: relative; background: var(--ag-gradient); color: #fff; border-radius: var(--ag-radius-lg); padding: 56px; overflow: hidden; }
.ag-cta::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -80px; top: -120px; }
.ag-cta::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .08); left: 30%; bottom: -120px; }
.ag-cta > * { position: relative; z-index: 2; }
.ag-cta h2, .ag-cta h3 { color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 800; }
.ag-cta p { color: rgba(255, 255, 255, .85); }
@media (max-width: 767.98px) { .ag-cta { padding: 36px 24px; } }

/* Split media / about block */
.ag-media-stack { position: relative; }
.ag-media-stack .main { border-radius: var(--ag-radius-lg); overflow: hidden; box-shadow: var(--ag-shadow); }
.ag-media-stack .main img { width: 100%; height: 100%; object-fit: cover; }
.ag-media-stack .badge-exp { position: absolute; right: -16px; bottom: 32px; background: var(--ag-gradient); color: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: var(--ag-shadow-lg); text-align: center; }
.ag-media-stack .badge-exp strong { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
.ag-media-stack .badge-exp span { font-size: 13px; opacity: .9; }
@media (max-width: 575.98px) { .ag-media-stack .badge-exp { right: 12px; } }

.ag-checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ag-checklist li { position: relative; padding-left: 2rem; margin-bottom: .7rem; color: var(--ag-ink); font-weight: 500; }
.ag-checklist li::before { content: "\f00c"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--ag-soft); color: var(--ag-brand); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Content / prose (rich text from CMS) ---------- */
.ag-prose { color: var(--ag-body); font-size: 16.5px; line-height: 1.8; }
.ag-prose h1, .ag-prose h2, .ag-prose h3, .ag-prose h4, .ag-prose h5 { margin-top: 1.8em; margin-bottom: .6em; }
.ag-prose h2 { font-size: 28px; }
.ag-prose h3 { font-size: 22px; }
.ag-prose h4 { font-size: 19px; }
.ag-prose > :first-child { margin-top: 0; }
.ag-prose p { margin-bottom: 1.1em; }
.ag-prose img { border-radius: var(--ag-radius); height: auto; margin: 1em 0; }
.ag-prose ul, .ag-prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.ag-prose li { margin-bottom: .4em; }
.ag-prose ul li::marker { color: var(--ag-brand); }
.ag-prose a { text-decoration: underline; text-underline-offset: 3px; }
.ag-prose blockquote { border-left: 4px solid var(--ag-brand); background: var(--ag-soft); padding: 1rem 1.25rem; border-radius: 0 var(--ag-radius-sm) var(--ag-radius-sm) 0; color: var(--ag-ink); }
.ag-prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; display: block; overflow-x: auto; }
.ag-prose table th, .ag-prose table td { border: 1px solid var(--ag-line); padding: .65rem .9rem; }
.ag-prose table th, .ag-prose table tr:first-child td { background: var(--ag-soft); color: var(--ag-ink); font-weight: 700; }
.ag-prose iframe { max-width: 100%; border-radius: var(--ag-radius); }

/* ---------- Sidebar / panels ---------- */
.ag-panel { background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); padding: 24px; }
.ag-panel + .ag-panel { margin-top: 24px; }
.ag-panel-title { font-size: 18px; font-weight: 700; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--ag-line); }
.ag-sticky { position: sticky; top: calc(var(--ag-header-h) + 20px); }
.ag-info-list { list-style: none; padding: 0; margin: 0; }
.ag-info-list li { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed var(--ag-line); font-size: 15px; }
.ag-info-list li:last-child { border-bottom: 0; }
.ag-info-list i { color: var(--ag-brand); width: 18px; margin-top: 4px; }
.ag-info-list strong { color: var(--ag-ink); min-width: 110px; }
.ag-mini-post { display: flex; gap: .85rem; align-items: center; padding: .6rem 0; }
.ag-mini-post + .ag-mini-post { border-top: 1px solid var(--ag-line); }
.ag-mini-post img { width: 72px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.ag-mini-post a { color: var(--ag-ink); font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.ag-mini-post a:hover { color: var(--ag-brand); }
.ag-mini-post small { color: var(--ag-muted); font-size: 12.5px; }

/* Tabs bar for detail pages */
.ag-tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .4rem; background: var(--ag-surface); border: 1px solid var(--ag-line); border-radius: 999px; scrollbar-width: none; }
.ag-tabs::-webkit-scrollbar { display: none; }
.ag-tabs .nav-link, .ag-tabs a { white-space: nowrap; border-radius: 999px; padding: .55rem 1.1rem; font-weight: 600; color: var(--ag-ink); font-size: 14.5px; border: 0; background: transparent; }
.ag-tabs .nav-link.active, .ag-tabs a.active, .ag-tabs .nav-link:hover, .ag-tabs a:hover { background: var(--ag-gradient); color: #fff; }

/* Horizontal scroller (used by .myScroller in custom.js) */
.ag-scroller-wrap { position: relative; display: flex; align-items: center; gap: .5rem; }
.myScroller { display: flex; gap: .6rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; padding: 4px 0; }
.myScroller::-webkit-scrollbar { display: none; }
.scroller-left, .scroller-right { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ag-line); background: #fff; color: var(--ag-ink); display: inline-flex; align-items: center; justify-content: center; }
.scroller-left:hover, .scroller-right:hover { background: var(--ag-brand); color: #fff; border-color: var(--ag-brand); }

/* Swiper nav buttons */
.ag-swiper-nav { display: flex; gap: .5rem; }
.ag-swiper-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ag-line); background: #fff; color: var(--ag-ink); display: inline-flex; align-items: center; justify-content: center; transition: all .2s ease; }
.ag-swiper-nav button:hover { background: var(--ag-brand); border-color: var(--ag-brand); color: #fff; }
.ag-swiper-nav button.swiper-button-disabled { opacity: .4; pointer-events: none; }

/* ---------- Forms ---------- */
.ag-form-card { background: #fff; border-radius: var(--ag-radius-lg); box-shadow: var(--ag-shadow-lg); padding: 36px; border: 1px solid var(--ag-line); }
@media (max-width: 575.98px) { .ag-form-card { padding: 24px 18px; } }
.ag-form-card .form-group, .ag-form-card .form-item { margin-bottom: 1rem; }
.enquiry-message, #enquiryMessage { font-size: 14px; font-weight: 600; margin-top: .75rem; }
.invalid-feedback, .text-danger { font-size: 13px; }
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple { border: 1px solid var(--ag-line) !important; border-radius: var(--ag-radius-sm) !important; min-height: 46px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px !important; padding-left: 1rem !important; color: var(--ag-ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--ag-brand) !important; }
.select2-dropdown { border-color: var(--ag-line) !important; border-radius: var(--ag-radius-sm) !important; overflow: hidden; }

/* Enquiry modal */
.ag-modal-aside { background: var(--ag-gradient-dark); color: #fff; padding: 36px 32px; height: 100%; position: relative; overflow: hidden; }
.ag-modal-aside::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: #7c3aed; filter: blur(70px); opacity: .5; bottom: -100px; right: -80px; }
.ag-modal-aside > * { position: relative; z-index: 2; }
.ag-modal-aside h3 { color: #fff; font-size: 26px; font-weight: 800; }
.ag-modal-aside p { color: rgba(255, 255, 255, .8); }
.ag-modal-aside .ag-checklist li { color: #fff; }
.ag-modal-aside .ag-checklist li::before { background: rgba(255, 255, 255, .15); color: #fcd34d; }

/* ---------- Footer ---------- */
.ag-footer { background: #0b0a1f; color: rgba(255, 255, 255, .7); padding-top: 80px; position: relative; overflow: hidden; }
.ag-footer::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: #4f46e5; filter: blur(140px); opacity: .25; top: -260px; left: -160px; }
.ag-footer .container { position: relative; z-index: 2; }
.ag-footer h4 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 1.25rem; }
.ag-footer p { color: rgba(255, 255, 255, .65); font-size: 15px; }
.ag-footer-links { list-style: none; padding: 0; margin: 0; }
.ag-footer-links li { margin-bottom: .65rem; }
.ag-footer-links a { color: rgba(255, 255, 255, .7); font-size: 15px; display: inline-flex; align-items: center; gap: .45rem; }
.ag-footer-links a::before { content: ""; width: 0; height: 2px; background: var(--ag-accent); transition: width .2s ease; }
.ag-footer-links a:hover { color: #fff; }
.ag-footer-links a:hover::before { width: 10px; }
.ag-footer-contact { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.ag-footer-contact li { display: flex; gap: .75rem; margin-bottom: .9rem; font-size: 15px; }
.ag-footer-contact i { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #a5b4fc; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ag-footer-contact a { color: rgba(255, 255, 255, .8); }
.ag-footer-contact a:hover { color: #fff; }
.ag-social { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.ag-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: all .2s ease; }
.ag-social a:hover { background: var(--ag-gradient); transform: translateY(-3px); }
.ag-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding: 22px 0; font-size: 14px; }
.ag-footer-bottom a { color: rgba(255, 255, 255, .7); }
.ag-footer-bottom a:hover { color: #fff; }

/* ---------- Floating actions ---------- */
.ag-float-actions { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 1040; }
.ag-fab { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .45); border: 0; transition: transform .2s ease; }
.ag-fab:hover { color: #fff; transform: scale(1.08); }
.ag-fab-whatsapp { background: #25d366; }
.ag-fab-top { background: var(--ag-brand); font-size: 18px; opacity: 0; visibility: hidden; }
.ag-fab-top.show { opacity: 1; visibility: visible; }
.ag-enquire-tab {
    position: fixed; left: 0; top: 50%; transform: translateY(-50%);
    writing-mode: vertical-rl; text-orientation: mixed;
    background: var(--ag-gradient); color: #fff; border: 0;
    padding: 18px 10px; border-radius: 0 12px 12px 0; font-weight: 700; font-size: 14px; letter-spacing: .04em;
    z-index: 1040; box-shadow: var(--ag-shadow);
}
.ag-enquire-tab:hover { padding-left: 14px; }

/* ---------- Utilities ---------- */
.ag-divider { height: 1px; background: var(--ag-line); margin: 2rem 0; }
.ag-rounded { border-radius: var(--ag-radius) !important; }
.ag-rounded-lg { border-radius: var(--ag-radius-lg) !important; }
.ag-shadow { box-shadow: var(--ag-shadow) !important; }
.ag-empty { text-align: center; padding: 48px 16px; color: var(--ag-muted); }
.ag-empty i { font-size: 40px; color: #c7d2fe; margin-bottom: .75rem; display: block; }
.ag-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ag-ratio-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ag-radius-lg); overflow: hidden; background: #000; }
.ag-ratio-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ag-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ag-gallery a, .ag-gallery img { display: block; border-radius: var(--ag-radius-sm); overflow: hidden; aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }

/* WOW fallback: never hide content if WOW fails */
.wow { visibility: visible; }

/* ==========================================================================
   agyanadda.com skin — flat navy/red look (overrides above)
   ========================================================================== */
body { font-size: 15px; color: var(--ag-body); }
h1, h2, h3, h4, h5, h6 { color: var(--ag-ink); letter-spacing: 0; }
a:hover { color: var(--ag-red); }
::selection { background: var(--ag-red); }

/* Two-tone uppercase section titles: <h2 class="ag-title">Our <span>Courses</span></h2> */
.ag-title, .ag-title-sm { text-transform: uppercase; font-weight: 700; color: var(--ag-ink); letter-spacing: .01em; }
.ag-title { font-size: clamp(24px, 2.6vw, 30px); }
.ag-title span, .ag-title-sm span, .ag-page-hero h1 span { color: var(--ag-red); }
.text-white.ag-title, .bg-gradient-dark .ag-title, .ag-cta .ag-title { color: #fff; }
.ag-lead { font-size: 15px; color: var(--ag-muted); }
.ag-heading { margin-bottom: 40px; }
.ag-eyebrow { background: transparent; padding: 0; color: var(--ag-red); letter-spacing: .08em; margin-bottom: .5rem; border-radius: 0; }
.ag-eyebrow-light { color: #ffd0d7; background: transparent; }
.text-gradient { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ag-red); }

/* Buttons: red primary (like "Click Here"), navy secondary */
.ag-btn { border-radius: var(--ag-radius-sm); font-weight: 600; font-size: 14px; padding: .7rem 1.4rem; }
.ag-btn:hover { transform: none; }
.ag-btn-primary { background: var(--ag-red); box-shadow: none; }
.ag-btn-primary:hover { background: var(--ag-red-700); box-shadow: none; }
.ag-btn-outline { border-color: var(--ag-brand); color: var(--ag-brand); }
.ag-btn-outline:hover { background: var(--ag-brand); color: #fff; }
.ag-btn-navy { background: var(--ag-brand); color: #fff; }
.ag-btn-navy:hover { background: var(--ag-brand-700); color: #fff; }
.ag-btn-accent { background: var(--ag-red); color: #fff; }
.ag-btn-accent:hover { color: #fff; background: var(--ag-red-700); filter: none; }
.ag-btn-white { color: var(--ag-brand); }
.ag-btn-ghost:hover { color: var(--ag-brand); }
.btn-primary { --bs-btn-bg: var(--ag-red); --bs-btn-border-color: var(--ag-red); --bs-btn-hover-bg: var(--ag-red-700); --bs-btn-hover-border-color: var(--ag-red-700); --bs-btn-active-bg: var(--ag-red-700); }
.ag-link-arrow { color: var(--ag-brand); }
.ag-link-arrow:hover { color: var(--ag-red); }

/* Top bar (red) + header */
.ag-topbar { background: var(--ag-red); color: #fff; }
.ag-topbar a { color: #fff; }
.ag-topbar-list i { color: #fff; }
.ag-topbar-social a { background: rgba(255, 255, 255, .15); }
.ag-topbar-social a:hover { background: var(--ag-brand); }
.ag-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--ag-line); }
.ag-nav > li > a { font-size: 14px; color: #444; border-radius: 30px; padding: .5rem 1rem; }
.ag-nav > li > a:hover { background: transparent; color: var(--ag-brand); }
.ag-nav > li.active > a, .ag-nav > li.active > a:hover { background: var(--ag-brand); color: #fff; }
.ag-dropdown { border-radius: var(--ag-radius-sm); border-top: 3px solid var(--ag-red); padding: .35rem 0; }
.ag-dropdown a { border-radius: 0; padding: .55rem 1.1rem; }
.ag-dropdown a i { color: var(--ag-red); }
.ag-dropdown a:hover { background: var(--ag-surface); color: var(--ag-red); }
.ag-icon-btn { border-radius: var(--ag-radius-sm); background: var(--ag-surface); color: var(--ag-brand); }
.ag-icon-btn:hover { background: var(--ag-brand); }

/* Logo wordmark: AGYAN (navy) ADDA (red) */
.ag-logo-mark { background: transparent; color: var(--ag-brand); box-shadow: none; width: 40px; height: 40px; font-size: 28px; border-radius: 0; }
.ag-logo-text strong { font-size: 22px; font-weight: 800; color: var(--ag-brand); text-transform: uppercase; letter-spacing: .01em; }
.ag-logo-text strong span { color: var(--ag-red); }
.ag-logo-text small { display: none; }
.ag-logo-light .ag-logo-mark, .ag-logo-light .ag-logo-text strong { color: #fff; }
.ag-logo-light .ag-logo-text strong span { color: var(--ag-red); }

/* Hero: dark image with navy overlay */
.ag-hero { background: var(--ag-brand) url('../img/bg-img/page-header-bg.png') center / cover no-repeat; padding: 88px 0 110px; }
.ag-hero::before { content: ""; position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; filter: none; opacity: 1; background: linear-gradient(90deg, rgba(15, 31, 64, .95) 0%, rgba(31, 56, 107, .85) 60%, rgba(31, 56, 107, .55) 100%); top: 0; right: 0; }
.ag-hero::after { display: none; }
.ag-hero h1 { text-transform: uppercase; font-weight: 800; }
.ag-hero h1 .hl { color: var(--ag-red); }
.ag-hero-search { border-radius: var(--ag-radius-sm); }
.ag-hero-search .ag-btn { border-radius: var(--ag-radius-sm); }
.ag-hero-tags a { border-radius: 30px; }
.ag-hero-tags a:hover { background: var(--ag-red); border-color: var(--ag-red); color: #fff; }
.ag-hero-media .ag-hero-img { border-radius: var(--ag-radius-lg); border-width: 4px; }
.ag-float-card { border-radius: var(--ag-radius); border-left: 4px solid var(--ag-red); }
.ag-float-card .ico { border-radius: 50%; }

/* Page hero (inner pages) */
.ag-page-hero { background: var(--ag-brand); padding: 64px 0; }
.ag-page-hero::before { display: none; }
.ag-page-hero.has-image::after { background: rgba(15, 31, 64, .85); }
.ag-page-hero h1 { text-transform: uppercase; font-weight: 700; }
.ag-breadcrumb a:hover { color: #ffb3bf; }

/* Stats */
.ag-stats-card { border-radius: var(--ag-radius); border-bottom: 4px solid var(--ag-red); }
.ag-stat strong { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ag-brand); }

/* Cards — flat, light border, red accents */
.ag-card { border-radius: var(--ag-radius); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); border-color: #eee; }
.ag-card:hover { transform: translateY(-4px); box-shadow: var(--ag-shadow); }
.ag-card-title { font-size: 16px; font-weight: 600; }
.ag-card-title a { color: var(--ag-ink); }
.ag-card-title a:hover { color: var(--ag-red); }
.ag-card-meta i { color: var(--ag-red); }
.ag-badge { border-radius: var(--ag-radius-sm); background: var(--ag-red); color: #fff; }
.ag-badge-soft { background: var(--ag-soft); color: var(--ag-brand); }
.ag-chip { border-radius: 30px; }
.ag-chip:hover, .ag-chip.active { background: var(--ag-brand); border-color: var(--ag-brand); }

/* Service-style feature boxes (patterned top + round icon like agyanadda.com) */
.ag-feature { border-radius: var(--ag-radius); text-align: center; padding: 0 0 26px; overflow: hidden; background: var(--ag-surface); border-color: #eee; }
.ag-feature::before { content: ""; display: block; height: 70px; background: #e9e9e9 repeating-linear-gradient(0deg, transparent 0 13px, rgba(255, 255, 255, .7) 13px 15px); margin-bottom: -35px; }
.ag-feature-icon { width: 70px; height: 70px; border-radius: 50%; background: #fff; border: 2px solid var(--ag-brand); color: var(--ag-brand); position: relative; font-size: 24px; }
.ag-feature:hover .ag-feature-icon { background: var(--ag-brand); color: #fff; }
.ag-feature h3, .ag-feature h4 { font-size: 17px; padding: 0 18px; }
.ag-feature p { padding: 0 20px; font-size: 14px; }

.ag-tile { border-radius: var(--ag-radius); }
.ag-tile:hover { border-color: var(--ag-red); }
.ag-tile-icon { border-radius: 50%; background: var(--ag-soft); }
.ag-tile:hover .arrow { color: var(--ag-red); }
.ag-dest { border-radius: var(--ag-radius); }
.ag-dest::after { background: linear-gradient(180deg, transparent 45%, rgba(15, 31, 64, .92) 100%); }
.ag-team-img { border-radius: var(--ag-radius); }
.ag-team span { color: var(--ag-red); }
.ag-step { border-top: 3px solid var(--ag-brand); }
.ag-step-num { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ag-red); }
.ag-media-stack .badge-exp { background: var(--ag-red); border-radius: var(--ag-radius); }
.ag-checklist li::before { color: var(--ag-red); background: var(--ag-accent-soft); }
.ag-review .stars { color: #f5a623; }
.ag-avatar { background: var(--ag-brand); }

/* CTA + form panel: navy box like the "For Any Query" form */
.ag-cta { background: var(--ag-brand); border-radius: var(--ag-radius); }
.ag-cta::before, .ag-cta::after { display: none; }
.ag-form-card { border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); }
.ag-form-navy { background: var(--ag-brand); color: #fff; border: 0; }
.ag-form-navy h3, .ag-form-navy h4 { color: #fff; }
.ag-modal-aside { background: var(--ag-brand); }
.ag-modal-aside::after { display: none; }
.ag-modal-aside .ag-checklist li::before { background: rgba(255, 255, 255, .15); color: #fff; }
.form-control, .form-select { border-radius: var(--ag-radius-sm); font-size: 14px; }
.form-control:focus, .form-select:focus { border-color: var(--ag-brand); box-shadow: 0 0 0 3px rgba(31, 56, 107, .12); }

/* Tabs / pills / accordion / pagination */
.ag-tabs { border-radius: 30px; background: #fff; }
.ag-tabs .nav-link.active, .ag-tabs a.active, .ag-tabs .nav-link:hover, .ag-tabs a:hover { background: var(--ag-brand); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--ag-brand); }
.accordion-item { border-radius: var(--ag-radius) !important; }
.accordion { --bs-accordion-active-bg: var(--ag-brand); --bs-accordion-active-color: #fff; }
.accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.pagination .page-link { border-radius: var(--ag-radius-sm) !important; }
.pagination .page-item.active .page-link { background: var(--ag-red); border-color: var(--ag-red); }
.table > thead th { background: var(--ag-brand); color: #fff; }
.ag-prose ul li::marker { color: var(--ag-red); }
.ag-prose blockquote { border-left-color: var(--ag-red); }
.ag-prose table th, .ag-prose table tr:first-child td { background: var(--ag-brand); color: #fff; }
.ag-panel { border-radius: var(--ag-radius); }
.ag-panel-title { text-transform: uppercase; font-size: 16px; border-bottom: 2px solid var(--ag-red); display: inline-block; padding-bottom: .4rem; }
.ag-info-list i { color: var(--ag-red); }
.ag-mini-post a:hover { color: var(--ag-red); }
.ag-swiper-nav button:hover { background: var(--ag-red); border-color: var(--ag-red); }
.scroller-left:hover, .scroller-right:hover { background: var(--ag-red); border-color: var(--ag-red); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--ag-brand) !important; }
.global-list-dropdown strong { color: var(--ag-red); }

/* Footer: dark #222 with divided link lists */
.ag-footer { background: var(--ag-dark); padding-top: 64px; }
.ag-footer::before { display: none; }
.ag-footer h4 { font-size: 16px; text-transform: none; }
.ag-footer h4::after { content: ""; display: block; width: 40px; height: 2px; background: var(--ag-red); margin-top: .6rem; }
.ag-footer-links li { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ag-footer-links a { padding: .55rem 0; display: flex; color: rgba(255, 255, 255, .65); }
.ag-footer-links a::before { background: var(--ag-red); }
.ag-footer-contact i { border-radius: 50%; color: var(--ag-red); }
.ag-social a { border-radius: 50%; }
.ag-social a:hover { background: var(--ag-red); }
.ag-footer-bottom { background: #1a1a1a; margin-top: 48px; }

/* Floating */
.ag-fab-top { background: var(--ag-brand); border-radius: var(--ag-radius-sm); }
.ag-enquire-tab { background: var(--ag-red); border-radius: 0 var(--ag-radius-sm) var(--ag-radius-sm) 0; }

/* Enquire Now tab on the right edge */
.ag-enquire-tab { left: auto; right: 0; border-radius: var(--ag-radius-sm) 0 0 var(--ag-radius-sm); transform: translateY(-50%) rotate(180deg); }
.ag-enquire-tab:hover { padding-left: 10px; padding-right: 14px; }

/* Red accent on dark/navy backgrounds needs a lighter tint for contrast */
.bg-gradient-dark .ag-title span, .ag-dark-title span, .ag-page-hero h1 span, .ag-cta .ag-title span { color: #ff6b81 !important; }

/* ---------- Tutorials mega menu ---------- */
.ag-header > .container { position: relative; }
.ag-nav > li.ag-has-mega { position: static; }
.ag-mega {
    position: absolute; left: 12px; right: 12px; top: calc(100% - 6px);
    background: #fff; border: 1px solid var(--ag-line); border-top: 3px solid var(--ag-red);
    border-radius: 0 0 var(--ag-radius) var(--ag-radius); box-shadow: var(--ag-shadow-lg);
    padding: 22px 26px 18px; z-index: 30;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.ag-mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.ag-has-mega:hover > .ag-mega, .ag-has-mega:focus-within > .ag-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.ag-has-mega:hover > a .fa-chevron-down { transform: rotate(180deg); }
.ag-mega-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--ag-line); }
.ag-mega-head strong { display: block; font-size: 17px; text-transform: uppercase; color: var(--ag-ink); }
.ag-mega-head strong span { color: var(--ag-red); }
.ag-mega-head small { color: var(--ag-muted); font-size: 13px; }
.ag-mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; }
.ag-mega-col h6 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ag-brand); margin-bottom: .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--ag-soft); }
.ag-mega-col h6 i { color: var(--ag-red); margin-right: .3rem; }
.ag-mega-col ul { list-style: none; margin: 0; padding: 0; }
.ag-mega-col li a, .ag-mega-col li .is-soon { display: flex; align-items: center; gap: .55rem; padding: .4rem .5rem; border-radius: var(--ag-radius-sm); font-size: 14px; color: var(--ag-ink); border-bottom: 1px dashed var(--ag-line); }
.ag-mega-col li a i, .ag-mega-col li .is-soon i { width: 18px; text-align: center; color: var(--ag-brand); }
.ag-mega-col li a:hover { background: var(--ag-surface); color: var(--ag-red); }
.ag-mega-col li a:hover i { color: var(--ag-red); }
.ag-mega-col li .is-soon { color: var(--ag-muted); cursor: default; }
.ag-mega-col li .is-soon i { color: #aab4c5; }
.ag-mega-col em, .ag-mob-soon em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--ag-red); background: var(--ag-accent-soft); padding: 1px 6px; border-radius: 3px; }
.ag-mob-group { display: block; margin: .6rem 0 .2rem 1rem; font-weight: 700; text-transform: uppercase; color: var(--ag-brand); font-size: 11.5px; letter-spacing: .05em; }
.ag-mob-soon { display: flex; align-items: center; gap: .5rem; padding: .45rem 0 .45rem 1rem; color: var(--ag-muted); font-size: 15px; }
.ag-mob-soon em { margin-left: .4rem; }

/* Keep the 8-item main menu on one line */
.ag-nav { gap: 0; }
.ag-nav > li > a { white-space: nowrap; padding: .5rem .75rem; }
@media (max-width: 1399.98px) { .ag-nav > li > a { padding: .45rem .6rem; font-size: 13.5px; } .ag-header-inner { gap: 1rem; } }

/* Advertising slots (tutorials, jobs) */
.ag-ad { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; overflow: hidden; }
.ag-ad-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ag-muted); align-self: center; margin-bottom: 4px; }
.ag-ad-placeholder { background: repeating-linear-gradient(45deg, #f6f7f9, #f6f7f9 10px, #eff1f4 10px, #eff1f4 20px); border: 1px dashed #c9ced6; border-radius: var(--ag-radius); color: var(--ag-muted); }
.ag-ad-placeholder .ag-ad-label { margin: 0; font-weight: 700; }
.ag-ad-size { font-size: 11px; margin-top: 4px; }
.ag-ad-sidebar.ag-ad-placeholder { min-height: 600px; }
.ag-ad-banner.ag-ad-placeholder { min-height: 90px; }
.ag-ad-sticky { position: sticky; top: 90px; }

/* Floating widgets step aside while a modal is open */
body.modal-open .ag-enquire-tab, body.modal-open .ag-float-actions { visibility: hidden; }

/* ---------- Footer (redesign) ---------- */
.ag-footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; background: var(--ag-brand); border-radius: var(--ag-radius); padding: 28px 32px; margin-bottom: 56px; }
.ag-footer-cta h3 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin: 0 0 .35rem; }
.ag-footer-cta p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 15px; }
.ag-footer-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ag-footer-nav { list-style: none; padding: 0; margin: 0; }
.ag-footer-nav li { margin-bottom: .6rem; }
.ag-footer-nav a { color: rgba(255, 255, 255, .7); font-size: 15px; transition: color .15s ease, padding-left .15s ease; }
.ag-footer-nav a:hover { color: #fff; padding-left: 4px; }
.ag-footer-reach { list-style: none; padding: 0; margin: 0 0 1rem; }
.ag-footer-reach li { display: flex; gap: .6rem; margin-bottom: .7rem; font-size: 14.5px; color: rgba(255, 255, 255, .7); line-height: 1.5; }
.ag-footer-reach i { color: var(--ag-red); width: 16px; margin-top: 4px; flex-shrink: 0; text-align: center; }
.ag-footer-reach a { color: rgba(255, 255, 255, .8); word-break: break-word; }
.ag-footer-reach a:hover { color: #fff; }
.ag-footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
@media (max-width: 575.98px) {
    .ag-footer-cta { padding: 22px 20px; margin-bottom: 40px; }
    .ag-footer-cta-actions .ag-btn { flex: 1 1 100%; justify-content: center; }
    .ag-footer-bottom .container { text-align: center; }
}

/* Logout button in the top bar (looks like the other top bar links). */
.ag-topbar-logout { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.ag-topbar-logout:hover { text-decoration: underline; }
