:root {
    --primary-color: #722F37;  /* Maroon/Brown from logo */
    --secondary-color: #8B4513;  /* Darker brown for contrast */
    --accent-color: #5C1F1F;  /* Darker maroon for depth */
    --text-color: #333;
    --light-text: #fff;
    --background-light: #F5F1E6;  /* Light beige from logo background */
    --cream-color: #FFFDD0;  /* Cream color for Pioneer Hostel text */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-color);
    padding: 0.8rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar:hover .nav-logo {
    transform: scale(1.05);
}

.logo .slogan {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-style: italic;
    letter-spacing: 1px;
    margin-top: 4px;
    position: relative;
    padding-left: 20px;
}

.logo .slogan::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 15px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links li a {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--light-text);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover {
    color: var(--light-text);
}

.nav-links li a:hover::after {
    width: 80%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px; /* Space for navbar */
}

/* Video Background */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
}

.home-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto 3rem;
    display: block;
    animation: fadeInDown 1s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.hero-content h1 {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 4px;
    animation: fadeInDown 1s ease;
    font-weight: 800;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

.dynamic-text-container {
    text-align: center;
    margin-bottom: 2rem;
}

.main-text {
    font-size: clamp(1.1rem, 4vw, 2.4rem);
    color: #ffffff;
    margin-bottom: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
    letter-spacing: 1.2px;
    line-height: 1.4;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.rotating-text {
    position: relative;
    height: 80px;  /* Increased height for larger text */
    overflow: hidden;
    margin: 0 auto;
    max-width: 1000px;
    margin-bottom: 2rem;
}

.facility-text {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--cream-color);
    font-size: 1.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 0 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Added text shadow */
}

.facility-text.active {
    opacity: 1;
    transform: translateY(0);
}

.facility-text i {
    font-size: 2.2rem;
    color: var(--cream-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
}

.facility-text span {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.8rem);
    color: var(--light-text);
    margin: 0 auto 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
    max-width: 800px;
    line-height: 1.4;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 30px;
    margin-top: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Facilities Section */
.facilities {
    padding: 5rem 5%;
    background-color: var(--background-light);
    position: relative;
    z-index: 2;
}

.facilities h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.facilities h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.facility-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(114, 47, 55, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(114, 47, 55, 0.05));
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(114, 47, 55, 0.2);
}

.facility-card:hover::before {
    transform: translateY(0);
}

.facility-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.facility-card:hover i {
    transform: scale(1.1);
}

.facility-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.facility-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.6;
}

/* Learn More Button */
.learn-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    margin-top: auto;
    width: 80%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(114, 47, 55, 0.05);
}

.learn-more:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

/* Gallery Section */
.gallery {
    position: relative;
    z-index: 2;
    background-color: var(--background-light);
    padding: 5rem 5%;
}

.gallery h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    height: auto;
    min-height: 180px;
    max-height: 220px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--light-text);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    position: relative;
    z-index: 2;
    background-color: var(--background-light);
    padding: 5rem 5%;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, var(--primary-color) 45%, var(--primary-color) 55%, transparent 55%);
    opacity: 0.05;
}

.contact h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-detail:hover {
    transform: translateX(10px);
}

.contact-detail i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-detail:hover i {
    background: var(--primary-color);
    color: var(--light-text);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    background: var(--background-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group textarea + label {
    top: 1rem;
    transform: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 5px 15px rgba(114, 47, 55, 0.1);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -12px;
    left: 1rem;
    background: white;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .contact-container {
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }

    .contact-detail i {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .main-text {
        font-size: 1.8rem;
    }

    .rotating-text {
        height: 70px;
    }

    .facility-text {
        font-size: 1.5rem;
        gap: 1.2rem;
    }

    .facility-text i {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 60px;
    }
    
    .background-video {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .facility-card {
        min-height: 280px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 0;
        z-index: 2000;
        transition: all 0.3s;
    }
    .nav-links.open {
        display: flex;
    }
    .navbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .submit-btn {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .main-text {
        font-size: 1.6rem;
    }

    .rotating-text {
        height: 90px;  /* Increased for better mobile layout */
    }

    .facility-text {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        line-height: 1.4;
    }

    .facility-text i {
        font-size: 1.6rem;
    }

    .facility-card {
        min-height: 260px;
        padding: 1.5rem;
    }

    .facility-card h3 {
        font-size: 1.3rem;
    }

    .facility-card p {
        font-size: 0.95rem;
    }

    .learn-more {
        width: 90%;
        padding: 0.7rem 1.5rem;
    }

    .gallery-grid, .features-grid, .facilities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        height: 180px;
    }
}

/* Footer */
footer {
    position: relative;
    z-index: 2;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: #a8c0ff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: #a8c0ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 800px;
    }

    .home-logo {
        max-width: 400px;
    }

    .hero-content p {
        font-size: 1.6rem;
    }

    .main-text {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .facility-text {
        font-size: 1.7rem;
    }

    .facility-text i {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 15px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .home-logo {
        max-width: 300px;
        margin-bottom: 2rem;
    }

    .hero-content p {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--light-text);
        margin: 5px 0;
        transition: var(--transition);
    }

    .logo .slogan {
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 10px;
    }

    .hero-content {
        padding: 1rem;
    }

    .home-logo {
        max-width: 250px;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        height: 200px;
    }
}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-height: 900px) {
    .hero {
        padding: 120px 20px 60px;
    }

    .home-logo {
        max-width: 350px;
        margin-bottom: 2rem;
    }

    .main-text {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .facility-text {
        font-size: 1.6rem;
    }
}

/* Landscape phones and smaller */
@media (max-height: 600px) {
    .hero {
        padding: 100px 15px 40px;
    }

    .home-logo {
        max-width: 200px;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .main-text {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .rotating-text {
        height: 60px;
    }

    .facility-text {
        font-size: 1.3rem;
    }
}

/* Ensure video covers viewport on different aspect ratios */
@media (min-aspect-ratio: 16/9) {
    .background-video {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    .background-video {
        width: auto;
        height: 100%;
    }
}

/* Comparison Section */
.comparison {
    padding: 5rem 5%;
    background-color: var(--background-light);
    position: relative;
    z-index: 2;
}

.comparison h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.comparison h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.comparison-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pros, .cons {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pros h3, .cons h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pros h3 i {
    color: #28a745;
}

.cons h3 i {
    color: #dc3545;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li, .cons li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pros li:hover, .cons li:hover {
    transform: translateX(10px);
    background: rgba(114, 47, 55, 0.05);
}

.pros li i, .cons li i {
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 50%;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pros li i {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.cons li i {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.pros li div, .cons li div {
    flex: 1;
}

.pros li h4, .cons li h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pros li p, .cons li p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 968px) {
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pros, .cons {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .pros, .cons {
        padding: 1.5rem;
    }

    .pros li, .cons li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .pros li i, .cons li i {
        font-size: 1.2rem;
        min-width: 35px;
        height: 35px;
    }

    .pros h3, .cons h3 {
        font-size: 1.3rem;
    }
}

/* --- Facility Header Responsive --- */
.facility-header h1 {
    font-size: clamp(2rem, 6vw, 4rem);
}
.facility-header p {
    font-size: clamp(1rem, 3vw, 1.5rem);
}

/* --- Utility Tweaks --- */
@media (max-width: 480px) {
    .facility-section, .contact-info, .contact-form {
        padding: 1rem !important;
    }
    .facility-header, .hero {
        padding-top: 60px;
    }
    .footer-bottom {
        padding-top: 1rem;
    }
}

/* --- Hamburger click JS helper (add this to main.js) --- */
/*
document.querySelectorAll('.nav-links a').forEach(link => {
    link.addEventListener('click', () => {
        if(window.innerWidth <= 768) {
            navLinks.classList.remove('open');
        }
    });
});
*/

@media (min-width: 600px) {
    .gallery-item {
        min-height: 200px;
        max-height: 260px;
    }
}

@media (min-width: 900px) {
    .gallery-item {
        min-height: 220px;
        max-height: 280px;
    }
}

/* Home page gallery grid: always 2 columns on desktop/tablet */
#gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
@media (max-width: 600px) {
  #gallery .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
} 