/* Basic Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: #333; }
.container { max-width: 1000px; margin: 0 auto; padding: 20px; }

/* Navigation */
header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
nav ul { list-style: none; display: flex; }
nav ul li { margin-left: 20px; }
nav ul li a { text-decoration: none; color: #555; font-weight: 500; }

/* SHARED HERO LAYOUT - Keep this as is */
.hero { 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    color: white; 
    text-align: center; 
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* HOME PAGE BANNER */
.hero-home {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/banner.jpg');
}

/* STUDY GUIDES PAGE BANNER */
.hero-study {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/study-banner.jpg');
}

/* SONGS PAGE BANNER */
.hero-songs {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/songs-banner.jpg');
}

/* VIDEO PAGE BANNER */
.hero-video {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/video-banner.jpg');
}

/* RESOURCES PAGE BANNER */
.hero-resources {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/resources-banner.jpg');
}

/* APP PAGE BANNER */
.hero-app {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/app-banner.jpg');
}


/* Buttons */
.btn { padding: 12px 24px; text-decoration: none; border-radius: 5px; font-weight: bold; display: inline-block; transition: 0.3s; }
.btn.primary { background: #e67e22; color: white; margin-right: 10px; }
.btn.secondary { border: 2px solid #fff; color: white; }
.btn.primary:hover { background: #d35400; }
.btn.secondary:hover { background: white; color: #1a2a3a; }



/* Grid & Cards */
h3 { font-size: 2rem; margin-bottom: 20px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { padding: 30px; border: 1px solid #eee; border-radius: 8px; background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.text-link { color: #e67e22; text-decoration: none; font-weight: bold; margin-top: 10px; display: inline-block; }

/* Media */
.bg-light { background: #f9f9f9; padding: 60px 0; }
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* This creates a 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000; /* Shows black while loading */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Page Specific Styles */
.page-content {
    padding-top: 60px;
    padding-bottom: 80px;
}

.intro-text {
    text-align: center;
    margin-bottom: 50px;
}

.intro-text h1 {
    font-family: 'Noto Sans Tibetan', sans-serif;
    color: #1a2a3a;
    margin-bottom: 10px;
}

.language-block {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

.tibetan {
    font-family: 'Noto Sans Tibetan', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-icon {
    max-width: 100%;      /* Ensures the image never exceeds the width of the container */
    height: auto;     /* Maintains the correct proportions */
    display: block;
    vertical-align: middle; /* Aligns the icon with nearby text */
    margin 0: auto;    /* Adds space between the icon and text */
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.resource-card h3 {
    margin-bottom: 15px;
    color: #1a2a3a;
}

.resource-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}

/* Download Buttons */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-download {
    background: #f4f4f4;
    color: #202940;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    border: 1px solid #6E1A37;
    transition: 0.3s;
}

.btn-video {
    background: #f4f4f4;
    color: #202940;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    border: 1px solid #6E1A37;
    transition: 0.3s;
}

.btn-download:hover {
    background: #6E1A37;
    color: white;
}

.active {
    color: #6E1A37 !important;
    border-bottom: 2px solid #6E1A37;
}

/* Footer */
footer { text-align: center; padding: 40px 0; background: #333; color: #ccc; font-size: 0.9rem; }

/* Responsive Adjustments */
@media (max-width: 600px) {
    /* Stack the logo and the menu vertically on phones */
    nav {
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
    }

    /* Show the links and center them */
    nav ul {
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center;
        margin-top: 15px;
        padding: 0;
    }

    /* Give the buttons some space so they are easy to tap with a thumb */
    nav ul li {
        margin: 8px 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}