/* Reset and base styles */

html {
    scroll-padding-top: 100px; /* Adjust this value based on your header height */
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px; /* Adjust this value based on your header height */
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
}

.logo-image-container img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    min-width: 0;
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin-bottom: 0.2rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.2;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* Hamburger Menu */
.hamburger {
    display: none;  /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
#hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 40px;
    width: 100%;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

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

/* Common Sections Styling */
section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

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

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.facility img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info ul {
    list-style: none;
    margin-top: 1rem;
}

.contact-info ul li {
    margin-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    height: 150px;
}

/* Page Info */
.page-info {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 20px auto;
    text-align: right;
    max-width: 1200px;
    padding: 0 20px;
}

#last-updated {
    margin-left: 15px;
    display: inline-block;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 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: #fff;
    text-decoration: none;
}

.footer-section .address .indent {
    padding-left: 1.5em;
    display: inline-block;
}

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

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: #2980b9;
}

/* Latest News Section */
#latest-news {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.news-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem; /* Reduced from 0.5rem */
    margin-bottom: 2rem;
    text-align: center;
}

.view-all-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    margin-top: 0; /* Removed margin completely */
}

.view-all-link:hover {
    color: #2980b9;
}

.news-header h2 {
    margin-bottom: 0; /* Remove bottom margin from the heading */
}

.news-minimal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-minimal .news-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.news-minimal .news-item:hover {
    transform: translateX(10px);
}

.news-minimal .news-item.clickable {
    cursor: pointer;
    position: relative;
}

.news-minimal .read-more-link {
    color: #3498db;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.75rem;
}

.news-minimal .news-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.news-minimal h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.news-minimal p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Mobile Styles - Responsive Design */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px; /* Adjust for mobile header height */
    }
    
    section {
        scroll-margin-top: 80px; /* Adjust for mobile header height */
    }

    .hamburger {
        display: block;
    }

    nav {
        padding: 0.5rem 5%;
    }

    nav ul {
        display: none;  /* Hide menu by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-content {
        padding-top: 100px;
    }

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

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

    .news-minimal .news-item:hover {
        transform: none;
    }
    
}

@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}