/* ============================================================
   Morning Star Printing Press Co. — Main Stylesheet
   ============================================================ */

/* Reset & Base
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0D47FF;
    /* Premium Blue from logo */
    --accent: #0933B5;
    --surface: #FFFFFF;
    --background: #F8FAFC;
    /* Clean off-white */
    --text: #0F172A;
    --muted: #475569;
    --border: #E2E8F0;
}

body.dark-mode {
    --primary: #3B82F6;
    --accent: #60A5FA;
    --surface: #1C2331;
    /* Softer, deep bluish-gray for cards */
    --background: #11151F;
    /* Deeper midnight background for reduced eye strain */
    --text: #F8FAFC;
    /* Crisp white for headings */
    --muted: #A3B3C9;
    /* Lighter, more readable gray for paragraphs */
    --border: #2C3647;
}

body.dark-mode .bg-surface {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.8;
    font-size: 16.5px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1140px;
}

/* Navbar
   ============================================================ */
.navbar {
    background-color: #2563EB;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

.navbar.scrolled {
    background-color: #1D4ED8;
    padding: 0.25rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar-brand img {
    height: 48px;
    width: 48px;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: white;
    padding: 3px;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar.scrolled .navbar-brand img {
    height: 42px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.8rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover,
.nav-link.active {
    color: #3B82F6 !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: #3B82F6 !important;
}

/* Footer
   ============================================================ */
.footer-logo {
    height: 120px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
}

/* ============================================================
   Our Story Section
   ============================================================ */
.our-story-section {
    padding: 80px 15px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.story-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.story-intro {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 620px;
    line-height: 1.8;
}

/* Story Content Card */
.story-content-card {
    max-width: 780px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 0;
}

.story-accent-bar {
    width: 6px;
    min-width: 6px;
    background: linear-gradient(to bottom, #2563EB, #1D4ED8);
    border-radius: 0;
    flex-shrink: 0;
}

.story-text {
    padding: 2rem 2.2rem;
}

.story-text p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.story-first-para::first-letter {
    font-size: 3rem;
    font-weight: 800;
    color: #2563EB;
    float: left;
    line-height: 0.85;
    margin-right: 0.12em;
    margin-top: 0.08em;
    font-family: 'Inter', sans-serif;
}

.story-inline-quote {
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid #2563EB;
    border-radius: 0 12px 12px 0;
    padding: 1.2rem 1.5rem;
    margin: 1.4rem 0;
}

.story-inline-quote p {
    font-size: 1rem !important;
    font-style: italic;
    color: var(--text) !important;
    font-weight: 500;
    margin: 0 !important;
}


.story-quote {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(37, 99, 235, 0.03));
    border-left: 4px solid #2563EB;
    border-radius: 0 16px 16px 0;
    padding: 1.5rem 2rem;
    max-width: 720px;
    position: relative;
}


.story-quote-icon {
    font-size: 1.8rem;
    color: #2563EB;
    opacity: 0.3;
    display: block;
    margin-bottom: 0.5rem;
}

.story-quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.75;
    margin: 0;
    font-weight: 500;
}

.story-timeline {
    position: relative;
    padding-left: 0;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2563EB, rgba(37, 99, 235, 0.1));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.2rem;
    align-items: flex-start;
}

.timeline-year {
    min-width: 80px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 800;
    color: #2563EB;
    padding-top: 0.15rem;
    letter-spacing: 0.5px;
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -2.35rem;
    top: 0.55rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563EB;
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 2px #2563EB;
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    flex: 1;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
    transform: translateX(4px);
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.timeline-content h4 i {
    color: #2563EB;
}

.timeline-content p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.story-stats {
    max-width: 780px;
}

.stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-top: 3px solid #2563EB;
}

.stat-box:hover {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #2563EB;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-footer {
    background-color: #2563EB;
    color: white;
    padding: 8px 0;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 0.8;
}

/* Buttons & Interactions
   ============================================================ */
.btn-primary-custom,
.btn-primary-rect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #2563EB;
    color: white !important;
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-rect:hover,
.btn-primary-custom:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-phone-link i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-phone-link:hover {
    color: #93C5FD;
}

/* Hero Section
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section--video {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    background-color: #0A0F3D;
    /* Dark background to hide the light blue page background */
}

.hero-section--video::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Subtle dark overlay so the white text is perfectly readable, but the video remains crisp and vibrant */
    background: linear-gradient(160deg, rgba(0, 0, 40, 0.5) 0%, rgba(0, 0, 20, 0.7) 100%);
    z-index: 1;
    /* Above video (0), below content (2) */
    display: block !important;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    background-color: #0A0F3D;
    /* Fallback color */
    transition: opacity 1.5s ease-in-out;
    /* Smooth crossfade animation */
}

.hero-video.active-video {
    opacity: 1;
}

.hero-video.inactive-video {
    opacity: 0;
}

.hero-section--video .container,
.hero-section--video .hero-content,
.hero-section--video .hero-image-box {
    position: relative;
    z-index: 2;
    /* Keep content above the video */
}

.hero-section.hero-section--inner {
    padding: 60px 0;
    min-height: 200px;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

/* Hide the decorative circles on the video section so they don't block the video */
.hero-section--video::before,
.hero-section--video::after {
    display: none;
}

.hero-section::before {
    top: 10%;
    right: -5%;
    width: 320px;
    height: 320px;
}

.hero-section::after {
    bottom: -15%;
    left: -5%;
    width: 280px;
    height: 280px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title.hero-title--small {
    font-size: 2.2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-box {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.service-image,
.detail-image,
.hero-image-box img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
}

/* Sections
   ============================================================ */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.4rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto;
}

.section-heading {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.section-description {
    color: var(--muted);
    line-height: 1.8;
}

.section-heading--accent {
    color: var(--primary);
}

.bg-surface {
    background: linear-gradient(135deg, rgba(13, 71, 255, 0.04) 0%, rgba(13, 71, 255, 0.08) 100%);
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

/* Cards
   ============================================================ */
.content-card,
.sidebar-card,
.contact-card,
.map-card,
.cta-card,
.info-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.content-card--accent {
    border-left: 5px solid var(--primary);
}

.content-card--compact {
    padding: 1.5rem;
}

.info-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.info-card--tall {
    min-height: 400px;
}

.info-card--short {
    min-height: 320px;
}

.info-card h3,
.info-card p,
.info-card strong {
    color: white;
}

.info-card i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

/* Service Cards
   ============================================================ */
.service-icon-box {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon,
.service-card i,
.contact-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon circle wrapper */
.service-card .icon-circle {
    width: 72px;
    height: 72px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
    font-size: 2rem;
    color: var(--primary);
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.07);
    height: 100%;
    border: 1px solid var(--border);
    border-top: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.15);
    border-top-color: #2563EB;
}

.service-card:hover .icon-circle {
    background: rgba(37, 99, 235, 0.18);
    transform: scale(1.08);
}

.service-card h3 {
    color: var(--text);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.service-card p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card .btn-primary-custom {
    margin-top: auto;
}

/* Feature Cards
   ============================================================ */
.feature-card {
    border-radius: 16px;
    background: var(--surface);
    padding: 2.2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    height: 100%;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Counter
   ============================================================ */
.counter {
    text-align: center;
    padding: 2rem;
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}

.counter-label {
    color: white;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* CTA Card
   ============================================================ */
.cta-card {
    background: var(--surface);
    padding: 3rem 2.5rem;
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.cta-card h2 {
    margin-bottom: 1rem;
    color: var(--text);
}

.cta-card p {
    color: var(--muted);
    line-height: 1.8;
}

/* Sidebar Card
   ============================================================ */
.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card li {
    padding: 1rem 0;
    border-bottom: 1px solid #eef2f6;
}

.sidebar-card li:last-child {
    border-bottom: none;
}

.sidebar-card strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.35rem;
}

/* Contact
   ============================================================ */
.contact-card a {
    color: var(--primary);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

.contact-info-card .icon-box {
    min-width: 56px;
    height: 56px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-size: 1.4rem;
}

.contact-info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 700;
}

.contact-info-card p,
.contact-info-card a {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.97rem;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.contact-info-grid {
    display: grid;
    gap: 1rem;
}

.contact-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.contact-actions .btn-primary-custom {
    min-width: 48px;
    height: 48px;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

/* Map
   ============================================================ */
.map-card {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.map-card iframe {
    width: 100%;
    min-height: 420px;
    border: none;
}

/* Buttons
   ============================================================ */
.btn-primary-custom,
.btn-secondary-custom {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 254, 0.2);
}

.btn-primary-custom {
    background-color: var(--primary);
    color: white !important;
    border: 2px solid var(--primary);
}

.btn-primary-custom:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 254, 0.3);
    color: white !important;
}

.btn-secondary-custom {
    background-color: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.btn-secondary-custom:hover {
    background-color: var(--primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 254, 0.3);
}

/* Forms
   ============================================================ */
.alert {
    border-radius: 14px;
}

.form-control {
    border-radius: 12px;
    border: 1px solid #d8dce6;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 255, 0.18);
}

.form-label {
    font-weight: 600;
    color: var(--text);
}

.required-star {
    color: #d00000;
}

/* Utilities
   ============================================================ */
.rounded-lg {
    border-radius: 20px !important;
}

.text-muted {
    color: var(--muted) !important;
}

.text-dark,
.text-body {
    color: var(--text) !important;
}

/* Animations
   ============================================================ */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top Button
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 254, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Responsive — Large (≤992px)
   ============================================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.6rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 254, 0.08);
    }
}

/* Responsive — Medium (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 50px 0;
        min-height: auto;
    }

    .hero-section.hero-section--inner {
        min-height: 160px;
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .section-heading {
        font-size: 1.4rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-primary-custom {
        width: 100%;
        text-align: center;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions .btn-primary-custom {
        width: 100%;
        justify-content: center;
    }

    .contact-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .map-card iframe {
        min-height: 280px;
    }

    footer .row>div {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .content-card,
    .sidebar-card {
        padding: 1.25rem;
    }
}

/* Responsive — Small (≤576px)
   ============================================================ */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .section-padding {
        padding: 35px 0;
    }

    .navbar-brand img {
        height: 45px;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        font-size: 0.9rem;
        padding: 10px 18px;
    }

    .feature-card {
        padding: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .map-card iframe {
        min-height: 220px;
    }

    .contact-info-card {
        padding: 1.25rem;
    }

    .contact-info-card h3 {
        font-size: 1rem;
    }

    .contact-info-card p,
    .contact-info-card a {
        font-size: 0.88rem;
    }
}

/* ============================================================
   Keyframe Animations
   ============================================================ */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Float icon on card hover */
.service-card:hover .icon-circle {
    animation: float 2s ease-in-out infinite;
}

/* Shimmer on stat numbers */
.stat-number {
    background: linear-gradient(90deg, #2563EB 40%, #1D4ED8 60%, #2563EB 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Pulse on back-to-top */
.back-to-top.show {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Story content card fade-in */
.story-content-card {
    animation: scaleIn 0.6s ease both;
}

/* ============================================================
   Responsive - Tablet (max 768px) - New Sections
   ============================================================ */
@media (max-width: 768px) {
    .our-story-section {
        padding: 50px 10px 40px;
    }

    .story-content-card {
        flex-direction: column;
        border-radius: 16px;
    }

    .story-accent-bar {
        width: 100%;
        min-width: unset;
        height: 6px;
    }

    .story-text {
        padding: 1.5rem 1.2rem;
    }

    .story-first-para::first-letter {
        font-size: 2.2rem;
    }

    .story-stats {
        max-width: 100%;
    }

    .story-timeline::before {
        left: 55px;
    }

    .timeline-year {
        min-width: 55px;
        font-size: 0.75rem;
    }

    .timeline-year::after {
        right: -1.9rem;
    }

    .icon-circle {
        width: 58px;
        height: 58px;
        font-size: 1.6rem;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* ============================================================
   Responsive - Mobile (max 480px) - New Sections
   ============================================================ */
@media (max-width: 480px) {
    .our-story-section {
        padding: 35px 8px 30px;
    }

    .story-intro {
        font-size: 0.92rem;
    }

    .story-text p {
        font-size: 0.92rem;
        line-height: 1.8;
    }

    .story-text {
        padding: 1.2rem 1rem;
    }

    .story-first-para::first-letter {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-box {
        padding: 1rem 0.75rem;
    }

    .service-card {
        padding: 1.2rem;
        border-radius: 14px;
    }

    .icon-circle {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .navbar-brand img {
        height: 36px;
        width: 36px;
    }

    .story-inline-quote {
        padding: 0.8rem 1rem;
    }

    .story-inline-quote p {
        font-size: 0.88rem !important;
    }

    .footer-social span {
        font-size: 0.82rem;
    }
}

/* ============================================================
   Testimonials Section
   ============================================================ */

/* ── Light Mode (default) ── */
.testimonials-section {
    background: #FFFFFF;
}

.testimonials-heading {
    color: #0F172A;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.testimonials-subtext {
    color: #475569;
    font-size: 1rem;
    margin: 0;
}

.testimonial-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
}

.testimonial-stars i {
    color: #F59E0B;
    font-size: 1.1rem;
}

.testimonial-text {
    color: #475569;
    font-size: 0.97rem;
    line-height: 1.75;
    font-style: italic;
    flex-grow: 1;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #E2E8F0;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}

.testimonial-name {
    color: #0F172A;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
}

.testimonial-source {
    color: #64748B;
    font-size: 0.83rem;
    margin-top: 2px;
}

/* ── Dark Mode overrides ── */
body.dark-mode .testimonials-section {
    background: #0D1B2E;
}

body.dark-mode .testimonials-heading {
    color: #FFFFFF;
}

body.dark-mode .testimonials-subtext {
    color: #8FA3BF;
}

body.dark-mode .testimonial-card {
    background: #1A2A40;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .testimonial-card:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .testimonial-text {
    color: #CBD5E1;
}

body.dark-mode .testimonial-author {
    border-top-color: rgba(255, 255, 255, 0.07);
}

body.dark-mode .testimonial-name {
    color: #F1F5F9;
}

@media (max-width: 767px) {
    .testimonials-heading {
        font-size: 1.8rem;
    }

    .testimonial-card {
        padding: 1.4rem;
    }
}