/* =========================================
   RESPONSIVE CSS FRAMEWORK
   Mobile-First Approach
   ========================================= */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, Geneva, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =========================================
   LAYOUT - MOBILE FIRST
   ========================================= */

/* Main Frame */
.main-wrapper {
    width: 100%;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background-color: #ffffff;
    padding: 1rem;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    height: 80px;
    width: auto;
    flex-shrink: 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    margin: 0;
    text-align: left;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: block;
    background-color: #f5f5f5;
    color: #666666;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav-toggle:hover {
    background-color: #e0e0e0;
    color: #ff0000;
}

.hamburger {
    display: inline-block;
    width: 25px;
    margin-right: 10px;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: #666666;
    margin: 5px 0;
    transition: 0.3s;
}

/* Navigation - Modern Horizontal Layout with Dropdowns */
.main-navigation {
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* Hidden by default on mobile */
}

.nav-menu.active {
    display: block;
}

.nav-menu > li {
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-menu a {
    display: block;
    padding: 0.875rem 1.25rem;
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-menu a:hover {
    color: #ff0000;
}

.nav-menu a.active {
    color: #000000;
    font-weight: bold;
}

/* Dropdown Submenu - Mobile */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background-color: #f5f5f5;
}

.submenu.active {
    display: block;
}

.submenu li {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.submenu a {
    padding-left: 2.5rem;
    font-size: 0.85rem;
    background-color: #f5f5f5;
    color: #666666;
}

.submenu a:hover {
    color: #ff0000;
}

.submenu a.active {
    color: #000000;
    font-weight: bold;
}

/* Menu toggle indicator */
.has-submenu > a::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

/* Main Content Area */
.content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #ffffff;
}

.main-content {
    flex: 1;
    padding: 1rem;
    background-color: #ffffff;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 1rem;
    background-color: #000;
}

.mySlides {
    display: none;
    position: relative;
}

.mySlides img {
    width: 100%;
    height: auto;
}

.numbertext {
    color: #f2f2f2;
    font-size: 0.75rem;
    padding: 0.5rem;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide-text {
    color: #000000 !important;
    font-size: 1rem;
    padding: 0.5rem;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(211, 211, 211, 0.8);
    text-shadow: 2px 2px 20px #FFFFFF;
}

/* Dots/Indicators */
.dots-container {
    text-align: center;
    padding: 1rem 0;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #717171;
}

/* Footer */
.site-footer {
    background-color: #f5f5f5;
    padding: 1rem;
    text-align: center;
    color: #666666;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #666666;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff0000;
}

.footer-separator {
    color: #666666;
    margin: 0 0.25rem;
}

/* Tables - Responsive */
.responsive-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table td,
table th {
    padding: 0.5rem;
    text-align: left;
    vertical-align: top;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #62a259;
    transition: color 0.3s;
}

a:hover {
    color: #325884;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }
.p-1 { padding: 1rem; }

/* =========================================
   TABLET BREAKPOINT (768px and up)
   ========================================= */
@media screen and (min-width: 768px) {
    .site-title {
        font-size: 2rem;
        text-align: left;
    }

    .nav-toggle {
        display: none;
    }

    /* Horizontal Navigation Bar */
    .main-navigation {
        width: 100%;
        background-color: #ffffff;
    }

    .nav-menu {
        display: flex !important; /* Horizontal layout */
        flex-wrap: wrap;
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .nav-menu > li {
        border: none;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .nav-menu > li:last-child {
        border-right: none;
    }

    .nav-menu > li > a {
        padding: 1rem 1.5rem;
        white-space: nowrap;
    }

    /* Dropdown on Desktop */
    .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background-color: #f5f5f5;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .has-submenu:hover .submenu {
        display: block;
    }

    .submenu li {
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .submenu li:first-child {
        border-top: none;
    }

    .submenu a {
        padding: 0.75rem 1.5rem;
        white-space: nowrap;
        background-color: #f5f5f5;
    }

    /* Content takes full width */
    .content-wrapper {
        flex-direction: column;
    }

    .main-content {
        padding: 2rem;
        width: 100%;
    }

    .slide-text {
        font-size: 1.25rem;
        padding: 0.75rem;
    }

    .dot {
        height: 15px;
        width: 15px;
    }

    table td,
    table th {
        padding: 0.75rem;
    }
}

/* =========================================
   DESKTOP BREAKPOINT (1024px and up)
   ========================================= */
@media screen and (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .site-header {
        padding: 1.5rem 2rem;
    }

    .site-title {
        font-size: 2.5rem;
    }

    .main-content {
        padding: 2rem;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 1.125rem 1.75rem;
    }

    .slide-text {
        font-size: 1.5rem;
        padding: 1rem;
    }
}

/* =========================================
   LARGE DESKTOP (1200px and up)
   ========================================= */
@media screen and (min-width: 1200px) {
    .main-wrapper {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Touch Targets - Minimum 44x44px for accessibility */
.nav-menu a,
button,
.nav-toggle {
    min-height: 44px;
    min-width: 44px;
}

/* =========================================
   MOBILE STYLES (max-width: 768px)
   ========================================= */
@media screen and (max-width: 768px) {
    .header-logo {
        height: 50px;
    }

    .header-content {
        gap: 0.75rem;
    }

    .site-title {
        font-size: 1.25rem !important;
    }
}

/* Print Styles */
@media print {
    .nav-toggle,
    .main-navigation,
    .site-footer {
        display: none;
    }

    .main-content {
        width: 100%;
        padding: 0;
    }
}
