/* ============================================================
   Sri Rengeswarar Driver Training Institute
   drivertraining.css — Page-specific styles
   All base styles from ../style.css, mobile from ../responsive.css
   Prefixed with "dt-" to avoid conflicts with style.css classes
============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
    --dt-green:       #2E7D32;
    --dt-green-light: #4CAF50;
    --dt-green-dark:  #1B5E20;
    --dt-green-pale:  #e8f5e9;
    --dt-accent:      #66BB6A;
    --dt-white:       #ffffff;
    --dt-light:       #f5f7fa;
    --dt-gray:        #6b7280;
    --dt-dark:        #1a1a2e;
    --dt-shadow:      0 4px 20px rgba(0,0,0,0.08);
    --dt-shadow-md:   0 8px 32px rgba(0,0,0,0.14);
    --dt-radius:      12px;
    --dt-radius-sm:   8px;
    --dt-transition:  all 0.3s ease;
}

/* ── GLOBAL RESET FOR THIS PAGE ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* ── BODY / FONT ────────────────────────────────────────────── */
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ── NAVBAR OVERRIDES (driver training page) ────────────────── */
/* The shared style.css + script.js handle scrolled state.
   Only override what is specific to this page */
.navbar {
    background: transparent;
    box-shadow: none;
}

/* ── MOBILE NAV LINK FIX — always dark in white sidebar ─────── */
/* This is the critical fix: nav-link is white by default but must
   be dark when the white mobile sidebar is open */
@media (max-width: 768px) {
    .nav-link {
        color: var(--dt-dark) !important;
    }
    .bar {
        background: var(--dt-white);
    }
    /* When sidebar open, bars must also be visible (dark on white bg) */
    .nav-menu.open ~ .hamburger .bar,
    .hamburger.open .bar {
        background: var(--dt-dark);
    }
}

/* ── HERO ───────────────────────────────────────────────────── */
.dt-hero {
    background-image: url('../images/Driving/IMG_5.webp');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── SHARED SECTION STYLES ──────────────────────────────────── */
.dt-section {
    padding: 5rem 0;
}
.dt-section-tag {
    display: inline-block;
    background: var(--dt-green-pale);
    color: var(--dt-green);
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.dt-title {
    font-size: clamp(0.85rem, 1.7vw, 1.2rem);
    font-weight: 800;
    color: var(--dt-dark);
    margin-bottom: 0.75rem;
}
.dt-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--dt-green), var(--dt-accent));
    border-radius: 2px;
    margin: 0 auto 1rem;
}

/* ── ABOUT SECTION ──────────────────────────────────────────── */
.about-section {
    background: var(--dt-light);
    padding: 5rem 0;
}
.dt-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
/* 5th card centres alone */
.dt-about-grid .dt-about-card:nth-child(4),
.dt-about-grid .dt-about-card:nth-child(5) {
    grid-column: auto;
}
.dt-about-card {
    background: var(--dt-white);
    border-radius: var(--dt-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--dt-shadow);
    transition: var(--dt-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dt-about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dt-shadow-md);
}
.dt-about-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--dt-green), var(--dt-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
    color: var(--dt-white);
    flex-shrink: 0;
}
.dt-about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dt-green);
    margin-bottom: 0.75rem;
}
.dt-about-card p {
    color: var(--dt-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── TRAINING PROGRAMS SECTION ──────────────────────────────── */
.dt-programs-section {
    background: var(--dt-white);
}
.dt-programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

/* Program Card */
.dt-program-card {
    background: var(--dt-white);
    border-radius: var(--dt-radius);
    overflow: hidden;
    box-shadow: var(--dt-shadow);
    transition: var(--dt-transition);
    display: flex;
    flex-direction: column;
}
.dt-program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dt-shadow-md);
}

/* Card Header */
.dt-program-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}
.dt-program-header--two {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
}
.dt-program-header--four {
    background: linear-gradient(135deg, #1565C0, #1976D2);
}
.dt-program-badge {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--dt-white);
    border: 3px solid rgba(255,255,255,0.35);
}
.dt-program-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dt-white);
    margin-bottom: 0.5rem;
}
.dt-program-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.95);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Card Body */
.dt-program-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dt-program-desc {
    color: var(--dt-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Feature rows */
.dt-program-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.dt-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--dt-light);
    border-radius: var(--dt-radius-sm);
    padding: 0.75rem;
}
.dt-feature-icon {
    width: 32px;
    height: 32px;
    background: var(--dt-green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dt-green);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.dt-feature-item div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.dt-feature-item strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dt-dark);
    line-height: 1.2;
}
.dt-feature-item span {
    font-size: 0.74rem;
    color: var(--dt-gray);
    line-height: 1.3;
}

/* Highlights */
.dt-program-highlights {
    background: var(--dt-green-pale);
    border-radius: var(--dt-radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.dt-program-highlights h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dt-green);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.dt-program-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}
.dt-program-highlights li {
    font-size: 0.82rem;
    color: #2d3748;
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.5;
}
.dt-program-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--dt-green);
    font-weight: 700;
    font-size: 0.8rem;
}

/* Enroll button */
.dt-enroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--dt-green);
    color: var(--dt-white);
    padding: 0.8rem 1.75rem;
    border-radius: var(--dt-radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--dt-transition);
    margin-top: auto;
    width: 100%;
    text-align: center;
}
.dt-enroll-btn:hover {
    background: var(--dt-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(46,125,50,0.35);
    color: var(--dt-white);
}

/* Compare/Stats banner */
.dt-compare-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--dt-green), var(--dt-green-dark));
    border-radius: var(--dt-radius);
    padding: 2rem;
}
.dt-compare-item {
    text-align: center;
    color: var(--dt-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.dt-compare-item i {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.25rem;
}
.dt-compare-item strong {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.dt-compare-item span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
}

/* ── FACILITIES ─────────────────────────────────────────────── */
.facilities-section {
    background: var(--dt-light);
    padding: 5rem 0;
}
.dt-facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
/* 5th card centre on its row */
.dt-facilities-grid .dt-facility-card:last-child:nth-child(3n+2) {
    grid-column: 2;
}
.dt-facility-card {
    background: var(--dt-white);
    border-radius: var(--dt-radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--dt-shadow);
    transition: var(--dt-transition);
}
.dt-facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dt-shadow-md);
}
.dt-facility-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--dt-green), var(--dt-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.6rem;
    color: var(--dt-white);
}
.dt-facility-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dt-green);
    margin-bottom: 0.75rem;
}
.dt-facility-card p {
    color: var(--dt-gray);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ── INSTRUCTOR ─────────────────────────────────────────────── */
.dt-instructors-section {
    background: var(--dt-white);
}
.dt-instructor-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}
.dt-instructor-card {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    background: var(--dt-light);
    border-radius: var(--dt-radius);
    padding: 2.5rem;
    max-width: 640px;
    width: 100%;
    box-shadow: var(--dt-shadow);
    transition: var(--dt-transition);
}
.dt-instructor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dt-shadow-md);
}
.dt-instructor-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--dt-accent);
    flex-shrink: 0;
}
.dt-instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dt-instructor-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dt-green);
    margin-bottom: 0.25rem;
}
.dt-instructor-title {
    color: var(--dt-gray);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.dt-detail-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: #444;
}
.dt-detail-item i {
    color: var(--dt-accent);
    width: 18px;
    flex-shrink: 0;
}

/* ── ADMISSION ──────────────────────────────────────────────── */
.dt-admission-section {
    background: var(--dt-light);
}
.dt-admission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: start;
}
.dt-admission-card {
    background: var(--dt-white);
    border-radius: var(--dt-radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--dt-shadow);
    text-align: center;
    transition: var(--dt-transition);
}
.dt-admission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dt-shadow-md);
}
.dt-admission-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--dt-green), var(--dt-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.8rem;
    color: var(--dt-white);
}
.dt-admission-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dt-green);
    margin-bottom: 1rem;
}
.dt-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.dt-check-list li {
    padding: 0.45rem 0 0.45rem 1.5rem;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.5;
}
.dt-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--dt-accent);
    font-weight: 700;
}
.dt-step-list {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
    text-align: left;
}
.dt-step-list li {
    padding: 0.45rem 0 0.45rem 2rem;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.88rem;
    color: #444;
    counter-increment: step;
    line-height: 1.5;
}
.dt-step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 20px;
    height: 20px;
    background: var(--dt-accent);
    color: var(--dt-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}
.dt-admission-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ── GALLERY ────────────────────────────────────────────────── */
.dt-gallery-section {
    background: var(--dt-white);
}
/* Uses shared .gallery-grid + .gallery-item from style.css/responsive.css.
   Override only the column count for this section */
.dt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 2.5rem;
}
.dt-gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--dt-radius-sm);
    aspect-ratio: 4/3;
    cursor: pointer;
    background: #eee;
}
.dt-gallery-grid .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.dt-gallery-grid .gallery-item:hover .gallery-image {
    transform: scale(1.08);
}
.dt-gallery-grid .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27,94,32,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.dt-gallery-grid .gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.dt-gallery-grid .gallery-overlay h4 {
    color: var(--dt-white);
    font-size: 0.9rem;
    text-align: center;
    padding: 0 0.5rem;
}

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.dt-testimonials-section {
    background: var(--dt-light);
}
.dt-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.dt-testimonial-card {
    background: var(--dt-white);
    border-radius: var(--dt-radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--dt-shadow);
    transition: var(--dt-transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.dt-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dt-shadow-md);
}
.dt-stars {
    display: flex;
    gap: 0.25rem;
    color: #f59e0b;
    font-size: 1rem;
}
.dt-testimonial-card > p {
    color: var(--dt-gray);
    font-style: italic;
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
}
.dt-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}
.dt-author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--dt-green), var(--dt-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dt-white);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.dt-testimonial-author h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dt-green);
    margin-bottom: 0.1rem;
}
.dt-testimonial-author span {
    font-size: 0.78rem;
    color: var(--dt-gray);
}

/* ── CONTACT SECTION ────────────────────────────────────────── */
.dt-contact-section {
    background: var(--dt-white);
}
.dt-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2.5rem;
}
.dt-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.dt-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.dt-contact-icon {
    width: 48px;
    height: 48px;
    background: var(--dt-green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dt-green);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.dt-contact-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dt-green);
    margin-bottom: 0.35rem;
}
.dt-contact-details p {
    color: var(--dt-gray);
    font-size: 0.88rem;
    line-height: 1.8;
}
.dt-contact-details a {
    color: var(--dt-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.dt-contact-details a:hover { color: var(--dt-green); }
.dt-contact-map { border-radius: var(--dt-radius); overflow: hidden; box-shadow: var(--dt-shadow); }
.dt-contact-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.dt-footer {
    background: var(--dt-green-dark);
    color: rgba(255,255,255,0.85);
    padding: 3.5rem 0 0;
}
.dt-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.dt-footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dt-accent);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dt-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.dt-footer-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
}
.dt-footer-logo span {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dt-accent);
    line-height: 1.35;
    text-transform: uppercase;
}
.footer-description {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.dt-social { margin-top: 0.5rem; }
.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dt-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--dt-transition);
    margin-right: 0.4rem;
}
.social-icon:hover {
    background: var(--dt-accent);
    transform: translateY(-2px);
    color: var(--dt-white);
}
.dt-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dt-footer-links li { margin-bottom: 0.65rem; }
.dt-footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.87rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}
.dt-footer-links a i { font-size: 0.65rem; color: var(--dt-accent); }
.dt-footer-links a:hover { color: var(--dt-white); }
.dt-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dt-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}
.dt-footer-contact li i { color: var(--dt-accent); margin-top: 3px; flex-shrink: 0; font-size: 0.85rem; }
.dt-footer-contact a { color: rgba(255,255,255,0.75); text-decoration: none; }
.dt-footer-contact a:hover { color: var(--dt-white); }
.dt-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.dt-footer-legal {
    display: flex;
    gap: 1.25rem;
}
.dt-footer-legal a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.dt-footer-legal a:hover { color: var(--dt-accent); }

/* ── BACK TO TOP (from script.js) ───────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--dt-green);
    color: var(--dt-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--dt-transition);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(46,125,50,0.35);
}
.back-to-top.show,
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--dt-green-dark);
    transform: translateY(-3px);
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── ─────────────────────────────────────────────────────────
   RESPONSIVE OVERRIDES
   order: 1024 → 768 → 576 → 480 → 375 → 320
──────────────────────────────────────────────────────────── */

/* 1024px — Tablet landscape */
@media (max-width: 1024px) {
    .dt-about-grid        { grid-template-columns: repeat(2, 1fr); }
    .dt-compare-banner    { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .dt-gallery-grid      { grid-template-columns: repeat(3, 1fr); }
    .dt-footer-grid       { grid-template-columns: repeat(2, 1fr); }
}

/* 768px — Tablet portrait / large phone */
@media (max-width: 768px) {

    /* Nav link color fix — white sidebar */
    .nav-link { color: #1a1a2e !important; }

    /* Sections */
    .dt-section { padding: 3.5rem 0; }

    /* About */
    .dt-about-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }

    /* Training Programs */
    .dt-programs-grid     { grid-template-columns: 1fr; }
    .dt-program-features  { grid-template-columns: 1fr; }
    .dt-program-highlights ul { grid-template-columns: 1fr; }
    .dt-compare-banner    { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.5rem; }

    /* Facilities */
    .dt-facilities-grid   { grid-template-columns: repeat(2, 1fr); }
    .dt-facilities-grid .dt-facility-card:last-child:nth-child(3n+2) { grid-column: auto; }

    /* Instructor */
    .dt-instructor-card   { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
    .dt-instructor-photo  { width: 120px; height: 120px; margin: 0 auto; }
    .dt-instructor-info h3 { text-align: center; }
    .dt-instructor-title  { text-align: center; }
    .dt-detail-item       { justify-content: center; }

    /* Admission */
    .dt-admission-grid    { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

    /* Gallery */
    .dt-gallery-grid      { grid-template-columns: repeat(2, 1fr); }

    /* Testimonials */
    .dt-testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

    /* Contact */
    .dt-contact-grid      { grid-template-columns: 1fr; gap: 2rem; }
    .dt-contact-map iframe { height: 280px; }

    /* Footer */
    .dt-footer-grid       { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .dt-footer-logo       { justify-content: center; }
    .dt-social            { display: flex; justify-content: center; }
    .dt-footer-links a,
    .dt-footer-contact li { justify-content: center; }
    .dt-footer-bottom     { flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
    .dt-footer-legal      { justify-content: center; }
}

/* 576px — Mobile landscape / mid-size phones */
@media (max-width: 576px) {
    .dt-section { padding: 3rem 0; }
    .dt-title   { font-size: clamp(1.2rem, 4vw, 1.6rem); }

    /* About — full width */
    .dt-about-grid { max-width: 100%; }
    .dt-about-card { padding: 1.5rem 1.25rem; }
    .dt-about-icon { width: 60px; height: 60px; font-size: 1.5rem; }

    /* Training programs */
    .dt-program-body      { padding: 1.25rem; }
    .dt-program-name      { font-size: 1.2rem; }
    .dt-compare-banner    { grid-template-columns: repeat(2, 1fr); padding: 1.25rem; }
    .dt-compare-item strong { font-size: 1.35rem; }

    /* Facilities */
    .dt-facilities-grid   { grid-template-columns: 1fr; }

    /* Gallery */
    .dt-gallery-grid      { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

    /* Testimonials */
    .dt-testimonials-grid { max-width: 100%; }

    /* Contact */
    .dt-contact-map iframe { height: 240px; }

    /* Admission */
    .dt-admission-grid    { max-width: 100%; }
    .dt-admission-card    { padding: 1.5rem 1.25rem; }
    .dt-admission-icon    { width: 60px; height: 60px; font-size: 1.5rem; }
}

/* 480px — Standard mobile */
@media (max-width: 480px) {
    .dt-section { padding: 2.5rem 0; }

    /* Programs */
    .dt-program-header    { padding: 1.5rem; }
    .dt-program-badge     { width: 60px; height: 60px; font-size: 1.6rem; }
    .dt-program-name      { font-size: 1.1rem; }
    .dt-program-body      { padding: 1rem; }
    .dt-program-desc      { font-size: 0.88rem; }
    .dt-feature-item      { padding: 0.6rem; }
    .dt-feature-item strong { font-size: 0.75rem; }
    .dt-feature-item span { font-size: 0.7rem; }

    /* Compare banner */
    .dt-compare-banner    { padding: 1rem; gap: 0.75rem; }
    .dt-compare-item i    { font-size: 1.4rem; }
    .dt-compare-item strong { font-size: 1.2rem; }

    /* Gallery */
    .dt-gallery-grid      { grid-template-columns: 1fr; }

    /* Contact */
    .dt-contact-map iframe { height: 220px; }
    .dt-contact-item      { gap: 0.75rem; }
    .dt-contact-icon      { width: 40px; height: 40px; font-size: 0.95rem; }
}

/* 375px — Small phones (iPhone SE) */
@media (max-width: 375px) {
    .dt-title   { font-size: clamp(1rem, 4.5vw, 1.35rem); }
    .dt-section { padding: 2rem 0; }

    .dt-about-icon, .dt-admission-icon { width: 54px; height: 54px; font-size: 1.3rem; }
    .dt-program-name { font-size: 1rem; }
    .dt-compare-banner { grid-template-columns: repeat(2, 1fr); }
    .dt-facility-icon { width: 54px; height: 54px; font-size: 1.35rem; }
    .dt-contact-map iframe { height: 200px; }
}

/* 320px — Very small screens */
@media (max-width: 320px) {
    .dt-title   { font-size: 1rem; }
    .dt-compare-banner { grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 1rem 0.75rem; }
    .dt-compare-item strong { font-size: 1.1rem; }
    .dt-footer-legal  { flex-direction: column; gap: 0.4rem; }
}
