﻿   
        /* General Reset and Base Styles */
        :root {
            --primary-color: #000;
            --secondary-color: #333;
            --accent-color: #E55B00; /* NEW ORANGE COLOR */
            --bg-color: #fff;
            --light-bg: #E2E2E2; /* #f7f7f7 NEW GRID BG COLOR E2,E2,E2 */
            --font-stack: 'Arial', sans-serif;
        }

        body {
            font-family: var(--font-stack);
            line-height: 1.6;
            margin: 0;
            padding: 0;
            background-color: var(--light-bg);
            color: var(--secondary-color);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        a {
            color: var(--accent-color);
            text-decoration: none;
        }

        /* Header Styles (Fixed Region) */
        .header {
            background-color: var(--primary-color);
            color: var(--bg-color);
            padding: 15px 0;
            text-align: center;
        }

        .header h1 {
            margin: 0;
            font-size: 2em;
        }

        .tagline {
            font-size: 0.9em;
            opacity: 0.8;
            margin-top: 2px;
        }

/* Navigation Styles (Fixed Region) - REVISED for Compact Mobile Menu */
        .nav {
            background-color: var(--secondary-color);
            padding: 5px 0; /* Reduced padding for compact look */
            text-align: center;
        }

        .nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: row; /* CHANGE: Set to row */
            flex-wrap: wrap; /* NEW: Allows items to wrap onto multiple lines */
            justify-content: center; /* Centers the links */
        }

        .nav ul li {
            /* CHANGE: Reduce vertical padding, add small horizontal margin */
            padding: 5px 5px; 
            box-sizing: border-box; /* Ensures padding is included in the width */
        }

        .nav ul li a {
            color: var(--bg-color);
            /* CHANGE: Reduce padding for a tighter fit */
            padding: 8px 10px; 
            display: block;
            text-transform: uppercase;
            font-size: 0.9em; /* Optional: slightly smaller font to fit more */
            font-weight: bold;
            transition: background-color 0.3s;
        }

        .nav ul li a:hover {
            background-color: #444;
        }

        /* The Media Query for 768px+ does NOT need to be changed,
           as the new mobile settings now mirror the desktop layout
           but with the added flexibility of wrapping. */
        /* Main Content Styles (Editable Region) */
        .main-content {
            padding: 20px 0;  /* Content top padding was 40 */
            background-color: var(--bg-color);
            min-height: 500px; /* Ensures content area is visible */
        }

        /* Responsive Grid for Homepage Blocks (This is the specific style for your 'index' page content) */
        .content-grid {
            display: grid;
            /* Default: 1 column on small screens */
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
            gap: 20px;
            margin-top: 30px;
        }

        .grid-block {
		background-color: var(--light-bg);
		border: 1px solid #ddd;
		padding: 20px;
		text-align: center;
		border-radius: 5px;
		transition: transform 0.3s;
	}

        .grid-block:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .grid-block img {
            max-width: 100%;
            height: auto;
            margin-bottom: 10px;
        }

        .grid-block h3 {
            margin-top: 0;
            color: var(--accent-color);
        }

        /* Footer Styles (Fixed Region) */
        .footer {
            background-color: var(--primary-color);
            color: var(--bg-color);
            text-align: center;
            padding: 20px 0;
            font-size: 0.85em;
        }
        
        /* Media Query for Tablet and Desktop (Tablet 768px+) */
        @media (min-width: 768px) {
            .nav ul {
                flex-direction: row; /* Horizontal layout on wider screens */
                justify-content: center;
            }
            .nav ul li {
                padding: 0 5px;
            }
            /* Grid expands to 3 columns on larger screens */
            .content-grid {
                grid-template-columns: repeat(3, 1fr); 
            }
        }
    .CenterThis {
		padding: 5px;
		right: auto;
		left: auto;
		margin-right: auto;
		margin-left: auto;
		width: auto;
		text-align: center;
		border-style: solid;
		border-width: 0px;
		border-color: #000000;
	}
    .GridTextLower {
		color: #000000;
	}
   
/* Video in page class start */

.VideoContainer {
    /* 1. Sets the positioning context */
    position: relative;
    /* 2. Creates the vertical space based on 16:9 ratio (9/16 = 56.25%) */
    padding-bottom: 56.25%; 
    padding-top: 0;
    height: 0;
    overflow: hidden;
    margin: 20px auto; /* Centers the video block and adds vertical margin */
    max-width: 800px; /* Optional: Limits the video size on very wide screens for aesthetics */
}

.VideoContainer iframe {
    /* 3. Forces the iframe to absolutely fill the container's space */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video in page class end */
