/* Sri Maha Periyava Sathsangam - Common Styles */

:root {
    --primary: #8b4513;
    --primary-dark: #5d2e0d;
    --accent: #d4a574;
    --accent-light: #f4e4d0;
    --sacred-gold: #c9a961;
    --text-primary: #2c1810;
    --text-secondary: #6b4e3d;
    --background: #faf8f3;
    --surface: #ffffff;
    --border: rgba(139, 69, 19, 0.15);
    --shadow: rgba(139, 69, 19, 0.1);
    --font-display: 'Philosopher', sans-serif;
    --font-body: 'Cormorant Garamond', serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 17px;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 69, 19, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a961' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 1;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.header-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    border: 3px solid var(--sacred-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
    background: var(--surface);
    padding: 2px;
}

.header-image:not([src]), .header-image[src=""] {
    opacity: 0;
    width: 0;
    height: 0;
    border: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Banner */
.logo-banner {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--surface);
    padding: 1rem;
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
    z-index: 1;
}

.logo-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow);
}

/* Navigation Styles */
nav {
    background: var(--primary);
    padding: 0;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    animation: slideDown 0.6s ease-out 0.3s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav a {
    display: inline-block;
    margin: 0;
    padding: 1rem 1.5rem;
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--sacred-gold);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

nav a:hover::before {
    width: 80%;
}

nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sacred-gold);
}

/* Dropdown Menu Styles */
nav .dropdown {
    position: relative;
    display: inline-block;
}

nav .dropdown > a {
    display: inline-block;
    margin: 0;
    padding: 1rem 1.5rem;
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    top: 100%;
    left: 0;
    border-radius: 0 0 8px 8px;
}

nav .dropdown-content a {
    color: var(--primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    background: transparent;
}

nav .dropdown-content a::before {
    display: none;
}

nav .dropdown-content a:hover {
    background-color: var(--accent-light);
    color: var(--primary-dark);
}

nav .dropdown:hover .dropdown-content {
    display: block;
}

nav .dropdown:hover > a {
    background-color: rgba(255, 255, 255, 0.1);
}

nav .dropdown-content a.active {
    background-color: var(--accent-light);
    color: var(--primary-dark);
    font-weight: 700;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px var(--shadow),
        0 0 0 1px var(--border);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    flex: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--sacred-gold), var(--primary));
    border-radius: 20px 20px 0 0;
}

/* Content Sections */
.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-light);
}

.content-section h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-light);
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Hero Section - Home Page */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero-section .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

.periyava-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin: 2rem auto;
    display: block;
    border: 4px solid var(--accent-light);
}

.quote-box {
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(244, 228, 208, 0.5) 100%);
    padding: 2rem;
    border-left: 4px solid var(--sacred-gold);
    border-radius: 10px;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
}

.info-box {
    background: var(--accent-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.info-box h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-box ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Coming Soon Styles */
.coming-soon-content {
    text-align: center;
    padding: 2rem;
}

.coming-soon-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.coming-soon-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.coming-soon-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.coming-soon-decoration {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sacred-gold), transparent);
    margin: 0 auto;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--accent-light);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: auto;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    box-shadow: 0 -4px 20px var(--shadow);
    position: relative;
    z-index: 1;
}

/* About Page Specific Styles */
.page-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sacred-gold), transparent);
}

.highlight-box {
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(244, 228, 208, 0.5) 100%);
    padding: 2rem;
    border-left: 5px solid var(--sacred-gold);
    border-radius: 10px;
    margin: 2rem 0;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

.activities-list {
    background: var(--surface);
    border: 2px solid var(--accent-light);
    border-radius: 12px;
    padding: 0;
    margin: 2rem 0;
    overflow: hidden;
}

.activity-item {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--accent-light);
    transition: var(--transition);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--accent-light);
    transform: translateX(5px);
}

.activity-item h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-item h4::before {
    content: '🕉️';
    font-size: 1.5rem;
}

.activity-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: left;
}

/* Contact Form Styles */
.contact-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 3px solid var(--accent-light);
}

.contact-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-section .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(244, 228, 208, 0.3) 100%);
    border-radius: 15px;
    border: 2px solid var(--accent);
    box-shadow: 0 8px 25px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.required {
    color: #c0392b;
    margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

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

.send-button {
    width: 100%;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px var(--shadow);
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

.send-button:active {
    transform: translateY(0);
}

.send-button:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    display: none;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    display: block;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    display: block;
}

/* Stotras Page Specific Styles */
.container h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 1rem;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sacred-gold), transparent);
}

.search-box {
    margin: 0 auto 2rem auto;
    max-width: 1200px;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(201, 169, 97, 0.08) 100%);
    border-radius: 15px;
    border: 1px solid var(--border);
}

.search-box label {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.08);
}

.search-box input:focus {
    border-color: var(--sacred-gold);
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.2);
    transform: translateY(-2px);
}

.search-box input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
    font-style: italic;
}

#stotraTable {
    width: 100%;
    max-width: 1200px;
    margin: 1rem auto;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
}

th, td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    position: relative;
    user-select: none;
}

th.sortable {
    cursor: pointer;
    padding-right: 2.5rem;
}

th.sortable:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.sort-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.6;
    transition: var(--transition);
}

th.sortable:hover .sort-icon {
    opacity: 1;
}

th.sort-asc .sort-icon,
th.sort-desc .sort-icon {
    opacity: 1;
    color: var(--sacred-gold);
}

th.sort-asc .sort-icon::after {
    content: ' ▲';
}

th.sort-desc .sort-icon::after {
    content: ' ▼';
}

th.downloads-header {
    text-align: center;
}

th.author-header {
    text-align: left;
}

tbody tr {
    background: var(--surface);
    transition: var(--transition);
}

tbody tr:nth-child(even) {
    background-color: rgba(244, 228, 208, 0.3);
}

tbody tr:hover {
    background: var(--accent-light);
    box-shadow: 0 2px 8px var(--shadow);
}

tbody tr:last-child td {
    border-bottom: none;
}

td.stotra-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-display);
}

td.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-style: italic;
}

.language-buttons-cell {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 0.6rem;
}

.lang-download-btn {
    padding: 0.5rem;
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    background: var(--surface);
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(139, 69, 19, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
}

.lang-download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--sacred-gold);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.lang-download-btn:hover::after {
    width: 200px;
    height: 200px;
}

.lang-download-btn:hover {
    color: var(--primary-dark);
    border-color: var(--sacred-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.lang-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(139, 69, 19, 0.2);
}

.lang-folder-btn {
    padding: 0.5rem;
    background: transparent;
    border: 2px solid transparent;
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    box-shadow: none;
    border-radius: 8px;
}

.lang-folder-btn:hover {
    transform: translateY(-2px);
}

.lang-folder-btn:active {
    transform: translateY(0);
}

.folder-text {
    position: absolute;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font-display);
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state.visible {
    display: block;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .logo-banner {
        margin: 0 1rem;
        padding: 0.75rem;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .header-image {
        width: 60px;
        height: 60px;
    }
    
    header h1 {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    }
    
    nav a {
        padding: 0.85rem 0.9rem;
        font-size: 0.9rem;
    }

    .coming-soon-icon {
        font-size: 3.5rem;
    }

    .coming-soon-title {
        font-size: 2rem;
    }

    .coming-soon-text {
        font-size: 1.1rem;
    }

    .content-section h2 {
        font-size: 1.7rem;
    }

    .content-section h3 {
        font-size: 1.5rem;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .activity-item {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .search-box {
        padding: 1rem;
    }
}

/* Stotras button adjustments for mobile only */
@media (max-width: 640px) {
    .language-buttons-cell {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.6rem;
        padding: 0.5rem;
    }

    .lang-download-btn {
        font-size: 1.15rem;
        min-height: 38px;
        padding: 0.4rem;
    }

    .lang-folder-btn {
        font-size: 1.8rem;
        min-height: 38px;
    }

    .folder-text {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 0.75rem;
    }
    
    .header-image {
        width: 50px;
        height: 50px;
    }
    
    header h1 {
        font-size: clamp(1rem, 3vw, 1.4rem);
    }

    .coming-soon-icon {
        font-size: 3rem;
    }

    .coming-soon-title {
        font-size: 1.7rem;
    }

    .language-buttons-cell {
        gap: 0.4rem;
        padding: 0.4rem;
    }

    .lang-download-btn {
        font-size: 1rem;
        min-height: 36px;
        padding: 0.3rem;
    }

    .lang-folder-btn {
        font-size: 1.6rem;
        min-height: 36px;
    }

    .folder-text {
        font-size: 0.5rem;
    }
}

/* Audio link styles */
.audio-link {
    text-decoration: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.audio-link:hover {
    text-decoration: none;
    transform: scale(1.1);
}

.audio-cell {
    text-align: center;
    padding: 0.75rem;
}

/* Anushotsavam Page Specific Styles */
main {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px var(--shadow),
        0 0 0 1px var(--border);
    position: relative;
    z-index: 1;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--sacred-gold), var(--primary));
    border-radius: 20px 20px 0 0;
}

main h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 1rem;
}

main h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sacred-gold), transparent);
}

main h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-light);
    text-align: center;
}

.anusham-dates {
    background: 
        /* Diary lines */
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 39px,
            rgba(139, 69, 19, 0.15) 39px,
            rgba(139, 69, 19, 0.15) 40px
        ),
        /* Diary paper background */
        linear-gradient(to right, 
            rgba(201, 169, 97, 0.1) 0px,
            rgba(201, 169, 97, 0.1) 60px,
            rgba(244, 228, 208, 0.4) 60px,
            rgba(244, 228, 208, 0.4) 100%
        );
    padding: 1.5rem 1.5rem 1.5rem 70px;
    margin: 1.5rem 0;
    border-radius: 10px;
    border-left: 4px solid var(--sacred-gold);
    box-shadow: inset 0 0 10px rgba(139, 69, 19, 0.05);
    position: relative;
}

/* Red vertical margin line like in a diary */
.anusham-dates::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(201, 169, 97, 0.3);
}

.anusham-dates ul {
    list-style: none;
    padding: 0;
    column-count: 2;
    column-gap: 30px;
}

.anusham-dates li {
    padding: 8px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-display);
    position: relative;
}

.anusham-dates li:last-child {
    border-bottom: none;
}

.anusham-dates strong {
    color: var(--primary);
    font-weight: 700;
}

#anushamTable {
    width: 100%;
    max-width: 1200px;
    margin: 1rem auto;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
}

/* 3-button centered layout for Anushotsavam table */
#anushamTable .language-buttons-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem;
}

#anushamTable .lang-download-btn {
    width: 60px;
    flex: 0 0 60px;
}

.combined-row {
    background-color: rgba(201, 169, 97, 0.15) !important;
}

.combined-row td {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Responsive styles for Anushotsavam page */
@media (max-width: 768px) {
    main {
        margin: 1rem;
        padding: 1.5rem;
    }

    main h2 {
        font-size: 2rem;
    }

    main h3 {
        font-size: 1.5rem;
    }

    .anusham-dates {
        padding: 1.25rem 1rem 1.25rem 50px;
    }

    .anusham-dates::before {
        left: 45px;
    }

    .anusham-dates ul {
        column-count: 1;
    }
}
