/* Global Styles */
:root {
    /* Color Scheme 1: Traditional Red & Orange - Consistent across all pages */
    --primary-color: #8b0000;
    --secondary-color: #dc143c;
    --accent-color: #ff6b35;
    --text-light: #ffffff;
    --text-dark: #2c1810;
    --bg-light: #fff8f0;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: rgba(139, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased; /* Smoother font rendering */
    -moz-osx-font-smoothing: grayscale; /* Smoother font rendering */
    max-width: 100%; /* Ensures elements don't overflow horizontally */
}

body {
    font-family: 'Arial', sans-serif; /* Consistent font family */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden; /* Prevents horizontal scroll on mobile */
    width: 100%; /* Ensures body takes full width */
    position: relative;
}

/* Header Styles */
.header {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: relative;
    z-index: 1000; /* Ensure header is on top */
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.header-text h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.header-text p {
    font-size: 14px;
    opacity: 0.9;
    color: var(--text-dark);
}

/* Navigation Styles */
.nav {
    background: var(--accent-color);
    padding: 0;
    box-shadow: 0 1px 5px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
}

.nav-item {
    padding: 15px 20px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-item a {
    color: var(--text-light);
    text-decoration: none;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.2);
    border-bottom-color: var(--text-light);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .nav-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-item {
        width: 33.33%;
        flex: 0 0 33.33%;
        padding: 12px 15px;
        font-size: 14px;
        box-sizing: border-box;
        border-bottom: 3px solid transparent;
    }
}

@media (max-width: 480px) {
    .nav, .nav-content {
        height: 80px !important; /* 2 x 40px rows */
        min-height: 80px !important;
        max-height: 80px !important;
    }
    .nav-item {
        line-height: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        font-size: 13px !important;
    }
}

/* Om decoration (Fixed position icon) */
.om-decoration {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: var(--accent-color);
    animation: pulse 2s infinite;
    z-index: 1000;
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Main Content Wrapper (Applies to all page content sections) */
.main-content {
    max-width: 1200px;
    margin: 0 auto; /* Removed initial top margin here, sections will define their own */
    padding: 0 20px; /* Base padding for side margins */
    min-height: calc(100vh - 200px); /* Adjust based on your header and footer heights for content push */
    display: flex;
    flex-direction: column;
}

/* General Section Titles & Buttons */
.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 40px; /* Consistent margin below title */
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px; /* Consistent width for underlines */
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 15px auto;
    border-radius: 2px;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow);
}

.cta-button.disabled {
    background: #999;
    cursor: not-allowed;
}
.cta-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Hero Section - Full Width Image */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    background: var(--bg-white);
    padding: 20px 0;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--bg-white);
    border-bottom: 5px solid var(--accent-color);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    color: var(--text-dark);
    padding: 40px 20px;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.3),
        transparent
    );
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: none;
    font-weight: bold;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
    text-shadow: none;
    font-weight: 500;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
    text-shadow: none;
}

.divine-image-container {
    width: 300px;
    height: 400px;
    margin: 0 auto 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.divine-image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.image-placeholder {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    z-index: 1;
}

/* About Page Styles */
.about-section {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 50px;
}

.about-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
}

.about-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 15px auto;
    border-radius: 2px;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.highlight {
    background: linear-gradient(120deg, var(--accent-color), rgba(255,107,53,0.3));
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
    color: var(--text-light);
}

.tradition-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-top: 15px;
}

.info-item h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    display: inline-block;
}

.info-item {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Services Section (for index.html) */
.services-section {
    margin-top: 60px; /* Spacing from hero or previous section */
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 5px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.service-icon {
    font-size: 54px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 20px;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    font-size: 16px;
}

.service-card .cta-button {
    margin-top: auto;
}

/* Temple Info Section (for index.html and about.html) */
.temple-info {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-top: 50px; /* Consistent spacing */
    margin-bottom: 50px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Events Section Styles (for events.html) */
.events-section {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-top: 40px; /* Added margin-top for spacing below nav */
    margin-bottom: 40px; /* Adjusted margin for consistency */
    max-width: 1200px;
    margin-left: auto; /* Centering */
    margin-right: auto; /* Centering */
}

.event-card {
    background: linear-gradient(135deg, var(--bg-white), #fff5f5);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.event-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.event-date {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Gallery Page Styles */
.gallery-section {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin: 50px auto;
    max-width: 1200px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.gallery-intro h1 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 20px;
}

.gallery-intro p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Mangal Path Page Styles */
.mangalpath-section {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 40px;
}

.mangalpath-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text { /* Re-using about-text from common.css, but with specific alignment for mangalpath */
    font-size: 18px;
    line-height: 1.8;
    text-align: center; /* Centered as per your re-uploaded file */
    margin-bottom: 30px;
    color: var(--text-dark);
}

.download-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.download-button, .view-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.download-button:hover::before, .view-button:hover::before {
    left: 100%;
}

.download-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    border: none;
}

.view-button {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}

.view-button:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}

.instructions {
    background: #fff5e6;
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.instructions h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.instructions ul {
    list-style-type: none;
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.instructions li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.pdf-error {
    display: none;
    background: #fff5f5;
    border: 1px solid #dc3545;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    color: #dc3545;
    text-align: center;
}

/* Contact Page Styles */
.contact-section {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin: 40px auto;
    max-width: 1200px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
    border-left: 5px solid var(--accent-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 18px;
}

.contact-form {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
}

.form-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    margin: 30px auto 0;
}

.submit-button:hover {
    transform: translateY(-3px);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 50px 0 30px 0;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-text {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 25px;
    margin-top: 40px;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) { /* Tablet and smaller */
    .nav-content {
        padding: 0 15px;
    }
    .main-content {
        padding: 0 15px; /* Adjust padding for smaller screens */
    }
    .header-content {
        padding: 0 15px;
    }
    .footer-content {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 8px 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 0 10px;
    }

    .logo-section {
        gap: 8px;
    }

    .logo {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-width: 1.5px;
    }

    .header-text h1 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .header-text p {
        font-size: 12px;
        line-height: 1.2;
    }

    .nav {
        padding: 0 !important;
    }

    .nav-content {
        padding: 0 !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .nav-item {
        padding: 12px 10px !important;
        font-size: 14px !important;
        flex: 0 0 auto !important;
        max-width: none !important;
        width: auto !important;
    }

    .nav-item a {
        font-size: 14px !important;
        white-space: nowrap !important;
        padding: 0 5px !important;
    }

    /* Remove gradient overlay for better performance */
    .nav::after {
        display: none;
    }

    /* Specific section adjustments for mobile */
    .hero-section {
        height: 50vh;
        min-height: 300px;
        padding: 10px 0;
    }

    .slide {
        padding: 10px;
    }

    .hero-content {
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 1.4;
    }

    .divine-image-container {
        width: 250px;
        height: 320px;
    }

    /* Consistent padding and margin for all main sections on mobile */
    .about-section, .temple-info, .events-section, .gallery-section, .mangalpath-section, .contact-section {
        padding: 30px 20px;
        margin-top: 30px; /* Reduced margin for mobile */
        margin-bottom: 30px; /* Adjusted for mobile consistency */
        margin-left: 10px;
        margin-right: 10px;
    }

    .about-title, .section-title, .gallery-intro h1 {
        font-size: 28px;
    }

    .services-grid, .info-grid, .contact-grid, .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .download-button, .view-button {
        width: 100%;
        justify-content: center;
    }
    .event-title {
        font-size: 20px;
    }
    .tradition-text {
        font-size: 15px;
        line-height: 1.6;
    }
    .info-item {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .gallery-section {
        padding: 30px 20px;
    }

    .gallery-intro h1 {
        font-size: 28px;
    }

    .mangalpath-section {
        padding: 30px 20px;
    }

    .download-container {
        flex-direction: column;
        align-items: center;
    }

    .download-button, .view-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 5px 0;
    }

    .logo {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 14px;
    }

    .header-text p {
        font-size: 11px;
    }

    .nav-item {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    .nav-item a {
        font-size: 13px !important;
        padding: 0 4px !important;
    }

    .hero-section {
        height: 40vh;
        min-height: 250px;
    }

    .hero-content {
        bottom: 5%;
        padding: 15px 10px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-description {
        font-size: 12px;
    }
    .section-title, .gallery-intro h1 {
        font-size: 24px;
    }
    .event-title {
        font-size: 18px;
    }
    .event-date {
        font-size: 16px;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Improve touch targets for mobile */
button, 
.nav-item,
/* Re-added old classes for compatibility, but recommend using the new ones */
.btn, 
.link-card .btn, 
.cta-button, 
.download-button, 
.view-button, 
.submit-button { 
    min-height: 44px; /* Recommended touch target size */
    padding: 12px 20px; /* Ensure sufficient padding */
}

/* Common container style */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }

/* --- RESTORE DESKTOP/LAPTOP NAVIGATION TO ORIGINAL --- */
@media (min-width: 769px) {
    .nav, .nav-content {
        height: auto !important;
        min-height: unset !important;
        max-height: unset !important;
        align-items: unset !important;
    }
    .nav-content {
        display: flex !important;
        flex-wrap: nowrap !important;
        padding: 0 20px !important;
        justify-content: space-between !important;
        width: 100% !important;
        overflow-x: auto !important;
    }
    .nav-item {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: 200px !important;
        height: auto !important;
        line-height: normal !important;
        display: block !important;
        align-items: unset !important;
        justify-content: unset !important;
    }
}
