/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #800020;
    --secondary-color: #FFD700;
    --accent-color: #dc2626;
    --text-color: #000000;
    --background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee);
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 3px solid var(--secondary-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-icon::before {
    
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.15rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 5px;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(255, 215, 0, 0.1);
}

.nav-link.active {
    color: var(--secondary-color) !important;
    background: rgba(255, 215, 0, 0.25) !important;
    font-weight: 600;
}

.nav-link.active:hover {
    color: var(--secondary-color) !important;
    background: rgba(255, 215, 0, 0.3) !important;
}

/* Ensure non-dropdown active links are properly styled */
li:not(.dropdown) > .nav-link.active {
    color: var(--secondary-color) !important;
    background: rgba(255, 215, 0, 0.25) !important;
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1001;
    border: 1px solid #333;
    pointer-events: none;
    white-space: nowrap;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
    pointer-events: auto;
}

.dropdown.active .arrow {
    transform: rotate(180deg);
}

.dropdown.active > .nav-link {
    color: var(--secondary-color) !important;
    background: rgba(255, 215, 0, 0.15) !important;
}

/* Prevent dropdown active from affecting non-dropdown links */
li:not(.dropdown) > .nav-link {
    color: #ffffff;
}

li:not(.dropdown) > .nav-link.active {
    color: var(--secondary-color) !important;
    background: rgba(255, 215, 0, 0.25) !important;
}

/* Desktop hover support */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block;
        pointer-events: auto;
    }

    .dropdown:hover .arrow {
        transform: rotate(180deg);
    }

    .dropdown:hover > .nav-link {
        color: var(--secondary-color);
        background: rgba(255, 215, 0, 0.15);
    }
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.dropdown-menu a.active {
    background: rgba(255, 215, 0, 0.2);
    color: var(--secondary-color);
    font-weight: 600;
}

/* Header Social Icons */
.header-social {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-right: 1rem;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    font-size: 1rem;
    color: white;
    font-weight: bold;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.instagram {
    background: #e4405f;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.whatsapp {
    background: #25d366;
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.instagram {
    background: #e4405f;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.whatsapp {
    background: #25d366;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.75rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section - Image Carousel */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    width: 100%;
}

@media (min-width: 769px) {
    .hero-section {
        height: 700px;
        min-height: 600px;
        max-height: none;
    }
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 100%;
}

@media (min-width: 769px) {
    .carousel-slide img {
        object-fit: cover;
        min-height: 700px;
    }
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    color: var(--white);
    padding: 3.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(2px);
}

.carousel-content h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.carousel-content p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    font-weight: 400;
    opacity: 0.95;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 1.75rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev {
    left: 2rem;
}

.carousel-btn.next {
    right: 2rem;
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background: var(--secondary-color);
    border-color: var(--white);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Events Section */


/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 3.5rem 0 1.5rem;
    border-top: 2px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Ensure proper flex layout on all screen sizes */
@media (max-width: 480px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    .logo-text {
        min-width: 0;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .page-header {
        min-height: 250px;
        max-height: 350px;
        padding: 2rem 0;
        width: 100%;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-info {
        padding: 1rem;
    }

    .video-info h3 {
        font-size: 1.1rem;
    }

    .play-button svg {
        width: 60px;
        height: 60px;
    }
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header .container {
        flex-wrap: wrap;
    }

    .header-social {
        gap: 0.5rem;
        order: 2;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .mobile-menu-toggle {
        order: 3;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        margin-right: 0.5rem;
    }

    .nav-menu {
        order: 4;
        margin: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
        border-top: 2px solid var(--secondary-color);
    }

    .nav-menu.active {
        max-height: 600px;
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 1rem 0;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        color: #ffffff;
        justify-content: space-between;
        border-radius: 0;
    }

    .nav-link:hover {
        background: rgba(255, 215, 0, 0.1);
        color: var(--secondary-color);
    }

    .nav-link.active {
        background: rgba(255, 215, 0, 0.25) !important;
        color: var(--secondary-color) !important;
        font-weight: 600;
    }

    /* Ensure home button active state on mobile */
    li:not(.dropdown) > .nav-link.active {
        background: rgba(255, 215, 0, 0.25) !important;
        color: var(--secondary-color) !important;
    }

    .dropdown.active > .nav-link {
        background: rgba(255, 215, 0, 0.2) !important;
        color: var(--secondary-color) !important;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.4);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        min-width: auto;
        padding: 0;
        pointer-events: auto;
    }

    .dropdown.active .dropdown-menu {
        max-height: 400px;
        padding: 0.5rem 0;
    }

    .dropdown-menu a {
        padding-left: 2.5rem;
        border-left: none;
    }

    .dropdown-menu a:hover {
        padding-left: 2.5rem;
        border-left: none;
        background: rgba(255, 215, 0, 0.15);
    }

    .dropdown-menu a.active {
        background: rgba(255, 215, 0, 0.25);
        color: var(--secondary-color);
        font-weight: 600;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .page-header {
        min-height: 300px;
        max-height: 450px;
        padding: 3rem 0;
        width: 100%;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .hero-section {
        height: 400px;
        max-height: 60vh;
        width: 100%;
    }

    .carousel-content {
        padding: 2rem 1rem;
    }

    .carousel-content h2 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .carousel-btn.prev {
        left: 1rem;
    }

    .carousel-btn.next {
        right: 1rem;
    }

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

    .events-container {
        height: 450px;
    }

    .event-image {
        height: 250px;
    }

    .event-content {
        padding: 1.5rem;
    }

    .event-content h3 {
        font-size: 1.3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 300px;
        max-height: 50vh;
        width: 100%;
    }

    .carousel-content h2 {
        font-size: 1.5rem;
    }

    .carousel-content p {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 0.5rem;
    }

    .carousel-btn.next {
        right: 0.5rem;
    }

    .events-container {
        height: 400px;
    }

    .event-image {
        height: 200px;
    }

    .event-content {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 2rem 0;
    }

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

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .logo-icon::before {
        font-size: 0.7rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--secondary-color);
    color: var(--primary-color);
}

::-moz-selection {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-slide,
.event-card {
    animation: fadeIn 0.6s ease-in-out;
}

/* Page Header Styles */
.page-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    position: relative;
    min-height: 500px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 769px) {
    .page-header {
        min-height: 600px;
        height: auto;
        max-height: none;
    }
}


.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    width: 100%;
    height: 100%;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.25rem;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.event-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(128, 0, 32, 0.2);
}

.event-item-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.event-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-item:hover .event-item-image img {
    transform: scale(1.1);
}

.upcoming-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.event-item-content {
    padding: 1.5rem;
}

.event-item-content .event-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.event-item-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.event-item-content p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(128, 0, 32, 0.95) 0%, rgba(128, 0, 32, 0.8) 100%);
    color: var(--white);
    padding: 1.75rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-tab {
    padding: 0.875rem 2.25rem;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.gallery-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--secondary-color);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 0;
    opacity: 0.2;
}

.gallery-tab:hover::before {
    width: 300px;
    height: 300px;
}

.gallery-tab:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.2);
}

.gallery-tab {
    position: relative;
    z-index: 1;
}

.gallery-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.gallery-content {
    display: none;
}

.gallery-content.active {
    display: block;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.3s;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 3;
    transition: background 0.3s;
}

.video-thumbnail:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    transition: transform 0.3s;
}

.play-button svg circle {
    transition: fill 0.3s;
}

.video-thumbnail:hover .play-button {
    transform: scale(1.1);
}

.video-thumbnail:hover .play-button svg circle {
    fill: rgba(255, 0, 0, 1);
}

.video-container.playing .video-thumbnail {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
    background: #000;
}

.video-container.playing .video-iframe {
    opacity: 1;
    z-index: 4;
}

/* Error state styling */
.video-container.error .video-thumbnail {
    opacity: 1;
    z-index: 2;
}

.video-container.error .video-iframe {
    display: none;
}

.video-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #d32f2f;
    text-align: center;
    z-index: 5;
    display: none;
}

.video-container.error .video-error-message {
    display: block;
}

.video-info {
    padding: 1.5rem;
    background: var(--white);
}

.video-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.video-info p {
    color: #6b7280;
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

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

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 4rem;
    }

    .timeline-year {
        position: absolute;
        left: 0;
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
        margin: 0;
    }

    .timeline-content {
        max-width: 100%;
    }

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

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

    .gallery-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-tab {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header {
        min-height: 200px;
        max-height: 300px;
        padding: 2rem 0;
        width: 100%;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

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


/* organization */



/* GRID */
.leaders-grid {
    padding: 20px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 25px;
}

/* CARD */
.leader-card {
  background: #f3d589;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(240, 225, 164, 0.15);
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
}

/* RED CURVES */
.curve {
  position: absolute;
  width: 30px;
  height: 130px;
  background: #660101;
  border-radius: 60px;
  top: 90px;
}

.curve.left { left: -22px; }
.curve.right { right: -22px; }

/* HEADER */
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
}

.logos {
  width: 36px;
}

.card-header h4 {
  color: #b40b0e;
  font-size: 14px;
  margin: 0;
}

/* BODY */
.card-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.leader-img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  border-radius: 14px;
}

.info p {
  font-size: 14px;
  margin: 6px 0;
}
.org-font {
  font-size: 13px;
  color: #c50909;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .leaders-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .leaders-grid { grid-template-columns: 1fr; }
}



/*kolgai*/

body {
  margin: 0;
  font-family: "Noto Serif Tamil", sans-serif;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee);
  min-height: 100vh;
}

h1 {
  text-align: center;
  color: #9d2121;
  margin: 20px 0;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  max-width: 1200px;
  margin: auto;
}

.cardk {
  background: linear-gradient(135deg, #84fab0, #8fd3f4);
  color: #222;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cardk:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}
.site-subtitle {
    text-align: center;
  color: #601b1b;
  margin: 20px 0;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);

}   

/* Alternate colors for variety */
.cardk:nth-child(odd) {
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
}
.cardk:nth-child(even) {
  background: linear-gradient(135deg, #ffdde1, #ee9ca7);
}

/* 📱 Tablet: 2 columns */
@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 💻 Desktop: 3 columns */
@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
