@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    body {
        @apply bg-primary-dark text-primary-light;
    }
}

@layer components {
    .tibetan-text {
        font-family: 'MonlamTBslim', sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Custom styles for Tibetan text support */
.tibetan-text {
    line-height: 1.6;
    letter-spacing: -0.02em;
}

/* Dark mode overrides */
.dark-mode {
    background-color: #1b1b18;
    color: #fdfdfc;
}

/* Header styles */
.header {
    @apply bg-primary-dark text-primary-light shadow-lg;
}

/* Navigation styles */
.nav-link {
    @apply text-primary-light hover:text-accent-red transition-colors duration-300;
}

/* Footer styles */
.footer {
    @apply bg-primary-dark text-primary-light py-8;
}

/* Button styles */
.btn-primary {
    @apply bg-accent-red text-primary-light px-6 py-2 rounded-full hover:bg-opacity-90 transition-all duration-300;
}

/* Report styles */
.report-section {
    padding: 60px 80px;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #000000;
}

.report-section * {
    color: #000000 !important;
}

.report-section h2.report-title {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    /* text-decoration: underline;
    text-underline-offset: 6px; */
}

.report-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.report-box {
    flex: 1 1 48%;
    background-color: #f6f6f6;
    padding: 30px;
    border-radius: 6px;
    box-sizing: border-box;
}

.report-box h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #000000;
}

.report-box p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #000000;
}

.report-list {
    padding-left: 20px;
    margin: 10px 0;
    line-height: 1.8;
    color: #000000;
}

.report-list.numbered {
    list-style-type: decimal;
}

.report-list li {
    margin-bottom: 8px;
}

.highlight-block {
    /* background-color: rgba(245, 48, 3, 0.1); */
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    /* border-left: 4px solid #f53003; */
}

.report-link {
    color: #f53003;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.report-link:hover {
    color: #ff5c33;
}

@media (max-width: 768px) {
    .report-section {
        padding: 30px 20px;
    }
    
    .report-box {
        flex: 1 1 100%;
    }
    
    .report-columns {
        gap: 20px;
    }
}

/* About page styles */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.hero-banner {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.connecting-text {
    font-family: 'Poppins', sans-serif;
    font-size: 60px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-align: right;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.logo-icon {
    width: 55px;
    height: 57px;
    margin-right: 12px;
}

.logo-container {
    position: absolute;
    top: 50px;
    left: 80px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
}

.logo-text {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-us-section {
    display: flex;
    flex-wrap: wrap;
    background-color: #1E1E1E;
    width: 100%;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.about-us-image {
    flex: 1 1 50%;
    min-width: 300px;
    max-height: 500px;
    overflow: hidden;
}

.about-us-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

.about-us-text {
    flex: 1 1 50%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-us-text h2 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.about-us-text p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 353px;
    word-break: break-word;
}

.green-footer {
    background-color: #484b4a !important;
    height: 40px;
    width: 100%;
}

.mission-vision-section {
    display: flex;
    flex-wrap: wrap;
    background-color: #1E1E1E;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.mission-vision-image {
    flex: 1 1 50%;
    min-width: 300px;
    overflow: hidden;
}

.mission-vision-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.mission-vision-text {
    flex: 1 1 50%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-vision-text h2 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.mission-vision-text p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 500px;
    word-break: break-word;
    margin-bottom: 20px;
}

.board-section {
    background-color: #000;
    color: white;
    font-family: 'Poppins', sans-serif;
    padding: 60px 256px;
}

.board-section h2 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    color: white;
    font-size: 36px;
    font-weight: 700;
    padding: 20px;
}

.trustees-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px 80px;
    max-width: 1000px;
    margin: 30px auto;
    text-align: left;
}

.trustee {
    display: flex;
    align-items: end;
}

.trustee img {
    width: 100px;
    height: 100px;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 4px;
    margin-right: 20px;
}

.trustee-info {
    font-size: 16px;
}

.trustee-info .name {
    font-weight: 700;
    font-size: 18px;
}

.trustee-info .title {
    font-weight: 400;
    font-size: 14px;
}

.programs-section {
    background-color: #2C2C2C;
    color: white;
    padding: 60px 156px;
    font-family: 'Poppins', sans-serif;
}

.programs-section h2 {
    color: white;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
}

.programs-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    flex: 1 1 30%;
    background-color: transparent;
    text-align: center;
}

.program-card img {
    width: 100%;
    height: 69%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.program-btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: #27AE60;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    transition: background-color 0.3s ease;
    font-family: 'Arial', 'Helvetica', 'sans-serif';
    text-decoration: underline;
    text-underline-offset: 6px;
}

.program-btn:hover {
    background-color: #219150;
    color: white;
}

.workshop-section,
.workshop-video-section {
    background-color: #1E1E1E;
    color: white;
    padding: 60px 80px;
    font-family: 'Poppins', sans-serif;
}

.workshop-section h2,
.workshop-video-section h2 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.workshop-grid,
.video-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.workshop-image-group,
.workshop-report-box,
.video-card,
.report-card {
    flex: 1 1 30%;
}

.workshop-image-group img,
.workshop-report-box img,
.report-card img {
    /* width: 100%;
    height: 100%; */
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 4px;
}

.caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.report-link {
    display: inline-block;
    color: #3d8656;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    transition: color 0.3s ease;
    margin-top: 10px;
}

.report-link:hover {
    color: #2e7d51;
}

.video-card {
    position: relative;
    background: #1b1b18;
}

.video-card::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.video-card video:not([controls])::before {
    content: 'Play Video';
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.workshop-section {
    background-color: white;
    color: #1e1e1e;
    font-family: 'Poppins', sans-serif;
    padding: 60px 80px;
}

.workshop-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    font-family: 'Arial', 'Helvetica', 'sans-serif';
}

.workshop-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.workshop-image-group {
    flex: 1 1 30%;
    text-align: center;
}

.workshop-image-group img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.caption {
    margin-top: 10px;
    font-weight: 600;
    color: #2e7d51;
    font-size: 16px;
    font-family: 'Helvetica';
}

.workshop-report-box {
    flex: 1 1 30%;
    background-color: #f6f6f6;
    border-radius: 16px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.report-icon {
    width: 150px;
    margin-bottom: 20px;
}

.report-link {
    font-weight: 600;
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.workshop-video-section {
    background-color: white;
    padding: 60px 80px;
    font-family: 'Poppins', sans-serif;
    color: #1e1e1e;
}

.workshop-video-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    font-family: 'Arial', 'Helvetica', 'sans-serif';
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-left: 50px;
    padding-right: 50px;
}

.video-card {
    flex: 1 1 20%;
    max-width: 24%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    height: 484px;
}

.report-card {
    flex: 1 1 20%;
    max-width: 24%;
    background-color: #f6f6f6;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-support-section {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    padding: 80px;
    background-color: #000;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    flex-wrap: wrap;
    padding-left: 19%;
}

.contact-box,
.support-box {
    flex: 1 1 45%;
    min-width: 280px;
}

.contact-box h2,
.support-box h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.support-box p,
.contact-box p {
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
}

.contact-box a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 400;
}

.contact-link {
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Education Section Styles */
.program-btn {
    display: inline-block;
    padding: 17px 135px;
    background-color: #3d8656;
    color: #1e1e1e;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-align: center;
    border: none;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.education-section {
    padding: 60px 80px;
    background-color: white;
    color: #1e1e1e;
    font-family: 'Poppins', sans-serif;
}

.education-section h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', 'Helvetica', 'sans-serif';
}

.highlight-title {
    color: #2e7d51;
    font-size: 29px;
    font-weight: 600;
    margin-bottom: 30px;
    font-family: 'Poppins', 'Helvetica', 'sans-serif';
}

.education-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.education-left,
.education-right {
    flex: 1 1 45%;
    font-size: 17px;
    line-height: 1.8;
}

.green-footer {
    background-color: #484b4a;
    height: 40px;
    width: 100%;
    margin-top: 60px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .workshop-grid {
        flex-direction: column;
        align-items: center;
    }

    .workshop-image-group,
    .workshop-report-box {
        flex: 1 1 100%;
        max-width: 90%;
    }

    .video-grid {
        flex-direction: column;
        align-items: center;
    }

    .video-card,
    .report-card {
        max-width: 90%;
        width: 100%;
    }

    .contact-support-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 40px;
    }

    .contact-box,
    .support-box {
        flex: 1 1 100%;
    }

    .education-section {
        padding: 40px 20px;
    }

    .education-content {
        flex-direction: column;
    }

    .education-left,
    .education-right {
        flex: 1 1 100%;
    }
}
