body { 
    font-family: 'Arial', sans-serif; 
    margin: 0; 
    padding: 0; 
    color: #333333; 
    background-color: #1a365d; /* Changes left and right outer sides to rich blue */
}

/* Header Navigation Layout */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background-color: #112240; /* Slightly darker blue to anchor top layout menu bar */
    padding: 15px 10%; 
    border-bottom: 2px solid #f97316; /* Adds premium thin orange boundary indicator line */
}

.navbar .logo { 
    color: white; 
    font-weight: bold; 
    font-size: 1.25rem; 
}

.navbar ul { 
    list-style: none; 
    display: flex; 
    margin: 0; 
    padding: 0; 
}

.navbar ul li { 
    margin-left: 20px; 
}

.navbar ul li a { 
    color: #cbd5e1; 
    text-decoration: none; 
    font-weight: bold; 
}

.navbar ul li a.active, .navbar ul li a:hover { 
    color: #f97316; 
}

/* Beautiful White Center Card Container (Gives blue at left and right sides) */
.hero-section {

    max-width: 1200px; 
    min-height: 220mm;
    margin: 40px auto; /* Centers your content container, exposing blue background columns */
    padding: 40px;
    background: #ffffff; /* Sets the center content block area color to clean white */
    border-radius: 12px; /* Smooth professional rounded corner edges */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Premium depth drop shadows */
    box-sizing: border-box;
}

.hero-section h1 {
    color: #1a365d;
    font-size: 2.1rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* Unified, Tight, Perfectly Aligned Body Text Block */
.main-body-text {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.6; 
    text-align: left; 
    margin-bottom: 25px;
}

/* Callout Box inside the White Container */
.heart-callout {
    background-color: #eff6ff; 
    border-left: 4px solid #1a365d;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.heart-callout p {
    color: #1a365d !important;
    font-size: 1.05rem !important;
    margin: 0;
    text-align: center !important;
}

.hero-section .cta-buttons {
    text-align: center;
}

.btn { 
    padding: 12px 30px; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 6px; 
    background-color: #f97316; 
    color: white; 
    display: inline-block;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.2);
}

.btn:hover {
    background-color: #ea580c;
}

/* Matching History Page Content Card Frame */
.container { 
   /* Update your .container max-width parameter to match your home view sizing */
.container { 
    max-width: 1000px; /* Changes this to stay completely uniform */
    width:90%;
    min-height: 220mm; /* Sychronizes height lines as well */
    margin: 40px auto; 
    padding: 40px; 
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

}

.page-title { color: #1a365d; text-align: center; margin-top: 0; }
.subtitle { text-align: center; color: #64748b; margin-bottom: 30px; }
.timeline { border-left: 4px solid #1a365d; padding-left: 20px; margin-left: 10px; }
.timeline-item { margin-bottom: 20px; background: #f1f5f9; padding: 15px; border-radius: 6px; }
.timeline-item h3 { margin-top: 0; color: #f97316; }
/* This forces the items into a clean horizontal line and shrinks the logos */
.heading-row {
    display: flex !important;
    flex-direction: row !important; /* Forces items horizontal left-to-right */
    justify-content: center !important; 
    align-items: center !important;     
    gap: 15px !important; /* Space between logo and text */
    margin-bottom: 25px !important;     
}

.heading-row h1 {
    margin: 0 !important;    
    color: #1a365d;
    font-size: 2rem !important; /* Keeps title neat */
    text-align: center;
}

.heading-logo {
    width: 125px !important;  /* Shrinks the logo down to a clean, small size */
    height: 125px !important; /* Ensures it stays a perfect circle */
    object-fit: contain !important;
}
/* Homepage Featured Banner Styling Rules */
.banner-container {
    width: 100%;
    text-align: center;
    margin-bottom: 30px; /* Adds a clean vertical space gap right before your paragraphs start */
}

.home-banner-image {
    max-width: 100%;     /* Prevents the image from bleeding out of your white sheet container */
    width: 100%;
    height: auto;        /* Preserves your original aspect ratios so faces do not look stretched */
    max-height: 700px;   /* Caps the vertical height so users do not have to scroll too far down */
    border-radius: 8px;  /* Adds soft rounded corners to match your container edges layout */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Elegant soft depth background shadow drop */
    object-fit: cover;   /* Crisp alignment formatting property */
}

/* Thickened Timeline Core Line Adjustment */
.timeline { 
    border-left: 6px solid #1a365d !important; /* Thickens the small white/blue line significantly */
    padding-left: 30px; 
    margin-left: 20px; 
    margin-top: 40px;
}

/* Timeline Custom Elements */
.timeline-item { 
    position: relative;
    margin-bottom: 40px; 
    background: #f8fafc; 
    padding: 25px; 
    border-radius: 8px; 
    border: 1px solid #e2e8f0;
}

/* Circular Node Indicator resting right on the thick vertical line */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 28px;
    width: 16px;
    height: 16px;
    background-color: #f97316; /* Pop orange color node */
    border: 3px solid #ffffff;
    border-radius: 50%;
}

.timeline-date {
    display: inline-block;
    background-color: #1a365d;
    color: white;
    padding: 4px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 10px;
}

.timeline-item h3 { 
    margin-top: 0; 
    color: #1a365d; 
    font-size: 1.4rem;
}

/* Compact, clean horizontal timeline picture display boxes */
.timeline-image-box {
    margin-top: 15px;
    width: 100%;
    max-width: 450px; /* Restricts the photos from expanding too huge */
}

.timeline-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    object-fit: cover;
}
/* Clickable Timeline Layout Link Adjustments */
.timeline-link-card {
    text-decoration: none !important; /* Removes default blue underlines */
    color: inherit !important;         /* Keeps body text color naturally charcoal grey */
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle elegant micro-animation hover effect when users touch or hover over cards */
.timeline-link-card:hover .timeline-item {
    background-color: #ffffff !important;
    border-color: #f97316 !important; /* Glows orange at the border when highlighted */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px); /* Lifts up slightly to signal interactivity */
}

.read-more-indicator {
    display: block;
    margin-top: 15px;
    font-size: 0.95rem;
    color: #f97316; /* Matches your action branding theme color */
    font-weight: bold;
}
/* Custom Side-by-Side Media/Text Row Styling Rules */
.history-page-title {
    color: #1a365d;
    font-size: 2.2rem;
    margin-top: 20px;
    margin-bottom: 5px;
}

.history-page-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 40px;
}

.history-content-row {
    display: flex;
    flex-direction: row; /* Locks text column and image box side-by-side horizontally */
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px; /* Generous whitespace split channel between reading columns */
    margin-top: 20px;
}

.history-text-column {
    flex: 1.3; /* Allocates slightly more horizontal space for comfortable paragraph reading */
}

.history-media-column {
    flex: 1; /* Allocates balanced space for your side photo frame */
    text-align: center;
}

.history-side-photo {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px; /* Smooth rounded corners matching your main layout cards */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Adds professional depth shadow layers */
}

.photo-caption-text {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

.back-btn {
    background-color: #475569 !important; /* Premium neutral grey button for returning back */
    padding: 8px 18px !important;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.back-btn:hover {
    background-color: #334155 !important;
}

/* Mobile Responsiveness View: Automatically stacks photo under text on small smartphone glass screens */
@media (max-width: 768px) {
    .history-content-row {
        flex-direction: column;
        gap: 30px;
    }
}
/* Update ONLY these three blocks near the bottom of your style.css: */

.history-content-row {
    display: flex;
    flex-direction: row; 
    justify-content: flex-start; /* Shifts everything tightly from the left instead of stretching out */
    align-items: flex-start;
    gap: 10px; /* Tightens the blank whitespace gap split between text and picture from 40px to 20px */
    margin-top: 10px;
}

.history-text-column {
    flex: 1.1; /* Slightly scales back text space to let the photo shift inward leftwards */
}

.history-media-column {
    flex: 1; 
    text-align: left; /* Changes photo alignment layout inside its box block from center to left */
}
/* Forces all text rows on your history subpages to be bright and fully visible */
.history-text-column .main-body-text {
    color: #ffffff !important;      /* Sets text to bright crisp white */
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Adds a subtle shadow so it pops out clearly */
}

/* Adjusts your text paragraph vertical alignment next to the photos */
.history-text-column {
    padding-top: 20px !important;    /* Shifts your paragraph text down slightly to perfectly align with the top of the photo */
}

.history-text-column .main-body-text {
    font-size: 1.08rem !important;   /* Keeps text highly professional and neat */
    line-height: 1.85 !important;    /* EXPANDS vertical spacing between sentences so the text box stretches down nicely next to your images */
    margin-bottom: 35px !important;  /* Adds breathing room between paragraph blocks */
    text-align: left !important;     /* Keeps text neat and aligned to the left */
}
/* Fixes visibility for your 2006 history page title headers */
.history-page-title {
    color: #ffffff !important;        /* Forces your main title heading to be crisp, bright white */
    font-size: 2.2rem !important;
    font-weight: bold !important;
    margin-top: 20px !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.history-page-subtitle {
    color: #cbd5e1 !important;        /* Forces your description subtitle row to be a clean, light silver cream */
    font-size: 1.1rem !important;
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    display: block !important;
}
/* YouTube Action Button Redirect Layout Rules */
.video-link-container {
    margin-top: 30px !important;
    margin-bottom: 20px !important;
    text-align: left;
}

.youtube-btn {
    background-color: #ef4444 !important; /* YouTube Red Branding Theme Color */
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    display: inline-block !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
    transition: background-color 0.2s ease !important;
}

.youtube-btn:hover {
    background-color: #dc2626 !important; /* Slightly darker rich red on hover */
}
/* Highlights your 2006 history description subtitle block row */
.history-page-subtitle {
    color: #f97316 !important;        /* Premium vibrant orange branding color to highlight the text */
    font-size: 1.15rem !important;    /* Boosts the typography size slightly so it catches the eye */
    font-weight: bold !important;     /* Thickens the letters to make it crisp and readable */
    background-color: rgba(249, 115, 22, 0.1) !important; /* Adds a soft, subtle amber glow overlay behind the text line */
    padding: 8px 15px !important;     /* Creates inner breathing cushions around the highlighted bar */
    border-radius: 4px !important;    /* Rounds out the edges of the highlight bar neatly */
    display: inline-block !important; /* Prevents the highlighting container from stretching across the entire monitor screen */
    margin-top: 5px !important;
    margin-bottom: 40px !important;
}
/* Pushes your history paragraphs safely away from the left screen edge */
.history-text-column {
    flex: 1.2 !important;
    padding-left: 15px !important;   /* Pushes the text away from the left border edge safely */
    padding-right: 20px !important;  /* Adds a balanced gap before the center photo column */
    box-sizing: border-box !important;/* Keeps the text container from bloating your screen width */
}

/* Adds a beautiful matching edge gap for the photos on the right screen border */
.history-media-column {
    padding-right: 40px !important;  /* Stops the images from crashing into the right screen edge */
    box-sizing: border-box !important;
}
/* Fixes the jagged text edges and lines them up straight on the right side */
.history-text-column .main-body-text {
    text-align: justify !important;   /* Flushes all sentences perfectly straight on the right edge */
    text-justify: inter-word !important; /* Optimizes word spacing to keep the reading smooth */
    padding-left: 40px !important;    /* Keeps your clean safety edge gap from the left border screen */
    padding-right: 30px !important;   /* Adds a crisp, clear margin gap before the center photo column */
    box-sizing: border-box !important;
}
/* Responsive Photo Grid Layout Framework */
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Perfect rows of 4 items across desktop displays */
    gap: 25px !important;                             /* Clean layout spaces separating boxes */
    margin-top: 30px !important;
    padding: 0 40px !important;                       /* Matches your clean side margins padding cushions */
    box-sizing: border-box !important;
}

.gallery-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: #112240 !important;                  /* Dark blue cards backing to anchor photo boxes */
    padding: 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

.gallery-photo {
    width: 100% !important;
    height: 160px !important;                         /* Standard uniform height alignment box ceiling */
    object-fit: cover !important;                     /* Keeps photos crisp and clean without squeezing them */
    border-radius: 6px !important;
}

.gallery-caption {
    color: #cbd5e1 !important;                       /* Bright light-silver text color for great readability */
    font-size: 0.85rem !important;                    /* Small description styling text profile */
    line-height: 1.4 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    text-align: center !important;
}

/* Mobile Responsiveness View: Automatically switches to 2 columns on tablets, and 1 column on phones */
@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr !important; padding: 0 20px !important; }
}
/* Premium Full-Screen Lightbox Pop-up Layout Styles */
.lightbox-overlay {
    display: none;             /* Keeps the pop-up hidden until an image is clicked */
    position: fixed;           /* Stays locked in place over the screen viewport */
    z-index: 9999;             /* Forces it to float on top of headers, footers, and code maps */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95); /* Deep slate-blue/black dark glass backdrop */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-display-image {
    max-width: 85% !important; /* Restricts the large view safely away from phone screen boundaries */
    max-height: 75% !important;/* Caps height so it sits neatly centered on horizontal mobile glass */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomInEffect 0.25s ease; /* Smooth, quick expansion micro-animation */
}

.lightbox-caption-bar {
    margin-top: 15px;
    color: #cbd5e1 !important; /* Soft, light silver cream text for excellent dark-theme visibility */
    font-size: 1rem;
    text-align: center;
}

.lightbox-close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}
.lightbox-close-btn:hover {
    color: #f97316;             /* Turns your branding orange theme color on hover */
}

/* Smooth zoom transition calculation */
@keyframes zoomInEffect {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* Contact Page Dual-Column Grid Framework Styling Rules */
.contact-layout-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    margin-top: 20px;
}

.contact-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc !important;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.info-icon {
    font-size: 1.6rem;
}

.info-text h4 {
    margin: 0;
    color: #1a365d !important;
    font-size: 1rem;
}

.info-text p {
    margin: 3px 0 0 0;
    color: #475569 !important;
    font-size: 0.95rem;
}

/* Contact Message Box Form Styling */
.contact-form-column {
    flex: 1.2;
    background: #ffffff !important;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155 !important;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #f97316; /* Highlights orange on cursor click selection box */
}

.submit-btn {
    background-color: #f97316 !important; /* Premium corporate orange theme action button */
    color: #ffffff !important;
    width: 100%;
    padding: 12px !important;
    font-size: 1rem !important;
    font-weight: bold;
    border-radius: 6px !important;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

.submit-btn:hover {
    background-color: #ea580c !important;
}

/* Mobile Responsiveness View: Automatically stacks form below info cards on smartphone glass */
@media (max-width: 768px) {
    .contact-layout-row {
        flex-direction: column;
        gap: 35px;
    }
}
/* Fixes the width blocks so they wrap tightly and sit side-by-side */
.contact-layout-row {
    display: flex !important;
    flex-direction: row !important; /* Forces the columns to snap side-by-side horizontally */
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 40px !important;            /* Adds a clean layout split gap between left and right sides */
    margin-top: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Shrinks the width of your information cards so they look shorter */
.contact-info-column {
    flex: 1 !important;             /* Takes up a balanced half of the canvas width */
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.info-card {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    background: #f8fafc !important; /* Crisp light container background backing */
    padding: 15px 20px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    width: 100% !important;         /* Stays bounded perfectly inside the shortened column footprint */
    box-sizing: border-box !important;
}

/* Restores the interactive message box to the right side column panel */
.contact-form-column {
    flex: 1.1 !important;           /* Takes up the remaining horizontal layout side space */
    background: #ffffff !important;
    padding: 25px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    box-sizing: border-box !important;
}
/* Centers your layout cards down the middle and shrinks their width */
.contact-info-column {
    max-width: 650px !important;    /* Forces the bars to be shorter so they never touch the screen edges */
    width: 85% !important;          /* Leaves wide, beautiful blue margin paths on both sides */
    margin: 30px auto !important;   /* Centers the entire stack perfectly horizontally on the screen */
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;           /* Creates a clean vertical gap between each white card strip */
}

/* Formats each white strip to stay bounded inside the centered column layout */
.info-card {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    background: #f8fafc !important; /* Crisp light container background backing */
    padding: 15px 20px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    width: 100% !important;         
    box-sizing: border-box !important;
}
/* Shifts the main title away from the left glass border and centers it with the cards */
.history-page-title {
    max-width: 650px !important;    /* Matches the exact width boundary of your shortened cards */
    width: 85% !important;          /* Keeps the width uniform with your info cards */
    margin: 40px auto 5px auto !important; /* The 'auto' left/right centers the text block horizontally */
    padding-left: 5px !important;   /* Subtle internal adjust for crisp structural tracking */
    text-align: left !important;    /* Keeps the font aligned cleanly from the left side of its box */
}

/* Shifts the orange subtitle box to line up perfectly beneath the main title */
.history-page-subtitle {
    max-width: 650px !important;    /* Matches the card width footprint */
    width: 85% !important;
    margin: 0 auto 10px auto !important; /* Centers the orange bar horizontally down the screen */
}
/* Lines up your main title header perfectly straight with the white info cards below */
.history-page-title {
    max-width: 650px !important;    /* Matches the exact grid width of your white cards */
    width: 85% !important;
    margin: 40px auto 10px auto !important; /* Horizontally centers the text box container on screen */
    text-align: left !important;    /* Flushes the text to the left side of its centered boundary */
    color: #ffffff !important;      /* Sharp, premium white text */
    font-size: 2.4rem !important;   /* Makes the heading bold and impactful */
    font-weight: bold !important;
    padding: 0 !important;          /* Removes any stray spacing skewing the alignment */
}

/* Lines up the orange highlight box perfectly under the main title header */
.history-page-subtitle {
    max-width: 650px !important;    /* Matches the exact footprint frame width */
    width: 85% !important;
    margin: 0 auto 35px auto !important; /* Centers the subtitle box horizontally down the middle */
    text-align: left !important;    /* Forces text alignment to match the main title edge */
}
/* Centers the main headline text directly in the middle of the screen viewport */
.history-page-title {
    max-width: 650px !important;    /* Matches your card layout constraints */
    width: 85% !important;
    margin: 45px auto 12px auto !important; /* Centers the bounding block box on screen */
    text-align: center !important;  /* Forces the letters to sit perfectly in the middle of the line */
    color: #ffffff !important;      /* Crisp white text font */
    font-size: 2.5rem !important;   
    font-weight: bold !important;
}

/* Centers the orange subtitle box bar directly underneath the title */
.history-page-subtitle {
    max-width: 650px !important;    /* Maintains uniform spacing proportions */
    width: 85% !important;
    margin: 0 auto 40px auto !important; /* Centers the whole subtitle strip container */
    text-align: center !important;  /* Centers the text characters inside the orange background */
    display: block !important;      /* Guarantees it renders as a clean centered block element */
}
/* 📱 GLOBAL MASTER RESPONSIVE OVERRIDE */
@media (max-width: 768px) {
    /* 1. Force the main body and core wrapper structure to span full width */
    html, body {
        width: 100% !important;
        overflow-x: hidden !important; /* Wipes out that side-swipe gap completely! */
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 2. Unlocks your hero sections and main containers from being squeezed */
    .container, .main-container, .hero-section, main {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px 15px !important; /* Gives beautiful breathing padding on phone edges */
        margin: 0 auto !important;
    }

    /* 3. Fixes your navigation header so it wraps neatly on phone viewports */
    .navbar {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px !important;
        text-align: center !important;
    }
    
    .navbar ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    /* 4. Scales your circular logos and images so they shrink beautifully without clipping */
    img, .logo-circle {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 5. Shrink the massive titles so they fit gracefully without looking long */
    h1, .history-page-title {
        font-size: 1.8rem !important; /* Drops from 2.5rem desktop size */
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }

    h3 {
        font-size: 1.25rem !important;
        margin-bottom: 10px !important;
    }

    /* 6. Make long story text look cleaner and wrap beautifully on small phone screens */
    p, .main-body-text {
        font-size: 1rem !important; /* Crisp, readable mobile standard size */
        line-height: 1.6 !important; /* Slightly tighter text line spacing */
        text-align: left !important; /* Left-align looks much tighter on narrow mobile rows than justify */
        margin-bottom: 15px !important;
    }

    /* 7. Squeeze down oversized margin cushions and sections so users don't have to scroll forever */
    .hero-section, main, .container {
        padding: 15px 12px !important; /* Tight edge borders */
    }

    div {
        gap: 15px !important; /* Brings stacked rows slightly closer together */
    }
}
    /* ===== Mobile navbar fix ===== */
@media (max-width: 768px) {
    header {
        width: 100% !important;
    }

    header .navbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 10px !important;
        box-sizing: border-box !important;
    }

    header .navbar .logo {
        font-size: 1.2rem !important;
        text-align: center !important;
    }

    header .navbar ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 18px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    header .navbar ul li {
        margin: 0 !important;
    }

    header .navbar ul li a {
        font-size: 0.95rem !important;
        white-space: nowrap;
    }
}










