:root {
    /* Primary color palette */
    --primary-color: #1B3C73;      /* Deep blue */
    --secondary-color: #2C5282;    /* Medium blue */
    --accent-color: #E53E3E;       /* Accent red */
    --background-color: #F7FAFC;   /* Light gray background */
    --text-color: #2D3748;         /* Dark gray text */
    --header-bg: #ffffff;          /* White header */
    --footer-bg: #1A365D;          /* Darker blue footer */
    --border-color: #E2E8F0;       /* Light border color */
    --spacing-unit: 1rem;
}

body {
    font-family: 'Manjari', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

/* Page Styles */
.page {
    max-width: 800px;
    margin: 2rem auto;
    padding: var(--spacing-unit);
    background-color: var(--header-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.page-content {
    line-height: 1.8;
}

.page-content p {
    margin-bottom: 1.5rem;
}

/* Header Styles */
.site-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.site-logo {
    height: 56px;
    width: auto;
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.site-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Navigation Styles */
.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--background-color);
    color: var(--secondary-color);
}

/* Post Grid Styles */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: var(--header-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-date {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Footer Styles */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--background-color);
    padding: 0.25rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.8rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.footer-info {
    flex-shrink: 1;
    min-width: 0;  /* Allow text to wrap */
}

.footer-info p {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;  /* Prevent links from shrinking */
}

.footer-links a {
    color: var(--background-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* YouTube Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: 8px;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--header-bg);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: block;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

    .site-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

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

    .nav-links li {
        list-style: none;
    }
}

/* Make footer responsive */
@media (max-width: 480px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .footer-links {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        width: 100%;
    }
}

/* View All Button */
.view-all {
    text-align: center;
    margin: 2rem 0;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--secondary-color);
}

/* Pages List */
.pages-list {
    margin: 2rem 0;
}

.page-item {
    background: var(--header-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.page-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.page-title {
    margin: 0;
}

.page-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-title a:hover {
    color: var(--secondary-color);
}

/* Contact Link */
.contact-link {
    margin: 2rem 0;
    text-align: center;
}

/* Contact Page Styles */
.contact-info {
    background: var(--header-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 2rem auto;
}

.contact-person {
    margin-top: 1.5rem;
}

.contact-person h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.designation {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.phone {
    margin-top: 1rem;
}

.phone a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.phone a:hover {
    color: var(--secondary-color);
}

.phone-label {
    font-weight: 500;
}

/* Post Body Image */
.post-body-image {
    margin: 2rem 0;
}

.post-body-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
} 