:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --gold: #d4a853;
    --cream: #fefce8;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --header-offset: 9.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--navy);
    background: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--teal-light);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11.5rem;
    min-height: 2.75rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.header-action-online,
.header-action-help {
    background: linear-gradient(135deg, var(--teal), #0f766e);
    color: var(--white) !important;
}

.header-action-online:hover,
.header-action-help:hover {
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    color: var(--white) !important;
    transform: translateY(-1px);
}

.header-actions .help-desk-btn {
    background: linear-gradient(135deg, var(--teal), #0f766e) !important;
    animation: header-help-desk-pulse 2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    margin-left: 0 !important;
    will-change: box-shadow;
}

.header-actions .help-desk-btn:hover {
    background: linear-gradient(135deg, var(--teal-light), var(--teal)) !important;
    animation-play-state: paused;
}

@keyframes header-help-desk-pulse {
    0%,
    100% {
        box-shadow:
            0 1px 2px rgba(15, 23, 42, 0.08),
            0 0 0 0 rgba(20, 184, 166, 0);
    }

    50% {
        box-shadow:
            0 4px 16px rgba(13, 148, 136, 0.35),
            0 0 0 3px rgba(20, 184, 166, 0.18),
            0 0 24px rgba(20, 184, 166, 0.22);
    }
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    cursor: default;
    align-self: auto;
    text-align: left;
    line-height: 1.2;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    flex-shrink: 0;
    max-height: 4.75rem;
    min-height: 4.75rem;
    width: auto;
    height: auto;
}

.logo-text {
    display: inline;
}

.logo span {
    color: var(--teal);
}

.logo:hover {
    color: var(--navy);
}

.logo:hover span {
    color: var(--teal);
}

.nav {
    display: flex;
    gap: 0.35rem;
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
}

.nav::-webkit-scrollbar {
    height: 6px;
}

.nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.nav::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 3px;
}

.nav::-webkit-scrollbar-thumb:hover {
    background: var(--teal-light);
}

.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.55rem 0.65rem;
    color: var(--cream);
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.25;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:not(.nav-cta):hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-cta {
    background: linear-gradient(135deg, var(--teal), #0f766e);
    color: var(--white) !important;
    border-radius: 10px;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    color: var(--white) !important;
}

@media (min-width: 769px) {
    .nav .nav-quick-link {
        display: none;
    }
}

@keyframes help-desk-flash {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
        transform: translateY(-1px) scale(1);
    }

    50% {
        box-shadow: 0 0 16px 3px rgba(37, 211, 102, 0.85);
        transform: translateY(-1px) scale(1.03);
    }
}

.help-desk-btn {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    animation: help-desk-flash 1.15s ease-in-out infinite;
    white-space: nowrap;
}

.help-desk-btn:hover {
    background: linear-gradient(135deg, #2fe576, #25d366) !important;
}

@media (prefers-reduced-motion: reduce) {
    .help-desk-btn,
    .header-actions .help-desk-btn {
        animation: none;
    }
}

/* Latest News Marquee */
.news-marquee-wrap {
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--teal);
    overflow: hidden;
}

.news-marquee-wrap .news-label {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem;
    margin-right: 1rem;
    vertical-align: middle;
}

.news-marquee-wrap marquee {
    display: inline-block;
    vertical-align: middle;
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

.news-marquee-wrap marquee a,
.news-marquee-wrap marquee .news-marquee-item {
    color: var(--cream);
    margin-right: 2rem;
}

.news-marquee-wrap marquee a:hover {
    color: var(--gold);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}

/* Hero + Video in one row - attractive layout */
.hero-video-row,
.section,
.main-portal {
    scroll-margin-top: var(--header-offset);
}

.hero-video-row {
    background: linear-gradient(135deg, var(--navy) 0%, #0c4a6e 40%, #0f766e 100%);
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.hero-video-row-inner {
    position: relative;
    z-index: 1;
}

.hero-video-row::after {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-video-row .hero,
.hero-video-row .video-section {
    position: relative;
    z-index: 1;
    min-height: 0;
}

.hero-video-row .hero > .hero-inner > .video-section {
    min-height: 0;
}

.hero--split {
    min-height: 0;
}

/* Online classes panel (hero right column) */
.hero-online-panel {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 0.5rem 0;
}

.hero-online-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero-online-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-online-lead {
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.25rem;
}

.hero-online-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    text-align: left;
}

.hero-online-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.6rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.hero-online-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--teal-light);
    font-weight: 700;
}

.hero-cta-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: var(--navy) !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-online:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 168, 83, 0.45);
    color: var(--navy) !important;
}

@media (max-width: 991.98px) {
    .hero-video-row::after {
        display: none;
    }

    .hero-video-row {
        min-height: auto;
    }
}

/* Hero - left side */
.hero {
    background: transparent;
    color: var(--white);
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}

.hero-inner {
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-video-row .hero .hero-inner {
    max-width: 100%;
}

.hero .badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.35), rgba(184, 134, 11, 0.25));
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(212, 168, 83, 0.4);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.15);
}

.hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero p {
    font-size: 0.95rem;
    opacity: 0.95;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: var(--navy);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal), #0f766e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.checkmark-list {
    list-style: none;
    padding-left: 20px;
}

.checkmark-list li::before {
    content: "\2713";
    color: green;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.checkmark-list-cross {
    list-style: none;
    padding-left: 20px;
}

.checkmark-list-cross li::before {
    content: '✕';
    color: red;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* About SECCAP - Services slider */
.about-section {
    padding-bottom: 3rem;
}

.about-intro {
    max-width: 700px;
    margin: 0 auto 1rem;
    color: var(--gray-500);
    line-height: 1.65;
}

.about-services-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    margin: 1.25rem;
}

.services-slider-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.services-slider-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.services-slider-track::-webkit-scrollbar {
    height: 8px;
}

.services-slider-track::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.services-slider-track::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 4px;
}

.service-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border-color: var(--teal-light);
}

.service-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--teal), #0f766e);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--navy);
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.services-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--navy);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease;
}

.services-slider-btn:hover {
    background: var(--teal);
    color: var(--white);
}

.services-slider-btn.prev {
    left: 0.5rem;
}

.services-slider-btn.next {
    right: 0.5rem;
}

@media (max-width: 768px) {
    .services-slider-wrap {
        padding: 0 2.5rem;
    }

    .service-card {
        flex: 0 0 260px;
    }

    .services-slider-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

/* Strip */
.strip {
    margin: 0 4.75rem;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.strip-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.strip h2 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.strip p {
    color: var(--black);
}

/* Table */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    padding: 1rem 1.25rem;
    text-align: left;
}

th {
    background: linear-gradient(160deg, var(--teal) 0%, #0f766e 100%);
    color: var(--white);
    font-weight: 600;
}

tr:nth-child(even) {
    background: var(--gray-100);
}

tr:hover {
    background: #e2e8f0;
}

/* FAQ */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-q {
    width: 100%;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--white);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.faq-q:hover {
    background: var(--gray-100);
}

.faq-q::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--teal);
    flex-shrink: 0;
}

.faq-item.open .faq-q::after {
    content: '−';
}

.faq-a {
    padding: 0 1.25rem 1.15rem;
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.faq-item.open .faq-a {
    display: block;
}

/* CTA */
.cta {
    background: linear-gradient(160deg, var(--teal) 0%, #0f766e 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 0 0.5rem 1rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    color: var(--white);
}

.cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta .btn {
    background: var(--white);
    color: var(--teal);
}

.cta .btn:hover {
    background: var(--cream);
    color: var(--navy);
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--gray-300);
    padding: 1rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--gray-300);
    display: block;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.footer a:hover {
    color: var(--teal-light);
}

.footer .info-note {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--teal);
    color: var(--gray-300);
}

/* Bootstrap: Student online application modal (SECCAP theme) */
.modal-apply .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

.modal-apply .modal-header {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2744 100%);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
}

.modal-apply .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-apply .modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 600;
}

.modal-apply .modal-header .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem;
}

.modal-apply .section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.modal-apply .form-label {
    font-weight: 500;
    color: var(--navy);
    font-size: 0.88rem;
}

.modal-apply .form-control,
.modal-apply .form-select {
    border-radius: 10px;
    border-color: var(--gray-300);
    font-size: 0.95rem;
}

.modal-apply .form-control:focus,
.modal-apply .form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.2);
}

.modal-apply .invalid-feedback,
.modal-apply .valid-feedback {
    font-size: 0.8rem;
}

.modal-apply .btn-submit-apply {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    color: var(--white) !important;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.35rem;
    border-radius: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.modal-apply .btn-submit-apply:hover {
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.45);
    transform: translateY(-1px);
}

.modal-apply .modal-footer {
    background: var(--gray-100);
    border-top: 1px solid #e2e8f0;
}

.modal-apply .form-check-input:checked {
    background-color: var(--teal);
    border-color: var(--teal);
}

.modal-apply .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}

.modal-apply .apply-disclaimer {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.modal-apply .apply-disclaimer a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.modal-apply .apply-disclaimer a:hover {
    color: var(--teal-light);
}

/* Inquiry page: two-column message form + info icon strip */
.inquiry-page-contact .inquiry-contact-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.inquiry-page-contact .inquiry-contact-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 280px;
}

.inquiry-page-contact .inquiry-contact-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center top;
}

.inquiry-page-contact .inquiry-contact-form-inner {
    padding-left: 0;
}

@media (min-width: 992px) {
    .inquiry-page-contact .inquiry-contact-form-inner {
        padding-left: 0.5rem;
    }
}

.inquiry-page-contact .inquiry-send-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.inquiry-page-contact .inquiry-send-lead {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 32rem;
}

.inquiry-page-contact .inquiry-message-form .form-control {
    padding: 0.65rem 0.95rem;
}

.inquiry-page-contact .inquiry-message-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.inquiry-page-contact .form-label .text-danger {
    font-weight: 600;
}

.inquiry-page-contact .inquiry-online-features {
    border-top: 1px solid #e2e8f0;
}

.inquiry-page-contact .inquiry-features-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--navy);
}

.inquiry-page-contact .inquiry-features-lead {
    max-width: 40rem;
    line-height: 1.6;
}

.inquiry-page-contact .inquiry-features-lead a {
    color: var(--teal);
}

.inquiry-page-contact .inquiry-features-lead a:hover {
    color: var(--teal-light);
}

.inquiry-page-contact .inquiry-feature-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.15rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-page-contact .inquiry-feature-card:hover {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow);
}

.inquiry-page-contact .inquiry-feature-icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.65rem;
}

.inquiry-page-contact .inquiry-feature-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.inquiry-page-contact .inquiry-feature-text {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin-bottom: 0;
}

.inquiry-page-contact .inquiry-feature-text a {
    color: var(--teal);
}

.inquiry-page-contact .inquiry-feature-text a:hover {
    color: var(--teal-light);
}

.inquiry-page-contact .inquiry-success-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #10b981;
}

.inquiry-page-contact .inquiry-form-success .inquiry-success-check svg {
    display: block;
}

.inquiry-page-contact .inquiry-send-btn {
    background: linear-gradient(135deg, #19998e 0%, #19998e 50%, #0b7a71 100%);
    color: var(--white) !important;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.inquiry-page-contact .inquiry-send-btn:hover {
    box-shadow: 0 8px 24px rgba(91, 84, 214, 0.4);
    transform: translateY(-1px);
    color: var(--white) !important;
}

.inquiry-page-contact .inquiry-info-strip {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 1.75rem 1rem 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

@media (min-width: 768px) {
    .inquiry-page-contact .inquiry-info-strip {
        padding: 2rem 1.5rem;
    }

    .inquiry-page-contact .inquiry-info-cell {
        border-right: 1px solid #f1f5f9;
    }

    .inquiry-page-contact .inquiry-info-cell:last-child {
        border-right: none;
    }
}

.inquiry-page-contact .inquiry-info-card {
    padding: 0.5rem 0.35rem;
    max-width: 220px;
    margin: 0 auto;
}

.inquiry-page-contact .inquiry-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
}

.inquiry-page-contact .inquiry-info-icon svg {
    flex-shrink: 0;
}

.inquiry-page-contact .inquiry-info-icon--address {
    background: #ffe4d6;
    color: #ea580c;
}

.inquiry-page-contact .inquiry-info-icon--phone {
    background: #cffafe;
    color: #0284c7;
}

.inquiry-page-contact .inquiry-info-icon--email {
    background: #dcfce7;
    color: #15803d;
}

.inquiry-page-contact .inquiry-info-icon--map {
    background: #fce7f3;
    color: #db2777;
}

.inquiry-page-contact .inquiry-info-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.inquiry-page-contact .inquiry-info-text {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 0;
    word-break: break-word;
}

.inquiry-page-contact .inquiry-info-text a {
    color: inherit;
    text-decoration: none;
}

.inquiry-page-contact .inquiry-info-text a:hover {
    color: var(--teal);
}

.inquiry-page-contact .inquiry-map-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6366f1 !important;
    text-decoration: none;
}

.inquiry-page-contact .inquiry-map-link:hover {
    color: #4f46e5 !important;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--navy-light);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Video Section - See video before admission (in row with hero) */
.hero-video-row .video-section {
    background: transparent;
    padding: 2rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-video-row .hero > .hero-inner > .video-section {
    padding: 1.75rem 0 0;
    width: 100%;
}

.hero-video-row .video-section .section-title {
    text-align: center;
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    margin-bottom: 0.35rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-video-row .video-section .section-title::before {
    content: '▶';
    font-size: 0.75em;
    color: var(--gold);
}

.hero-video-row .video-section .section-subtitle {
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 320px;
}

.hero-video-row .video-wrap {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    background: var(--navy);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-video-row .video-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.35);
}

.video-wrap .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrap .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-wrap .video-container .hero-youtube-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    color: inherit;
    text-decoration: none;
}

.video-wrap .video-container .hero-youtube-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-wrap .video-container .hero-youtube-fallback-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    text-align: center;
    font-size: 1.35rem;
    color: var(--white);
    background: rgba(15, 23, 42, 0.75);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    pointer-events: none;
}

.video-wrap .video-container .hero-youtube-fallback-label {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.hero-video-row .hero-youtube-153-tip {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    border-radius: var(--radius);
}

.steps-list,
.doc-list {
    list-style: none;
    margin: 1rem 0;
}

.steps-list li,
.doc-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
}

.steps-list {
    counter-reset: step;
}

.steps-list li {
    counter-increment: step;
    padding-left: 2.5rem;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--teal);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-list li::before {
    content: '📎';
    position: absolute;
    left: 0;
}

.info-note {
    background: #47506b;
    color: white;
    padding: 0.5rem;
    margin-top: 0.1rem;
    border-radius: 5px;
    font-size: 0.95rem;
}

.quick-links-table th:first-child {
    width: 40%;
}

.quick-links-table a {
    font-weight: 500;
}

/* Main Portal Section (after menu - seccap.dgcs.gos.pk style) */
.main-portal {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    padding: 2.5rem 1.5rem 3rem;
    border-bottom: 1px solid var(--gray-100);
}

.main-portal-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.main-portal-welcome {
    text-align: center;
    margin-bottom: 2rem;
}

.main-portal-welcome h2 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.main-portal-welcome p {
    color: var(--gray-500);
    font-size: 1rem;
}

.portal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.portal-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: var(--navy);
}

.portal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    border-color: var(--teal);
    color: var(--teal);
}

.portal-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--teal), #0f766e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
}

.portal-card span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .portal-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .portal-card {
        padding: 1rem 0.75rem;
    }

    .portal-card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-offset: 5.5rem;
    }

    .header-inner {
        gap: 0.5rem;
    }

    .header-top {
        flex-wrap: nowrap;
    }

    .header-actions {
        display: none;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 1.15rem;
        padding-right: 0.5rem;
    }

    .logo-img {
        max-height: 3rem;
    }

    .nav {
        display: none;
    }

    .nav.open {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: stretch;
    }

    .nav.open a {
        width: 100%;
        justify-content: center;
    }

    .menu-btn {
        display: block;
        flex-shrink: 0;
        margin-left: auto;
    }

    .hero {
        padding: 3rem 1rem 4rem;
    }

    .section {
        padding: 1rem 1rem;
    }
}

.help-desk-btn{margin-left: 0 !important;}