/* =======================
   St John Ambulance Nigeria Styles
   W3Schools Optimized
   ======================= */

:root {
    --primary-green: #004d00;
    --primary-green-2: #4b854b;
    --secondary-yellow: #ffcc00;
    --white: rgba(255, 255, 255, 0.95);
    --light-grey: #f4f4f4;
    --dark-grey: #222;
    --footer-gradient: linear-gradient(120deg, #004d00 0%, #ffcc00 100%);
    --hover-color: white;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Base 16px */
}

@font-face {
   font-family: 'Roboto';
   src: url('roboto-serif.woff2') format('woff2');
   font-display: swap;
}

@font-face {
   font-family: 'Helvetica';
   src: url('Helvetica.woff2') format('woff2');
   font-display: swap;
}

/* Keyframe Animations */
@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Animated Heading */
.animated-heading {
    animation: slideInDown 1.2s ease-out forwards;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    height: auto;
    font-size: 1rem; /* 16px base for mobile */
    line-height: 1.6;
    background-color: var(--light-grey);
    color: var(--dark-grey);
    font-family: 'Helvetica', Arial, sans-serif;
    text-align: justify;
    list-style-type: none;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

p {
    text-align: justify;
    font-size: 1rem;
    line-height: 1.6;
    margin: 1em 0;
}

h1 {
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 1.75rem; /* 28px */
    margin: 0.67em 0;
    padding: 0;
    text-align: center;
    color: var(--primary-green);
    line-height: 1.2;
}

h2 {
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 1.5rem; /* 24px */
    margin: 0.75em 0;
    padding: 0;
    text-align: center;
    color: var(--primary-green);
    line-height: 1.2;
}

h3 {
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 1.25rem; /* 20px */
    margin: 0.83em 0;
    padding: 0;
    text-align: center;
    color: var(--primary-green);
    line-height: 1.2;
}

h4, h5, h6 {
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 1rem; /* 16px */
    margin: 1em 0;
    padding: 0;
    text-align: center;
    color: var(--primary-green);
    line-height: 1.2;
}

/* Header */
header {
    display: block;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    background-color: var(--primary-green);
    color: var(--white);
    position: relative;
    align-content: center;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

nav {
    font-family: 'Roboto', Helvetica, sans-serif;
    width: 100%;
    display: block;
    text-align: center;
    margin: 0;
    padding: 10px;
    background-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
}

/* Navigation */
.dropdown {
    margin-top: 0;
}
.dropbtn {
    display: block;
    background-color: goldenrod;
    margin-top: 0;
    padding: 10px;
    min-width: auto;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}
.dropbtn a {
    text-decoration: none; 
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dropbtn a img {
    margin-left: 8px;
    vertical-align: middle;
}

.dropdown-content {
    display: none;
    position: absolute;
    margin: 0;
    width: 600px;
    max-width: 100%;
    padding: 10px;
    border-radius: 10px;
    background-color: goldenrod;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    z-index: 1;
    left: 0;
}

.dropdown-content a {
    color: white;
    font-weight: 600;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #878484;
}

/* .dropdown:hover .dropdown-content {
    display: block;
} */

.dropdown-content {
    display: none;
    /* ...existing styles... */
}

.dropdown.open .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: rgba(230, 138, 0, 0.1);
    font-size: 1.2em;
}
.dropdown:hover .dropbtn a,
.dropdown:hover .dropbtn a:hover {
    color: #e0e0e0;
    font-weight: 600;
}

/* Main */
main {
    margin: 5px auto 0 auto;
    padding: 12px 5px 8px 5px;
    max-width: 900px;
    background: var(--white);
    min-height: 60vh;
    position: relative;
    line-height: 2.0;
}

main p {
    max-width: 600px;
    margin: 0 150px;
    text-align: justify;
}
main li {
    list-style-type: none;
    text-align: justify;
    max-width: 600px;
    margin: 0 150px;
}

main section.address {
    text-align: center;
    max-width: 600px;
    margin: 0 150px;

}
main section.contact-info, main section.contact-info li {
    text-align: center;
    
}

main form {
    max-width: 600px;
    margin: 0 150px;
    text-align: center;

}

section.how-to-partner li {
    text-align: center;

}

a {
    color: var(--primary-green);
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary-yellow);
}

/* Responsive Images and Iframes - W3Schools Standard */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    max-width: 100%;
    border: 0;
}

/* Footer */
footer {
    background: var(--footer-gradient);
    color: var(--dark-grey);
    width: 100vw;
    max-width: 100vw;
    font-size: 1em;
    position: relative;
    padding: 24px 0 8px 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

footer section {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 1.5%;
    margin-bottom: 16px;
}

.quick-contact {
    flex: 1;
    width: 35%;
    max-width: 600px;
    border-radius: 8px;
    margin: 8px 0;
    padding: 12px 5px;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
}
.quick-links, .footer-socials {
    flex: 1;
    width: 30%;
    min-width: 180px;
    max-width: 300px;
    border-radius: 8px;
    margin: 8px 0;
    padding: 12px 5px;
    text-align: center;
}

.quick-links h3, .footer-socials h3, .quick-contact h3 {
    color: rgba(0, 0, 0, 0.9);
    font-size: 1.1em;
    margin-bottom: 8px;
}

footer p {
    width: 100%;
    text-align: center;
    color: #4d0039;
}

.quick-links ul, .footer-socials ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.quick-links ul li, .footer-socials ul li {
    display: block;
    text-align: center;
    padding: 5px 5px;
}

.quick-contact a, .quick-links ul li a, .footer-socials ul li a {
    color: #4d0039;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    word-break: break-word;
    overflow-wrap: break-word;
}

.quick-contact a:hover, .quick-links ul li a:hover, .footer-socials ul li a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.trema {
    color: #4d0039;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, text-decoration 0.2s;
}

.trema:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.footer-socials i {
    font-size: 1.6em;
    margin: 0 4px;
    vertical-align: middle;
}

.footer-socials i:hover {
    transform: scale(1.4);
    opacity: 0.5;
}

/* Image Slideshow */
.image-slideshow {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 350px;
    overflow: hidden;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.7s ease-in-out;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slide.active {
    opacity: 1;
}

.image-slideshow img:hover {
    filter: grayscale(30%);
    transition: 0.3s ease-in-out;
}

/* Contact Info & Form */
.contact-info ul.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.contact-info ul.contact-list li {
    margin-bottom: 8px;
    color: var(--primary-green);
}

.contact-form label {
    display: block;
    margin: 12px 0 4px 0;
    color: var(--primary-green);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--primary-green);
    border-radius: 15px;
    margin-bottom: 10px;
    font-size: 1em;
    background: #f9fff9;
    color: var(--dark-grey);
}

.contact-form select {
    cursor: pointer;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: 2px solid var(--secondary-yellow);
    border-color: var(--primary-green);
}

.contact-form button {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    min-height: 44px;
    min-width: 44px;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    touch-action: manipulation;
}

.contact-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.contact-form button:hover:not(:disabled) {
    background: var(--secondary-yellow);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.contact-form button:active:not(:disabled) {
    transform: translateY(0);
}

/* Form status messages */
#form-status.success {
    display: block !important;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-status.error {
    display: block !important;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Button */
.btn {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s, color 0.2s;
}
p.join-us .btn {
   display: block;
   text-align: center;
}

.btn:hover {
    background: var(--secondary-yellow);
    color: var(--primary-green);
}

/* Dark Mode Toggle Styles */
#darkModeToggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border 0.2s, transform 0.2s;
    color: var(--primary-green);
    z-index: 1001;
}

#darkModeToggle:hover {
    background: rgba(255, 204, 0, 0.1);
    color: var(--secondary-yellow);
    border: none;
    transform: translateY(-50%) scale(1.1);
}



/* Dark Mode */
body.dark-mode, body p.dark-mode {
    background-color: #181a1b !important;
    color: #fff !important; /* Body text in white */
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: goldenrod !important; /* Headers in goldenrod */
}


body.dark-mode nav,
body.dark-mode footer,
body.dark-mode .footer-div {
    background-color: #222 !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.dark-mode main,
body.dark-mode .main-images,
body.dark-mode .images {
    background-color: #23272b !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-radius: 12px;
}

body.dark-mode main p {
    color: #fff !important;
}

body.dark-mode main h1,
body.dark-mode main h2,
body.dark-mode main h3 {
    color: goldenrod !important;
}

body.dark-mode .main-images p,
body.dark-mode .images p {
    color: #fff !important;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #23272b !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    outline: 2px solid #ffd600;
    border-color: #006837 !important;
}

body.dark-mode nav ul li a,
body.dark-mode .footer-links a,
body.dark-mode .quick-links ul li a,
body.dark-mode .footer-socials ul li a {
    color: #ffd600 !important;
}

body.dark-mode nav ul li a.active {
    background-color: #333 !important;
    color: #ffd600 !important;
    border: 1px solid #ffd600 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

body.dark-mode nav ul li a:hover,
body.dark-mode .footer-links a:hover,
body.dark-mode .quick-links ul li a:hover,
body.dark-mode .footer-socials ul li a:hover {
    color: #fff !important;
}

body.dark-mode .btn,
body.dark-mode .contact-form button {
    background-color: #ffd600 !important;
    color: #222 !important;
}

body.dark-mode .contact-form button:disabled {
    background-color: #555 !important;
    color: #888 !important;
}

body.dark-mode .btn:hover,
body.dark-mode .contact-form button:hover:not(:disabled) {
    background-color: #006837 !important;
    color: #ffd600 !important;
}

body.dark-mode #form-status.success {
    background-color: #1e4620 !important;
    color: #90ee90 !important;
    border-color: #2d5a2e !important;
}

body.dark-mode #form-status.error {
    background-color: #4d1f1f !important;
    color: #ff9999 !important;
    border-color: #6b2828 !important;
}

body.dark-mode .quick-links,
body.dark-mode .footer-socials,
body.dark-mode .quick-contact {
    background: rgba(24,24,24,0.95) !important;
    color: #ffd600 !important;
    box-shadow: 0 2px 8px rgba(0,184,107,0.08);
}

body.dark-mode .footer-socials i {
    color: #ffd600 !important;
}

body.dark-mode a {
    color: #ffd600 !important;
}

body.dark-mode a:hover {
    color: #fff !important;
}

body.dark-mode .image-slideshow {
    background: #232323 !important;
    box-shadow: 0 2px 12px rgba(0,184,107,0.10);
}

body.dark-mode #darkModeToggle {
    background: transparent;
    color: #ffd600;
    border: none;
}

body.dark-mode #darkModeToggle:hover {
    background: transparent;
    color: #006837;
    border: none;
}



/* Small screens (phones, <600px) */
/* Extra small devices (phones, 600px and down) */
/* =======================
   RESPONSIVE DESIGN - W3Schools Standards
   Mobile-First Approach
   ======================= */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    body {
        font-size: 0.875rem; /* 14px */
        padding: 0;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }

    h1 {
        font-size: 1.5rem; /* 24px */
        text-align: center;
        padding: 10px 5px;
    }
    
    h2 {
        font-size: 1.25rem; /* 20px */
        text-align: center;
        padding: 8px 5px;
    }
    
    h3 {
        font-size: 1.125rem; /* 18px */
        text-align: center;
        padding: 8px 5px;
    }
    
    h4, h5, h6 {
        font-size: 1rem; /* 16px */
        text-align: center;
        padding: 8px 5px;
    }
    
    p {
        font-size: 0.875rem; /* 14px */
        line-height: 1.6;
    }

    main {
        margin: 0 auto;
        padding: 15px 10px;
        width: 100%;
        min-height: 60vh;
    }

    main p, main li {
        margin: 10px 15px;
        max-width: 100%;
        font-size: 0.875rem; /* 14px */
        line-height: 1.6;
    }

    main section.address,
    main section.contact-info {
        text-align: center;
        margin: 10px 15px;
    }

    main form {
        max-width: 100%;
        margin: 10px 15px;
        padding: 10px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 1em;
        width: 100%;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        width: 100vw;
        max-width: 100vw;
        left: 0;
        margin-left: 0;
        margin-right: 0;
    }

    nav, .dropbtn, .dropdown-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .dropbtn, .dropdown-content {
        background-color: var(--primary-green-2);
    }
    
    .dropdown-content {
        left: 0;
        right: 0;
    }
    
    /* Slideshow optimization */
    .image-slideshow {
        width: 100%;
        max-width: 100%;
        height: 250px;
        margin: 15px auto;
        border-radius: 8px;
    }
    
    .image-slideshow img,
    .slide {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Social feeds */
    .social-feeds {
        margin: 30px auto !important;
        padding: 20px 10px !important;
    }
    
    .social-feeds-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .social-feed {
        min-width: 280px;
        max-width: 100%;
        padding: 15px;
        width: 100%;
    }
    
    .social-feed iframe {
        width: 100% !important;
        max-width: 100%;
        height: 400px;
    }
    
    /* Footer optimization */
    footer {
        font-size: 0.875rem; /* 14px */
        padding: 20px 10px;
    }
    
    footer section {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }
    
    .quick-contact,
    .quick-links,
    .footer-socials {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .quick-contact h3,
    .quick-links h3,
    .footer-socials h3 {
        font-size: 1.125rem; /* 18px */
        margin-bottom: 12px;
    }
    
    .quick-contact span {
        display: flex !important;
        align-items: center;
        justify-content: center;
        line-height: 2;
        margin: 10px auto;
        gap: 8px;
    }
    
    .quick-contact span i {
        flex-shrink: 0;
        font-size: 1.1em;
    }
    
    .quick-links ul li {
        padding: 8px 5px;
        font-size: 0.9375rem; /* 15px */
    }
    
    .footer-socials i {
        font-size: 1.5em;
        margin: 8px 0;
    }
    
    footer p {
        font-size: 0.8125rem; /* 13px */
        padding: 5px 10px;
        line-height: 1.5;
    }
    
    /* Dark mode toggle */
    #darkModeToggle {
        top: 50%;
        transform: translateY(-50%);
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    #darkModeToggle:hover {
        transform: translateY(-50%) scale(1.1);
    }
}

/* Small devices (portrait tablets and large phones, 600px to 768px) */
@media only screen and (min-width: 601px) and (max-width: 768px) {
    body {
        font-size: 0.9375rem; /* 15px */
    }
    
    h1 {
        font-size: 1.625rem; /* 26px */
    }
    
    h2 {
        font-size: 1.375rem; /* 22px */
    }
    
    h3 {
        font-size: 1.1875rem; /* 19px */
    }
    
    p {
        font-size: 0.9375rem; /* 15px */
        line-height: 1.6;
    }
    
    /* Keep dropdown menu visible */
    .dropdown {
        display: block;
        width: 100%;
    }
    
    .dropbtn {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .dropdown-content {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
    }
    
    /* Hide horizontal nav */
    nav ul {
        display: none !important;
    }
    
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        width: 100vw;
        max-width: 100vw;
        left: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    nav {
        width: 100%;
        max-width: 100%;
        padding: 10px 0;
        margin: 0;
    }

    main {
        padding: 20px 15px;
        max-width: 95%;
    }
    
    main p, main li {
        margin: 15px 20px;
    }
    
    .image-slideshow {
        height: 320px;
        max-width: 95%;
    }
    
    .social-feeds-container {
        flex-direction: row;
        gap: 25px;
    }
    
    .social-feed {
        flex: 1 1 calc(50% - 25px);
        max-width: 48%;
    }
    
    /* Dark mode toggle */
    #darkModeToggle {
        top: 50%;
        transform: translateY(-50%);
        right: 15px;
    }
    
    #darkModeToggle:hover {
        transform: translateY(-50%) scale(1.1);
    }
}

/* Medium devices (tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    body {
        font-size: 1rem; /* 16px */
    }
    
    h1 {
        font-size: 2rem; /* 32px */
    }
    
    h2 {
        font-size: 1.625rem; /* 26px */
    }
    
    h3 {
        font-size: 1.375rem; /* 22px */
    }
    
    p {
        font-size: 1rem; /* 16px */
        line-height: 1.7;
    }
    
    header {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 1000;
    }
    
    nav {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        width: 100%;
        background-color: var(--primary-green);
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
        position: relative;
        padding-right: 70px;
    }
    
    /* Hide dropdown menu/button */
    .dropdown, .dropbtn, .dropdown-content {
        display: none !important;
    }
    
    /* Show horizontal nav bar */
    nav ul {
        display: flex !important;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0 10px 0 10px;
        width: 100%;
        max-width: calc(100% - 70px);
    }
    
    nav ul li {
        display: inline-block;
        margin-left: 0;
    }
    
    nav ul li a {
        display: inline-block;
        padding: 10px 15px;
        color: var(--white);
        text-decoration: none;
        font-weight: 600;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
        text-align: center;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        background: var(--secondary-yellow);
        color: var(--primary-green);
    }

    h1 {
        font-size: 1.8em;
    }
    
    h2, h3 {
        font-size: 1.4em;
    }
    
    h4, h5, h6 {
        font-size: 1.2em;
    }
    
    main {
        margin: 0 auto;
        padding: 30px 20px;
        max-width: 750px;
        min-height: 60vh;
    }

    main p, main li {
        max-width: 100%;
        margin: 15px auto;
        padding: 0 20px;
    }

    main section.address,
    main section.contact-info {
        text-align: center;
        margin: 20px auto;
    }

    main form {
        max-width: 650px;
        margin: 20px auto;
        padding: 20px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 15px;
        width: 100%;
    }
    
    .image-slideshow {
        height: 650px;
        max-width: 90%;
    }
    
    .social-feeds-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 30px;
    }
    
    .social-feed {
        flex: 1 1 calc(50% - 30px);
        min-width: 300px;
        max-width: 48%;
    }
    
    footer {
        font-size: 1.1em;
    }
    
    footer section {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .quick-contact,
    .quick-links,
    .footer-socials {
        flex: 1;
        max-width: 280px;
    }
}

/* Medium devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    body {
        font-size: 1.0625rem; /* 17px */
        max-width: 1200px;
        margin: 0 auto;
    }
    
    h1 {
        font-size: 2.25rem; /* 36px */
    }
    
    h2 {
        font-size: 1.875rem; /* 30px */
    }
    
    h3 {
        font-size: 1.5rem; /* 24px */
    }
    
    p {
        font-size: 1.0625rem; /* 17px */
        line-height: 1.7;
    }
    
    header {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 1000;
    }
    
    nav {
        padding-right: 80px;
    }
    
    nav ul {
        max-width: calc(100% - 80px);
        padding: 0 15px;
    }
    
    nav ul li a {
        padding: 12px 18px;
        font-size: 1em;
    }

    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    h3, h4 {
        font-size: 1.3em;
    }

    main {
        margin: 0 auto;
        padding: 40px 30px;
        max-width: 950px;
        min-height: 65vh;
    }

    main p, main li {
        max-width: 100%;
        margin: 20px auto;
        padding: 0 30px;
        line-height: 1.8;
    }
    
    main form {
        max-width: 750px;
        margin: 30px auto;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 16px;
    }
    
    .image-slideshow {
        height: 650px;
        max-width: 1000px;
    }
    
    .social-feeds {
        max-width: 1200px;
        margin: 60px auto !important;
    }
    
    .social-feed {
        flex: 1 1 calc(50% - 30px);
        max-width: 550px;
    }
    
    footer {
        font-size: 1.1em;
    }
    
    .quick-contact,
    .quick-links,
    .footer-socials {
        max-width: 300px;
    }
}

/* Large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    body {
        font-size: 1.125rem; /* 18px */
        max-width: 1400px;
        margin: 0 auto;
    }
    
    h1 {
        font-size: 2.5rem; /* 40px */
    }
    
    h2 {
        font-size: 2rem; /* 32px */
    }
    
    h3 {
        font-size: 1.625rem; /* 26px */
    }
    
    p {
        font-size: 1.125rem; /* 18px */
        line-height: 1.8;
    }
    
    nav {
        padding-right: 90px;
    }
    
    nav ul {
        max-width: calc(100% - 90px);
        padding: 0 20px;
    }
    
    nav ul li a {
        padding: 14px 22px;
        font-size: 1.05em;
    }

    h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    h3 {
        font-size: 1.5em;
    }

    main {
        max-width: 1100px;
        padding: 50px 40px;
        min-height: 70vh;
    }

    main p, main li {
        padding: 0 40px;
        line-height: 1.9;
    }
    
    main form {
        max-width: 850px;
    }
    
    .image-slideshow {
        height: 650px;
        max-width: 1100px;
    }
    
    .social-feeds {
        max-width: 1300px;
    }
    
    .social-feed {
        flex: 1 1 calc(50% - 30px);
        max-width: 600px;
    }
    
    .social-feed iframe {
        height: 550px;
    }
    
    footer {
        font-size: 1.15em;
    }
    
    .quick-contact,
    .quick-links,
    .footer-socials {
        max-width: 320px;
        padding: 20px 15px;
    }
}

/* Extra large devices (ultra-wide monitors, 1800px and up) */
@media only screen and (min-width: 1800px) {
    body {
        font-size: 1.25rem; /* 20px */
        max-width: 1600px;
    }
    
    nav {
        padding-right: 100px;
    }
    
    nav ul {
        max-width: calc(100% - 100px);
        padding: 0 30px;
    }
    
    h1 {
        font-size: 2.75rem; /* 44px */
    }
    
    h2 {
        font-size: 2.25rem; /* 36px */
    }
    
    h3 {
        font-size: 1.875rem; /* 30px */
    }
    
    p {
        font-size: 1.25rem; /* 20px */
        line-height: 1.8;
    }
    
    main {
        max-width: 1300px;
        padding: 60px 50px;
    }
    
    .image-slideshow {
        height: 800px;
        max-width: 1300px;
    }
    
    .social-feeds {
        max-width: 1500px;
    }
    
    .social-feed {
        flex: 1 1 calc(50% - 30px);
        max-width: 650px;
    }
    
    .social-feed iframe {
        height: 600px;
    }
}

/* Landscape orientation optimization */
@media only screen and (max-height: 600px) and (orientation: landscape) {
    .image-slideshow {
        height: 400px;
        max-width: 90%;
    }
    
    main {
        padding: 20px 15px;
        min-height: 50vh;
    }
    
    footer section {
        flex-direction: row;
    }
    
    .quick-contact,
    .quick-links,
    .footer-socials {
        padding: 10px 8px;
    }
}

/* =======================
   Additional Styles for W3C Standards & Accessibility
   ======================= */
/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Navigation improvements */
nav ul {
    display: none;
    list-style-type: none;
    text-align: center;
    padding: 0;
}

.dropdown .dropbtn img {
    color: white;
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

/* Search and dark mode buttons */
.search-button {
    background: none;
    border: none;
    cursor: pointer;
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

/* Footer improvements */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-contact {
    flex: 1 1 300px;
    line-height: 1.5;
}

.quick-contact p {
    text-align: center;
    margin-bottom: 15px;
}

.quick-contact address {
    font-style: normal;
    text-align: center;
}

.quick-contact span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 2;
    margin: 8px auto;
    max-width: 100%;
}

.quick-contact span i {
    flex-shrink: 0;
    margin-right: 8px;
}

.quick-contact span a {
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 2;
    margin: 8px auto;
    max-width: 100%;
}

.contact-item i {
    color: rgb(139, 183, 222);
    margin-right: 10px;
    flex-shrink: 0;
}

.contact-item a {
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

.contact-item .whatsapp-icon {
    color: green;
}

.contact-item a {
    text-decoration: none;
}

.quick-links {
    flex: 1 1 300px;
    line-height: 1.5;
}

.quick-links ul {
    list-style-type: none;
    text-align: center;
    padding: 0;
}

.quick-links ul li {
    margin: 8px 0;
}

.footer-socials {
    flex: 1 1 300px;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons i {
    font-size: 2em;
}

.social-icons .facebook i {
    color: #0866FF;
}

.social-icons .twitter i {
    color: #041025;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding: 15px 10px;
}

.footer-bottom .copyright {
    color: #000066;
    margin: 10px 0;
}

.footer-bottom .powered-by {
    color: #000066;
    margin: 10px 0;
}

.footer-bottom .powered-by img {
    width: 1.0em;
    vertical-align: middle;
}

.footer-bottom .powered-by a {
    color: #000066;
    text-decoration: none;
}

/* Social feeds section */
.social-feeds {
    margin: 40px auto;
    padding: 30px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
}

.social-feeds h2 {
    margin-bottom: 30px;
    font-size: 2em;
    color: var(--primary-green);
}

.social-feeds-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.social-feed {
    flex: 1 1 calc(50% - 30px);
    min-width: 300px;
    max-width: 550px;
    width: 100%;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInFromLeft 1s ease-out;
}

.social-feed.twitter-feed {
    animation: slideInFromRight 1s ease-out;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.social-feed h3 {
    margin-bottom: 20px;
    color: var(--primary-green);
    font-size: 1.4em;
}

/* Facebook Box Styling */
.facebook-box a {
    color: white;
}

.facebook-box a:hover {
    background: #0550d6 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 102, 255, 0.4) !important;
}

body.dark-mode .facebook-box {
    background: #2a2a2a !important;
}

body.dark-mode .facebook-box h4 {
    color: #ffd600 !important;
}

body.dark-mode .facebook-box p {
    color: #ccc !important;
}

.social-feed iframe,
.social-feed .fb-page,
.social-feed .twitter-timeline {
    border-radius: 8px;
    border: none;
    overflow: hidden;
    max-width: 100%;
}

/* Address tag styling */
address {
    font-style: normal;
    line-height: 2.0;
}

address strong {
    font-weight: bold;
}

/* Contact page address section */
.address address {
    text-align: center;
}

/* Dark mode adjustments for new elements */
body.dark-mode .footer-content {
    background-color: #222;
}

body.dark-mode .footer-bottom .copyright,
body.dark-mode .footer-bottom .powered-by,
body.dark-mode .footer-bottom .powered-by a {
    color: #ffd600;
}

body.dark-mode .social-feed {
    background: #23272b;
    box-shadow: 0 2px 12px rgba(0,184,107,0.10);
}

body.dark-mode .contact-item i {
    color: #ffd600;
}

body.dark-mode .contact-item .whatsapp-icon {
    color: #00ff00;
}

/* Responsive adjustments for social feeds */
@media only screen and (max-width: 767px) {
    .social-feeds-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .social-feed {
        min-width: 280px;
        max-width: 95%;
        padding: 15px;
    }
    
    .social-feed iframe,
    .social-feed .fb-page,
    .social-feed .twitter-timeline {
        width: 100% !important;
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .quick-contact,
    .quick-links,
    .footer-socials {
        width: 100%;
        max-width: 400px;
    }
}

/* =======================
   END OF RESPONSIVE STYLES
   ======================= */

