/* Sasyaved Premium Design System */

:root {
    /* Colors */
    --primary: #2d5a27;
    --primary-light: #4a7c44;
    --primary-dark: #1e3d1a;
    --secondary: #f5f2ed;
    --accent: #a0522d;
    --earth: #8b4513;
    --bg: #fdfcfb;
    --text: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --black: #000000;
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Gujarati', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Heading spacing */
h1, h2, h3, h4, h5, h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Hind Vadodara', sans-serif;
    color: var(--primary-dark);
    line-height: 1.2;
}

/* Paragraph spacing within article body */
.article-body p {
    margin-bottom: 1rem;
}

/* Direct image styling when not wrapped in a div */
.article-body img {
    margin: 30px 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 100%;
    display: block;
}
    font-family: 'Hind Vadodara', sans-serif;
    color: var(--primary-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.article-body ul:not(.related-list) {
    margin: 1rem 0;
    padding-left: 1.2rem;
    list-style: disc;
    color: var(--text);
}

.article-body ul:not(.related-list) li {
    margin-bottom: 0.6rem;
}

.article-body ul:not(.related-list) ul {
    margin: 0.5rem 0 0.5rem 1rem;
    list-style: circle;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 14px 0 rgba(45, 90, 39, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(45, 90, 39, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Hind Vadodara', sans-serif;
}

.logo i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    opacity: 0.8;
    text-decoration: none;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
    background: url('../assets/hero-bg.png') no-repeat center center/cover;
    /* Fallback if image not found */
    background-color: var(--primary-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2), var(--bg));
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.accent-text {
    color: var(--secondary);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Hero Footer / Stats */
.hero-footer {
    position: absolute;
    bottom: -24%;
    left: 0;
    width: 100%;
    z-index: 20;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgb(45 90 39);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-10px) !important;
    background: rgba(255, 255, 255, 0.2);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.stat-card h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--primary-dark);
    font-size: 0.9rem;
}

/* About Section */
.about {
    margin-top: 12%;
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img .img-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.sub-title {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.primary-text {
    color: var(--primary);
}

.text-block p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.quote {
    background: var(--secondary);
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid var(--primary);
    font-style: italic;
    font-weight: 500;
    margin: 30px 0;
    color: var(--primary-dark);
}

.author {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text);
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Knowledge Section */
.knowledge {
    padding: 100px 0;
    background-color: rgba(245, 242, 237, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.knowledge-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
    min-height: 220px;
}

.card-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Hind Vadodara', sans-serif;
}

.knowledge-card {
    position: relative;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--accent);
}

.knowledge-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    line-height: 1.5;
    padding-right: 40px; /* Space for number */
    color: var(--primary-dark);
}

.card-actions {
    margin-top: auto;
}

.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.btn-read:hover {
    color: var(--accent);
    padding-left: 5px;
}

.btn-read i {
    font-size: 1.1rem;
}


.section-footer {
    text-align: center;
    margin-top: 60px;
}

/* Article Rich Content */
.article-paragraph { margin-bottom: 25px; }
.article-table-wrapper { 
    margin: 40px 0; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: var(--shadow); 
    border: 1px solid #ddd;
}
.table { width: 100%; border-collapse: collapse; background: white; }
.table th { background: var(--primary); color: white; padding: 15px; text-align: left; font-weight: 600; }
.table td { padding: 15px; border-bottom: 1px solid #eee; color: #444; }
.table tr:nth-child(even) { background: #f9fbf8; }
.table tr:hover { background: #f0f7ef; }

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-about p {
    opacity: 0.7;
    margin-bottom: 30px;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
   opacity: 1;
    color: var(--white);
    text-decoration: none;
}

.footer-links ul li a:hover {
   opacity: 1;
    padding-left: 5px;
    color: #fff;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.footer-contact p i {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-footer {
        bottom: -100px;
        position: relative;
    }
    
    .hero {
        height: auto;
        padding: 150px 0 100px;
    }
    
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about h2, .section-header h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Gallery Grid */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

@media (max-width: 576px) {
    .article-gallery {
        grid-template-columns: 1fr;
    }
}

/* Article Page Specific Styles */
.article-page { padding-top: 120px; padding-bottom: 80px; }
.article-header { margin-bottom: 40px; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.article-header h1 { font-size: 2.5rem; margin-bottom: 15px; color: var(--primary); }
.article-meta { color: var(--text-light); display: flex; gap: 20px; font-size: 0.9rem; }
.article-body { font-size: 1.2rem; line-height: 1.8; color: #333; margin-bottom: 60px; white-space: normal; }
.video-section { background: var(--secondary); padding: 40px; border-radius: 30px; margin-bottom: 40px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 20px; box-shadow: var(--shadow-lg); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.pdf-section { background: var(--primary-dark); color: white; padding: 40px; border-radius: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.pdf-info h3 { color: white; margin-bottom: 10px; }
.pdf-info p { opacity: 0.7; }
.sidebar-card { background: white; padding: 30px; border-radius: 20px; position: sticky; top: 100px; }
.sidebar-card h4 { margin-bottom: 20px; border-bottom: 2px solid var(--primary); display: inline-block; }
.related-list li { margin-bottom: 15px; }
.related-list a { font-size: 0.95rem; display: block; text-decoration: none;}
.related-list a:hover { color: var(--primary); }

/* Sidebar related list – no markers */
.related-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.related-list li::marker {
    content: "";
}
.article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin: 30px 0; }
.gallery-item img { width: 100%; border-radius: 12px; }
.article-image-wrapper img { width: 100%; border-radius: 20px; margin: 30px 0; box-shadow: var(--shadow); }
.article-table-wrapper { margin: 40px 0; overflow-x: auto; }
.article-table-wrapper {
    margin: 40px 0;
    overflow-x: auto;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

table th {
    background: var(--primary);
    color: white;
    padding: 18px;
    text-align: left;
}

table td {
    padding: 16px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

table tr:nth-child(even) {
    background: #f7faf4;
}

/* Responsive Grid Adjustments for Mobile */
@media (max-width: 1024px) {
    .grid-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}
@media (max-width: 768px) {
    .pdf-section { flex-direction: column; text-align: center; }
    .article-header h1 { font-size: 1.8rem; }
}
