/*
Theme Name: Divya Path Final
Theme URI: https://hindudharmikcollection.com
Author: Hindu Dharmik Collection
Author URI: https://hindudharmikcollection.com
Description: A custom theme for Hindu Divine Content, featuring Saffron/Maroon aesthetics.
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: divya-path
*/

:root {
    --color-saffron: #FF9933;
    --color-saffron-dark: #cc7a29;
    --color-maroon: #800000;
    --color-cream: #FFFDD0;
    --color-white: #FFFFFF;
    --color-text-dark: #2c1a1a;
    --color-text-light: #5a4a4a;

    --font-heading-en: 'Playfair Display', serif;
    --font-heading-in: 'Noto Serif Devanagari', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-cream);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar - Divya Path Special Layout */
.navbar {
    background-color: transparent;
    /* Background handled by container inner parts */
    padding: 0;
    box-shadow: none;
    position: relative;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background-color: var(--color-maroon);
    padding: 0;
    /* Remove default padding */
    border-radius: 0 0 10px 10px;
    /* Slight round at bottom maybe? */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-wrapper {
    position: relative;
}

.logo-tab {
    background-color: var(--color-saffron);
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased gap */
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    padding-right: 3rem;
}

.logo-tab a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo-icon {
    height: 32px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-heading-in);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-maroon);
    line-height: 1;
    /* Fix vertical alignment */
    margin-top: 2px;
}

.nav-content {
    display: flex;
    align-items: center;
    padding-right: 2rem;
    flex-grow: 1;
    justify-content: flex-end;
    gap: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-saffron);
}

.lang-selector select {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
}

.lang-selector select option {
    color: #333;
    /* Fix for white text on white background in dropdowns */
    background-color: #fff;
}

/* Mangalacharan (Invocation) Section */
.mangalacharan {
    background: transparent;
    padding: 4rem 0 2rem 0;
    text-align: center;
    position: relative;
    border-bottom: none;
}

.sanskrit-text {
    font-family: var(--font-heading-in);
    font-size: 3.5rem;
    font-weight: 700;
    /* Gold Gradient Text */
    background: linear-gradient(to bottom, #cf9848, #ae792b, #eacda3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
}

.translation {
    font-family: var(--font-heading-en);
    font-size: 1.1rem;
    color: #4a3b3b;
    font-weight: 600;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.divider-ornament {
    color: #ae792b;
    font-size: 1.5rem;
    margin-top: 2rem;
    opacity: 0.6;
}

/* Featured Cards with Images */
.section {
    padding: 2rem 0 5rem 0;
}

.section-title {
    display: none;
    /* Removed as per design concept image which just shows cards */
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Centers items including orphans */
    gap: 2rem;
}

/* Flex Link Wrapper */
/* Ensure flex items have a base width but can grow/shrink */
.card {
    flex: 1 1 300px;
    max-width: 400px;
    /* Prevent them from getting too wide on large screens */
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Softer, deeper shadow */
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    display: flex;
    flex-direction: column;
    /* Link styling reset */
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Portrait images */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1rem;
    text-align: center;
    background-color: var(--color-maroon);
    color: white;
    margin-top: auto;
    /* Pushes content to bottom */
}

.card-content h3 {
    font-family: var(--font-heading-en);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
    color: white;
    letter-spacing: 0.5px;
}

/* Mobile Apps Section */
.mobile-apps {
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 4rem;
    padding: 4rem 0;
}

.app-links-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.app-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
    min-width: 250px;
    flex: 1;
    max-width: 400px;
}

.app-card h3 {
    color: var(--color-maroon);
    margin-bottom: 0.5rem;
}

.app-store-btn,
.play-store-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: opacity 0.3s;
}

.app-store-btn {
    background-color: #000;
}

.play-store-btn {
    background-color: #34a853;
}

.app-store-btn:hover,
.play-store-btn:hover {
    opacity: 0.9;
}


/* Footer */
.footer {
    background-color: var(--color-text-dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem 0;
    margin-top: 0;
    font-size: 0.9rem;
}

/* ===========================
   Responsive Design / Media Queries
   =========================== */

/* Tablet and Smaller (max-width: 900px) */
@media (max-width: 900px) {
    .sanskrit-text {
        font-size: 2.5rem;
    }

    .nav-content {
        gap: 1rem;
        padding-right: 1rem;
    }

    .logo-tab {
        padding: 0.8rem 1.5rem;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {

    /* Navigation: Stack elements */
    .nav-container {
        flex-direction: column;
        align-items: center;
        border-radius: 0;
        padding-bottom: 1rem;
    }

    .logo-wrapper {
        width: 100%;
    }

    .logo-tab {
        width: 100%;
        clip-path: none;
        /* Remove angle on mobile */
        justify-content: center;
        padding-right: 2rem;
        /* Reset padding */
    }

    .nav-content {
        flex-direction: column;
        width: 100%;
        padding: 0;
        gap: 1rem;
        margin-top: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0.8rem;
    }

    .lang-selector {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    /* Typography Adjustments */
    .sanskrit-text {
        font-size: 2rem;
        padding: 0 10px;
    }

    .translation {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    /* Layout Adjustments */
    .grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        padding: 0 10px;
        gap: 2rem;
    }

    .app-card {
        min-width: 100%;
        /* Full width cards on mobile */
    }
}