/* ============================
   FONT IMPORTS
============================ */
@font-face {
    font-family: 'Adishila';
    src: url('fonts/Adishila.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Adishila';
    src: url('fonts/AdishilaBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Adishila';
    src: url('fonts/AdishilaItalic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Adishila';
    src: url('fonts/AdishilaBoldItalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Adishila';
    src: url('fonts/AdishilaSemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Adishila';
    src: url('fonts/AdishilaSemiBoldItalic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Adishila';
    src: url('fonts/AdishilaHeavy.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Adishila';
    src: url('fonts/AdishilaHeavyItalic.woff2') format('woff2');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gandhari';
    src: url('fonts/gur.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gandhari';
    src: url('fonts/gub.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gandhari';
    src: url('fonts/gui.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gandhari';
    src: url('fonts/gubi.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap');

/* ============================
   VARIABLES
============================ */
:root {
    /* Colors - Vintage Paper Theme */
    --primary: #8B4513;
    --primary-light: #A0522D;
    --primary-dark: #654321;
    --secondary: #D2B48C;
    --secondary-light: #F5DEB3;
    --secondary-dark: #D2691E;
    --accent: #CD853F;
    --paper: #F8F0E3;
    --paper-dark: #EDE0C8;
    --ink: #2F1810;
    --text: #3A3023;
    --text-light: #6B5D4D;
    --white: #FFFFFF;
    
    /* Typography */
    --font-prakrit: 'Adishila', serif;
    --font-roman: 'Gandhari', 'EB Garamond', serif;
    --font-display: 'Cormorant Garamond', serif;
    --font-text: 'EB Garamond', serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
    
    /* Borders */
    --border-thin: 1px solid var(--secondary-dark);
    --border-regular: 2px solid var(--secondary-dark);
    --border-thick: 3px solid var(--primary);
    --border-ornate: 4px double var(--primary-dark);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(47, 24, 16, 0.05);
    --shadow-md: 0 4px 8px rgba(47, 24, 16, 0.1);
    --shadow-lg: 0 8px 16px rgba(47, 24, 16, 0.15);
    
    /* Border Radius */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 12px;
    
    /* Paper Texture */
    --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
}

/* ============================
   RESET & BASE STYLES
============================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--paper);
    background-image: var(--paper-texture);
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-position: inside;
}

/* ============================
   TYPOGRAPHY
============================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-md);
}

.prakrit-text {
    font-family: var(--font-prakrit);
    font-size: 1.2em;
    line-height: 1.8;
}

.roman-text {
    font-family: var(--font-roman);
}

.text-center {
    text-align: center;
}

/* ============================
   LAYOUT
============================ */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

section {
    padding: var(--space-3xl) 0;
}

/* ============================
   BUTTONS
============================ */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-roman);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

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

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

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

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

.btn-tool {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-tool:hover, .btn-tool.active {
    background-color: var(--secondary-light);
    border-color: var(--primary);
}

/* ============================
   HEADER & NAVIGATION
============================ */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--paper);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: background-color 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(248, 240, 227, 0.95);
    backdrop-filter: blur(5px);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.logo img, img.logo {
    max-height: 48px;
    width: auto;
    vertical-align: middle;
    margin-right: 12px;
}

.footer-logo img, img.footer-logo {
    max-height: 150px;
    width: auto;
    vertical-align: middle;
    margin-right: 12px;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text);
    padding: var(--space-xs) var(--space-sm);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================
   HERO SECTION
============================ */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/prakrit-hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--paper-texture);
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* ============================
   FEATURED TEXT SECTION
============================ */
.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    display: inline-block;
}

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

.featured-text .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prakrit-reader {
    width: 100%;
    max-width: 800px;
    background-color: var(--white);
    border: var(--border-ornate);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.text-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: var(--border-thin);
}

.text-header h3 {
    margin-bottom: var(--space-xs);
}

.text-meta {
    color: var(--text-light);
    font-style: italic;
}

.prakrit-content {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.prakrit-word {
    font-family: var(--font-prakrit);
    cursor: pointer;
    display: inline-block;
    margin: 0 var(--space-xs);
    padding: 0 var(--space-xs);
    position: relative;
    transition: background-color 0.2s ease;
}

.prakrit-word:hover {
    background-color: var(--secondary-light);
    border-radius: var(--radius-sm);
}

.word-meaning {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background-color: var(--white);
    border: var(--border-thin);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    font-family: var(--font-text);
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: var(--shadow-md);
    z-index: 100;
    display: none;
    text-align: left;
}

.prakrit-word:hover .word-meaning {
    display: block;
}

.text-tools {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.additional-display {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background-color: var(--paper-dark);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.additional-display h4 {
    margin-bottom: var(--space-sm);
}

.additional-display ul {
    list-style-type: none;
}

.additional-display li {
    margin-bottom: var(--space-xs);
}

/* ============================
   TOOLS SECTION
============================ */
.tools {
    background-color: var(--paper-dark);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.tool-card {
    background-color: var(--white);
    border: var(--border-regular);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tool-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.tool-card h3 {
    margin-bottom: var(--space-md);
}

.tool-card p {
    margin-bottom: var(--space-lg);
    color: var(--text-light);
}

/* ============================
   BLOG SECTION
============================ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.blog-card {
    background-color: var(--white);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category {
    display: inline-block;
    background-color: var(--secondary-light);
    color: var(--primary-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
    align-self: flex-start;
}

.post-content h3 {
    margin-bottom: var(--space-md);
}

.post-content p {
    margin-bottom: var(--space-lg);
    color: var(--text-light);
    flex-grow: 1;
}

/* ============================
   NEWSLETTER
============================ */
.newsletter {
    background-color: var(--paper-dark);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: var(--space-md);
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: var(--space-md);
}

.newsletter-form input {
    flex-grow: 1;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-text);
    font-size: 1rem;
    border: var(--border-thin);
    border-radius: var(--radius-sm);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================
   FOOTER
============================ */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.footer-logo {
    max-width: 300px;
}

.footer-logo span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: var(--space-md);
}

.footer-logo img.logo {
    max-height: 40px;
    margin-bottom: 4px;
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-group h3 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
}

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

.footer-group li {
    margin-bottom: var(--space-sm);
}

.footer-group a {
    color: var(--secondary-light);
}

.footer-group a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--secondary-light);
}

/* ============================
   ANIMATIONS
============================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   RESPONSIVE STYLES
============================ */
@media (max-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    .tools-grid, .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--space-lg);
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
    
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--paper);
        padding: var(--space-lg);
        flex-direction: column;
        gap: var(--space-md);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .tools-grid, .post-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .word-meaning {
        width: 150px;
    }
    
    .logo img, img.logo {
        max-height: 36px;
        margin-right: 8px;
    }
    
    .footer-logo img.logo {
        max-height: 28px;
    }
}

@media (max-width: 480px) {
    .prakrit-reader {
        padding: var(--space-md);
    }
    
    .text-tools {
        flex-wrap: wrap;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .word-meaning {
        left: 0;
        transform: none;
        width: 200px;
    }
}

/* ============================
   PAGE HEADER
============================ */
.page-header {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: 2.5rem;
}

.page-header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ============================
   TEXT CATEGORIES
============================ */
.text-categories {
    padding: var(--space-3xl) 0;
    background-color: var(--paper);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.category-card {
    background-color: var(--white);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.category-card h3 {
    margin-bottom: var(--space-lg);
    color: var(--primary-dark);
}

.category-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.category-card li {
    margin-bottom: var(--space-sm);
    border-bottom: 1px dotted var(--secondary);
    padding-bottom: var(--space-sm);
}

.category-card a {
    display: block;
    padding: var(--space-xs) 0;
    transition: transform 0.2s ease;
}

.category-card a:hover {
    transform: translateX(5px);
}

/* ============================
   TEXT SHOWCASE
============================ */
.text-showcase {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-xl);
    align-items: center;
    background-color: var(--white);
    border: var(--border-ornate);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.text-content h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
}

.text-meta {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.text-sample {
    background-color: var(--paper-dark);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin: var(--space-lg) 0;
    border-left: 3px solid var(--primary);
}

.text-sample p {
    margin-bottom: var(--space-sm);
}

.translation {
    font-style: italic;
    color: var(--text-light);
}

.text-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.text-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================
   BLOG GRID & FILTERS
============================ */
.blog-grid {
    padding: var(--space-3xl) 0;
    background-color: var(--paper);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

/* ============================
   PAGINATION
============================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.pagination-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: var(--font-roman);
    font-size: 1rem;
}

.pagination-btn:hover:not(:disabled) {
    color: var(--primary-dark);
}

.pagination-btn:disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: var(--space-sm);
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover,
.page-number.active {
    background-color: var(--primary);
    color: var(--white);
}

/* ============================
   RESPONSIVE ADJUSTMENTS
============================ */
@media (max-width: 1024px) {
    .text-showcase {
        grid-template-columns: 1fr;
    }
    
    .text-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .text-showcase {
        padding: var(--space-lg);
    }
    
    .filters {
        gap: var(--space-xs);
    }
    
    .filter-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.8rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ============================
   RESOURCE SECTIONS
============================ */
.resource-section {
    padding: var(--space-3xl) 0;
}

.resource-section.alt-bg {
    background-color: var(--paper-dark);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.resource-card {
    background-color: var(--white);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.resource-card h3 {
    color: var(--primary-dark);
    padding-bottom: var(--space-sm);
    border-bottom: var(--border-thin);
    margin-bottom: var(--space-md);
}

.resource-card ul {
    list-style: none;
    padding: 0;
}

.resource-card li {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px dotted var(--secondary);
}

.resource-card li:last-child {
    border-bottom: none;
}

.resource-card a {
    display: block;
    transition: transform 0.2s ease;
}

.resource-card a:hover {
    transform: translateX(5px);
}

/* Script Tutorial */
.script-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

.script-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.script-intro p {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
}

.script-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.script-card {
    background-color: var(--white);
    border: var(--border-regular);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

.script-card h3 {
    margin-bottom: var(--space-md);
}

.script-card p {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.brahmi {
    font-family: 'Noto Sans Brahmi', sans-serif;
}

/* Dictionary */
.dictionary-search {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.search-box input {
    flex-grow: 1;
    padding: var(--space-md);
    border: var(--border-thin);
    border-radius: var(--radius-sm);
    font-family: var(--font-text);
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.dictionary-filters {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.dictionary-filters select {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: var(--border-thin);
    border-radius: var(--radius-sm);
    font-family: var(--font-text);
    background-color: var(--white);
}

.dictionary-preview {
    margin-top: var(--space-2xl);
    background-color: var(--white);
    border: var(--border-regular);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.dictionary-preview h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: var(--border-thin);
}

.dictionary-entry {
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px dotted var(--secondary);
}

.dictionary-entry:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.dictionary-entry h4 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.dictionary-entry p {
    margin-bottom: var(--space-sm);
}

/* Bibliography */
.bibliography-content {
    max-width: 800px;
    margin: 0 auto;
}

.bibliography-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.bibliography-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.bib-entry {
    background-color: var(--white);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.bib-entry:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.bib-entry h3 {
    margin-bottom: var(--space-sm);
}

.author {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.publication {
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dictionary-filters {
        flex-direction: column;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .script-card p {
        font-size: 1.3rem;
    }
}

/* ============================
   ABOUT PAGE - MISSION
============================ */
.mission {
    padding: var(--space-3xl) 0;
    background-color: var(--paper);
}

.mission-text p {
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

.mission-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.point {
    background-color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: var(--border-thin);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.point:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.point i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.point h3 {
    margin-bottom: var(--space-md);
}

/* ============================
   ABOUT PAGE - TEAM
============================ */
.team {
    padding: var(--space-3xl) 0;
    background-color: var(--paper-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.team-member {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-image {
    height: 400px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: var(--space-lg);
}

.member-info h3 {
    margin-bottom: var(--space-xs);
}

.role {
    color: var(--primary);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.member-info p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.member-info .social-links {
    display: flex;
    gap: var(--space-sm);
}

.member-info .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    color: var(--primary);
}

.member-info .social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ============================
   ABOUT PAGE - TIMELINE
============================ */
.timeline {
    padding: var(--space-3xl) 0;
    background-color: var(--paper);
}

.timeline-content {
    position: relative;
    max-width: 800px;
    margin: var(--space-xl) auto 0;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20%;
    width: 2px;
    background-color: var(--primary);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 4fr;
    margin-bottom: var(--space-xl);
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    left: calc(20% - 8px);
    top: 6px;
}

.date {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-dark);
    padding-right: var(--space-lg);
    text-align: right;
}

.event {
    padding-left: var(--space-xl);
}

.event h3 {
    margin-bottom: var(--space-sm);
}

.event p {
    color: var(--text-light);
}

/* ============================
   ABOUT PAGE - CONTACT
============================ */
.contact {
    padding: var(--space-3xl) 0;
    background-color: var(--paper-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-info {
    background-color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 3px;
}

.contact-info .social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.contact-info .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    color: var(--primary);
}

.contact-info .social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.contact-form {
    background-color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: var(--border-thin);
    border-radius: var(--radius-sm);
    font-family: var(--font-text);
    font-size: 1rem;
}

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

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

/* ============================
   RESPONSIVE ADJUSTMENTS FOR ABOUT PAGE
============================ */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .timeline-content::before {
        left: 10%;
    }
    
    .timeline-item {
        grid-template-columns: 1fr 9fr;
    }
    
    .timeline-item::before {
        left: calc(10% - 8px);
    }
    
    .date {
        font-size: 1rem;
    }
}