@import url('https://googleapis.com');

/* ==========================================================================
   1. UNIVERSAL FLUID RESET MODEL
   ========================================================================== */
* {
    box-sizing: border-box; /* Includes edge boundaries and padding depths inside item width limits */
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. GLOBAL FLUID BODY CONTAINER (Supreme Readability Layout)
   ========================================================================== */
body {
    margin: 0 auto;
    padding: 45px 24px;
    width: 100%;
    /* COMFORTABLE PC CANVAS WINDOW: Scaled to 960px for flawless reading lines without eye fatigue */
    max-width: 960px; 
    font-family: 'Open Sans', Arial, Helvetica, sans-serif; /* Primary fluid typography setting */
    line-height: 1.75;
    color: #222222;
    background-color: #ffffff;
}

/* ==========================================================================
   3. SECTIONS TYPOGRAPHY LAYER (Academic Editorial Balance)
   ========================================================================== */
h1 {
    font-family: 'Merriweather', Georgia, serif; /* Distinct historical flair for main articles titles */
    font-size: 2.8rem;
    line-height: 1.25;
    margin-bottom: 22px;
    font-weight: 700;
    color: #111111;
    text-align: center;
}

h2 {
    font-family: 'Merriweather', Georgia, serif; /* Styled headings to balance text section transitions */
    font-size: 1.7rem;
    line-height: 1.4;
    color: #b22222; /* Classic academic deep crimson accent tint */
    margin-top: 45px;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

/* Crisp font dimension specifications matching explicit desktop layout balances */
p {
    font-size: 1.25rem;
    margin-bottom: 28px;
    text-align: left;
    font-weight: 400;
}

/* ==========================================================================
   4. BULLET POINTS & UNORDERED LISTS (Sized Up For Crisp Reading)
   ========================================================================== */
ul, ol {
    margin-left: 30px;
    margin-bottom: 28px;
}

li {
    font-size: 1.25rem; /* Sized up to perfectly match paragraph text lines */
    margin-bottom: 12px;
    text-align: left;
    color: #222222;
}

strong {
    font-weight: 700;
    color: #111111;
}

/* ==========================================================================
   5. NAVIGATION MENU LAYOUT ELEMENT
   ========================================================================== */
.modern-nav-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 35px 0;
}

.nav-btn {
    display: block;
    text-align: center;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 14px 10px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease-in-out;
}

.nav-btn:hover, .nav-btn:focus {
    background-color: #1a252f;
}

/* ==========================================================================
   6. HIGH-RESOLUTION IMAGE TABLE SLIDER CONTAINER (.png Framework)
   ========================================================================== */
.image-table-wrapper {
    width: 100%;
    max-width: 100%; /* Keeps the container locked within your 960px text margins on PC viewports */
    overflow-x: auto; /* Drops an elegant horizontal scrollbar slider into play automatically on PC and mobile */
    -webkit-overflow-scrolling: touch; /* Momentum glide engine for iPhone and Android touch sweeps */
    margin: 35px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px; /* Smooth card layout frame */
    background-color: #ffffff;
}

.image-table-wrapper img {
    /* CRITICAL TWEAK: Prevents the standard images rule below from crushing your wide table image. 
       This forces the image to stay at its full, un-squished crisp text resolution size! */
    width: auto !important;
    max-width: none !important; 
    height: auto !important;
    display: block;
    margin: 0; /* Align perfectly to the left edge of the slider start track */
    padding: 10px; /* Gives the text data some clean breathing room from the outer border */
}

/* ==========================================================================
   7. STANDARD NATURAL IMAGES LAYER (Washed Clean of Forced Stretching)
   ========================================================================== */
img {
    max-width: 100%; /* Fallback protection: stops oversized diagrams from breaking wide layouts */
    height: auto;    /* Keeps proportions perfectly natural and in aspect ratio */
    display: block;
    margin: 30px auto;
    border-radius: 4px;
}

/* ==========================================================================
   7.1 UNIVERSAL FLUID VIDEO WRAPPER (YouTube, Rumble, Vimeo 100% Fit)
   ========================================================================== */
.video-container {
    position: relative;
    /* Locks the canvas frame into a perfect 16:9 widescreen shape */
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 8px; /* Clean rounded edges */
}

.video-container iframe,
.video-container embed,
.video-container object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;  /* Forces the video iframe to span 100% of the screen width */
    height: 100% !important; /* Forces the video iframe to span 100% of the layout box height */
    border: 0;
}/* ==========================================================================
   8. FLUID MOBILE EDGE MEDIA QUERY (Tablets, iPhone, and Android Phone Controls)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* FORCE ABSOLUTE WRAPPING SHIELD: Completely stops any hidden rogue code strings 
       from pushing text over your smartphone screen edges! */
    html, body {
        max-width: 100% !important;
        overflow-x: hidden; /* Shuts down the messy global sideways viewport wiggle instantly */
    }

    body {
        padding: 24px 16px; /* Decreases page margins dynamically inside thinner screen edges */
    }

    p, li, td, span, div, strong {
        font-size: 1.15rem; /* Downscales body texts and lists slightly for zero-strain mobile reading */
        margin-bottom: 22px;
        /* Word Wrapping Safety Core */
        word-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important; /* Overrides hidden legacy non-breaking code bugs */
    }