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

html {
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #1f2933;
    color: #1f1f1f;
    line-height: 1.6;
    min-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

header {
    background: #1f2933;
    color: white;
    padding: 16px 2% 16px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
}

.logo-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

nav a.nav-link {
    background: none;
    border: none;
    color: white;
    font-size: 15.5px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: 600;
    padding-bottom: 5px;
    text-decoration: none;
}

nav a.nav-link:hover {
    color: #f2c94c;
}

nav a.nav-link.active-nav {
    color: #f2c94c;
    font-weight: 800;
    border-bottom: 2px solid #f2c94c;
}

/* Language toggle button */
nav .language-toggle {
    background: linear-gradient(180deg, #f2c94c 0%, #d79b28 100%);
    color: #1f2933;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    font-family: Arial, sans-serif;
    margin-left: 24px;
    white-space: nowrap;
    box-shadow: 0 5px 0 #9f6b12, 0 8px 18px rgba(0, 0, 0, 0.25);
    transition: all 0.15s ease;
}

nav .language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #9f6b12, 0 12px 22px rgba(0, 0, 0, 0.30);
    background: linear-gradient(180deg, #ffd95a 0%, #d79b28 100%);
    color: #1f2933;
}

nav .language-toggle:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #9f6b12, 0 5px 12px rgba(0, 0, 0, 0.22);
}

main {
    flex: 1;
}

/* Homepage specific seamless background */
#home-page {
    background-color: #f8f3e8;
    background-image:
        /* Fade at the bottom for readability of the grid */
        linear-gradient(
            to bottom,
            rgba(248, 243, 232, 0) 50%,
            rgba(248, 243, 232, 0.85) 85%,
            rgba(248, 243, 232, 1) 100%
        ),
        /* Fade on the left for the hero text */
        linear-gradient(
            to right,
            rgba(248, 243, 232, 0.9) 0%,
            rgba(248, 243, 232, 0.4) 50%,
            rgba(248, 243, 232, 0.4) 100%
        ),
        url("images/golden-temple-hero.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

/* Hero section adjusted to move text left and reduce height to pull grid up */
.hero {
    min-height: 65vh; /* Reduced from 80vh to bring the grid up */
    padding: 40px 4%; /* Changed side padding from 8% to 4% to move text left */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-text {
    max-width: 680px;
}

.hero-text h1 {
    font-size: 58px;
    line-height: 1.12;
    margin-bottom: 22px;
    color: #1f2933;
}

.hero-text p {
    font-size: 21px;
    margin-bottom: 32px;
    color: #444;
    max-width: 780px;
}

.start-learning-section {
    padding: 20px 8% 90px;
}

.button {
    display: inline-block;
    background: #d79b28;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.button:hover {
    background: #b87f16;
}

/* Base sections for subpages */
section {
    padding: 70px 8%;
    scroll-margin-top: 140px; 
}

.section-title {
    text-align: center;
    font-size: 38px;
    margin-bottom: 15px;
    color: #1f2933;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 19px;
    color: #555;
}

.content-section {
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(
            rgba(248, 243, 232, 0.78),
            rgba(248, 243, 232, 0.78)
        ),
        url("images/golden-temple-hero.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: calc(100vh - 90px);
}

.alphabet-container,
.gurus-container,
.mool-mantar-container,
.history-container {
    max-width: 1050px;
    margin: auto;
    background: rgba(255, 248, 231, 0.94);
    border-radius: 22px;
    padding: 38px;
    box-shadow: 0 12px 30px rgba(85, 58, 20, 0.16);
    border: 1px solid #e2c98f;
    backdrop-filter: blur(4px);
}

/* HOMEPAGE GRID CSS */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1150px;
    margin: 0 auto 28px;
}

.learning-card {
    background: rgba(245, 234, 210, 0.94);
    border: 1px solid #d9bd7c;
    border-radius: 24px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(85, 58, 20, 0.12);
    transition: 0.2s ease;
    text-decoration: none;
    display: block;
}

.learning-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 244, 216, 0.96);
    box-shadow: 0 14px 32px rgba(85, 58, 20, 0.18);
}

.learning-card h3 {
    color: #1f2933;
    font-size: 22px;
    margin-bottom: 12px;
}

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

/* Sub-page classes */
.intro-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
    align-items: stretch;
}

.intro-card {
    background: #f5ead2;
    border: 1px solid #d9bd7c;
    border-radius: 18px;
    padding: 26px;
}

.intro-card h2 {
    color: #1f2933;
    font-size: 28px;
    margin-bottom: 12px;
}

.intro-card p {
    color: #555;
    font-size: 17px;
    margin-bottom: 12px;
}

.quick-facts {
    background: #1f2933;
    color: white;
    border-radius: 18px;
    padding: 26px;
}

.quick-facts h2 {
    font-size: 26px;
    margin-bottom: 14px;
}

.quick-facts ul {
    padding-left: 22px;
}

.quick-facts li {
    margin-bottom: 10px;
    color: #f3f3f3;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 25px;
}

.letter-card {
    background: #f5ead2;
    border: 1px solid #d9bd7c;
    border-radius: 14px;
    padding: 20px 10px;
    text-align: center;
    transition: 0.2s ease;
    cursor: default;
}

.letter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
    background: #fff3d6;
}

.gurmukhi-letter {
    font-size: 42px;
    font-weight: bold;
    color: #1f2933;
    margin-bottom: 6px;
}

.romanized-letter {
    font-size: 15px;
    color: #6b5b42;
    font-weight: bold;
}

.subsection-title {
    font-size: 30px;
    color: #1f2933;
    text-align: center;
    margin-top: 55px;
    margin-bottom: 12px;
}

.subsection-subtitle {
    text-align: center;
    color: #555;
    font-size: 18px;
    max-width: 780px;
    margin: 0 auto 30px;
}

.vowels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.vowel-card {
    background: #f5ead2;
    border: 1px solid #d9bd7c;
    border-radius: 15px;
    padding: 22px;
    transition: 0.2s ease;
}

.vowel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
    background: #fff3d6;
}

.vowel-symbol {
    font-size: 36px;
    font-weight: bold;
    color: #1f2933;
    margin-bottom: 8px;
}

.vowel-name {
    font-size: 18px;
    font-weight: bold;
    color: #d79b28;
    margin-bottom: 5px;
}

.vowel-example {
    color: #555;
    font-size: 15px;
}

.info-note {
    margin-top: 30px;
    background: #1f2933;
    color: white;
    border-radius: 15px;
    padding: 22px;
    text-align: center;
    font-size: 18px;
}

.reading-section {
    margin-top: 45px;
    background: #f5ead2;
    border: 1px solid #d9bd7c;
    border-radius: 18px;
    padding: 30px;
}

.reading-section h2 {
    color: #1f2933;
    font-size: 30px;
    margin-bottom: 12px;
}

.reading-section p {
    color: #555;
    font-size: 17px;
    margin-bottom: 14px;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.example-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #d9bd7c;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.example-card .word {
    font-size: 32px;
    color: #1f2933;
    font-weight: bold;
    margin-bottom: 5px;
}

.example-card .roman {
    color: #d79b28;
    font-weight: bold;
    margin-bottom: 5px;
}

.example-card .meaning {
    color: #555;
}

.faq-section {
    margin-top: 45px;
}

.faq-item {
    background: #f5ead2;
    border: 1px solid #d9bd7c;
    border-radius: 15px;
    padding: 22px;
    margin-bottom: 16px;
}

.faq-item h3 {
    color: #1f2933;
    font-size: 22px;
    margin-bottom: 8px;
}

.faq-item p {
    color: #555;
    font-size: 16.5px;
}

.bottom-links {
    margin-top: 40px;
    text-align: center;
}

.gurus-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.guru-card {
    background: #f5ead2;
    border: 1px solid #d9bd7c;
    border-radius: 15px;
    padding: 20px;
    transition: 0.2s ease;
    display: flex;
    gap: 18px;
    align-items: center;
}

.guru-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
    background: #fff3d6;
}

.guru-image {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d79b28;
    background: #fffaf0;
    flex-shrink: 0;
}

.guru-number {
    color: #d79b28;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
}

.guru-card h3 {
    color: #1f2933;
    font-size: 21px;
    margin-bottom: 6px;
}

.guru-card p {
    color: #555;
    font-size: 15.5px;
}

/* NEW ETERNAL GURU CARD CENTER CSS */
.eternal-guru-card {
    grid-column: 1 / -1; /* spans both columns of the grid */
    max-width: 500px; /* limits width to look natural in the list */
    margin: 0 auto; /* centers the card */
    width: 100%;
}

.mool-mantar-main {
    background: #1f2933;
    color: white;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    margin-bottom: 35px;
}

.mool-mantar-gurmukhi {
    font-size: 28px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.mool-mantar-romanized {
    font-size: 19px;
    color: #f2c94c;
    line-height: 1.7;
}

.mool-lines {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.mool-line-card {
    background: #f5ead2;
    border: 1px solid #d9bd7c;
    border-radius: 15px;
    padding: 22px;
}

.mool-line-card h2 {
    color: #1f2933;
    font-size: 24px;
    margin-bottom: 8px;
}

.mool-line-card .romanized {
    color: #d79b28;
    font-weight: bold;
    margin-bottom: 8px;
}

.mool-line-card p {
    color: #555;
    font-size: 16px;
}

.history-intro {
    background: #1f2933;
    color: white;
    padding: 28px;
    border-radius: 18px;
    margin-bottom: 28px;
}

.history-intro h3, .history-intro h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.history-intro p {
    font-size: 17px;
    color: #f3f3f3;
}

.history-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.history-card {
    background: #f5ead2;
    border: 1px solid #d9bd7c;
    border-left: 6px solid #d79b28;
    border-radius: 15px;
    padding: 22px;
    transition: 0.2s ease;
}

.history-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
    background: #fff3d6;
}

.history-year {
    display: inline-block;
    background: #d79b28;
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: bold;
    margin-bottom: 12px;
}

.history-card h3, .history-card h2 {
    color: #1f2933;
    font-size: 23px;
    margin-bottom: 8px;
}

.history-card p {
    color: #555;
    font-size: 16px;
}

.history-values {
    margin-top: 35px;
}

.history-values h3, .history-values h2 {
    text-align: center;
    color: #1f2933;
    font-size: 28px;
    margin-bottom: 22px;
}

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

.value-card {
    background: #f5ead2;
    border: 1px solid #d9bd7c;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.value-card h4, .value-card h3 {
    color: #d79b28;
    font-size: 20px;
    margin-bottom: 8px;
}

.value-card p {
    color: #555;
    font-size: 15px;
}

/* Topics section */
.topics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1700px;
    margin: 0 auto;
}

.topic-card {
    background: rgba(255, 248, 231, 0.94);
    padding: 34px 28px;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(85, 58, 20, 0.16);
    border: 1px solid #e2c98f;
    text-align: center;
    transition: 0.2s ease;
    backdrop-filter: blur(4px);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(85, 58, 20, 0.22);
    background: rgba(255, 244, 216, 0.96);
}

.topic-card h3 {
    margin-bottom: 12px;
    color: #1f2933;
    font-size: 22px;
}

.topic-card p {
    color: #555;
    font-size: 16px;
}

/* About section */
.about-container {
    max-width: 1150px;
    margin: 0 auto;
}

.about-main-card {
    background: rgba(255, 248, 231, 0.94);
    border: 1px solid #e2c98f;
    border-radius: 28px;
    padding: 34px;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(85, 58, 20, 0.16);
    backdrop-filter: blur(4px);
}

.about-main-card h2, .about-main-card h3 {
    color: #1f2933;
    font-size: 28px;
    margin-bottom: 14px;
}

.about-main-card p {
    color: #444;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 28px;
}

.about-card {
    background: rgba(245, 234, 210, 0.94);
    border: 1px solid #d9bd7c;
    border-radius: 24px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(85, 58, 20, 0.12);
    transition: 0.2s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 244, 216, 0.96);
    box-shadow: 0 14px 32px rgba(85, 58, 20, 0.18);
}

.about-card h3 {
    color: #1f2933;
    font-size: 22px;
    margin-bottom: 12px;
}

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

.about-text {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 20px;
    color: #444;
}

footer {
    background: #1f2933;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: auto;
}

/* Tablet */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 16px 5%;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    nav .language-toggle {
        margin-left: 0;
    }

    .logo {
        font-size: 30px;
    }

    .logo-circle {
        width: 52px;
        height: 52px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .topics,
    .values-grid,
    .learning-grid {
        grid-template-columns: 1fr;
    }

    .about-grid, .intro-grid, .example-grid {
        grid-template-columns: 1fr;
    }

    .about-main-card {
        padding: 26px;
    }

    .alphabet-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vowels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gurus-list {
        grid-template-columns: 1fr;
    }
    
    .eternal-guru-card {
        max-width: 100%;
    }

    .gurmukhi-letter {
        font-size: 34px;
    }
}

/* Phone */
@media (max-width: 500px) {
    .alphabet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vowels-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 31px;
    }

    .guru-card {
        flex-direction: column;
        text-align: center;
    }

    .guru-image {
        width: 95px;
        height: 95px;
    }

    .mool-mantar-gurmukhi {
        font-size: 22px;
    }

    .logo {
        font-size: 26px;
        gap: 10px;
    }

    .logo-circle {
        width: 48px;
        height: 48px;
    }

    nav .language-toggle {
        padding: 9px 18px;
        font-size: 13px;
    }

    .about-main-card {
        padding: 24px;
        border-radius: 22px;
    }

    .about-card, .learning-card {
        padding: 22px;
    }
}

/* ==================================================
INDIVIDUAL GURU PROFILE PAGE CSS
================================================== */
.guru-profile-hero {
    text-align: center;
    padding: 60px 8% 30px;
    background: #f8f3e8;
    border-bottom: 1px solid #e7d9bf;
}

.guru-profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #d79b28;
    background: #fffaf0;
    margin: 0 auto 20px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.guru-profile-hero h1 {
    font-size: 46px;
    color: #1f2933;
    margin-bottom: 5px;
}

.guru-profile-hero .guru-number {
    font-size: 18px;
    color: #d79b28;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.guru-profile-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 8% 80px;
    font-size: 19px;
    color: #444;
    line-height: 1.8;
}

.guru-profile-content h2 {
    color: #1f2933;
    font-size: 32px;
    margin: 40px 0 18px;
    border-bottom: 2px solid #e2c98f;
    padding-bottom: 10px;
}

.guru-profile-content p {
    margin-bottom: 22px;
}

.guru-profile-content ul {
    margin-left: 25px;
    margin-bottom: 22px;
}

.back-to-gurus {
    display: inline-block;
    margin-top: 50px;
    color: #1f2933;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    border: 2px solid #1f2933;
    padding: 10px 24px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.back-to-gurus:hover {
    background: #1f2933;
    color: white;
}

/* Ensure the a.guru-card links look exactly like the old div cards */
a.guru-card {
    text-decoration: none;
    color: inherit;
    display: flex;
}

/* ==================================================
CONTACT PAGE CSS
================================================== */
.contact-container {
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 248, 231, 0.94);
    border-radius: 22px;
    padding: 40px;
    box-shadow: 0 12px 30px rgba(85, 58, 20, 0.16);
    border: 1px solid #e2c98f;
    backdrop-filter: blur(4px);
}

.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 17px;
    color: #1f2933;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9bd7c;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: #fffaf0;
    color: #1f2933;
    transition: 0.2s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #d79b28;
    box-shadow: 0 0 0 3px rgba(215, 155, 40, 0.2);
    background: #ffffff;
}

.submit-btn {
    width: 100%;
    font-size: 18px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}