
/* Hero Slider Styles */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    color: white;
    z-index: 3;
    padding: 0 20px;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'Georgia', serif;
}

.hero-tagline {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b0000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: white;
    color: #8b0000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid white;
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s;
    display: none;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

@media (min-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-tagline {
        font-size: 22px;
    }
    
    .slider-arrow {
        display: block;
    }
}

@media (min-width: 992px) {
    .hero {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 56px;
    }
}

/* Sponsors Section */
.sponsors-section {
    background: #f8f9fa;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sponsor-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.sponsor-logo-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.sponsor-company {
    font-size: 13px;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #8b0000 0%, #5c0000 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 35px;
    background: white;
    color: #8b0000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin: 10px;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

/* Tablet */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 48px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width: 992px) {
    .hero-section {
        height: 600px;
    }
    
    .hero-content h1 {
        font-size: 56px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.quick-links-homepage {
    margin: 0 !important;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.quick-link-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 5px solid var(--color-secondary);
    position: relative;
}

.quick-link-card:hover,
.quick-link-card:active {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: var(--color-primary);
}

.quick-link-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.quick-link-card h3 {
    color: var(--color-primary);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.quick-link-card p {
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.link-arrow {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: var(--color-secondary);
    transition: all 0.3s ease;
}

.quick-link-card:hover .link-arrow {
    transform: translateY(-50%) translateX(5px);
    color: var(--color-primary);
}

@media (min-width: 600px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 992px) {
    .quick-links-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .quick-links-homepage {
        padding: 40px 0 !important;
    }
    
    .quick-link-card {
        padding: 25px 20px;
    }
    
    .quick-link-icon {
        font-size: 40px;
    }
    
    .quick-link-card h3 {
        font-size: 20px;
    }
    
    .quick-link-card p {
        font-size: 14px;
    }
    
    .link-arrow {
        font-size: 24px;
        right: 20px;
    }
}

/* Beautiful Scroll Notice Board - Mobile First */
.notice-board-section {
    background: linear-gradient(135deg, #d4a574 0%, #f5deb3 50%, #d4a574 100%);
    padding: 50px 10px;
    margin: 0;
    position: relative;
    overflow: visible;
}

.scroll-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
}

.scroll-board {
    background: linear-gradient(to bottom, #f5e6d3 0%, #efe0c8 50%, #f5e6d3 100%);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: visible;
}

/* Wooden rods */
.scroll-rod {
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, #3d2817 0%, #5c3d2e 30%, #704214 50%, #5c3d2e 70%, #3d2817 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    z-index: 2;
}

.scroll-rod.top {
    top: 0;
    border-radius: 8px 8px 0 0;
}

.scroll-rod.bottom {
    bottom: 0;
    border-radius: 0 0 8px 8px;
}

/* Side ropes - Hidden on mobile */
.scroll-rope {
    display: none;
}

/* Tassels - Hidden on mobile */
.tassel {
    display: none;
}

/* Om symbol */
.om-symbol {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, #8b0000 0%, #5c0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ffd700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border: 3px solid #ffd700;
    z-index: 3;
}

/* Content area */
.scroll-content {
    padding: 40px 15px 55px;
    position: relative;
}

.scroll-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(139,0,0,0.08) 0%, rgba(139,0,0,0.04) 100%);
    border-radius: 8px;
}

.scroll-title {
    font-size: 22px;
    font-weight: 700;
    color: #8b0000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    font-family: 'Georgia', serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Notice items */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notice-item {
    background: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #8b0000;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.notice-item:active {
    transform: scale(0.98);
    box-shadow: 0 5px 12px rgba(139,0,0,0.2);
}

.notice-icon-circle {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #8b0000 0%, #5c0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    border: 3px solid rgba(255,215,0,0.4);
    margin-bottom: 12px;
}

.notice-content {
    width: 100%;
}

.notice-title-text {
    font-size: 17px;
    font-weight: 700;
    color: #8b0000;
    margin: 0 0 8px 0;
    font-family: 'Georgia', serif;
    line-height: 1.3;
}

.notice-description {
    font-size: 14px;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.notice-time-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b0000 0%, #5c0000 100%);
    color: #ffd700;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Tablet and up */
@media (min-width: 600px) {
    .notice-board-section {
        padding: 60px 20px;
    }
    
    .scroll-container {
        padding: 0 20px;
    }
    
    .scroll-content {
        padding: 50px 25px 65px;
    }
    
    .scroll-title {
        font-size: 28px;
        letter-spacing: 3px;
    }
    
    .notice-item {
        flex-direction: row;
        text-align: left;
        padding: 18px;
        gap: 15px;
    }
    
    .notice-icon-circle {
        margin-bottom: 0;
        width: 65px;
        height: 65px;
        font-size: 34px;
    }
    
    .notice-title-text {
        font-size: 18px;
    }
    
    .notice-description {
        font-size: 15px;
    }
    
    .om-symbol {
        width: 80px;
        height: 80px;
        font-size: 44px;
        bottom: -40px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .notice-board-section {
        padding: 80px 0;
    }
    
    .scroll-board {
        border-radius: 15px;
    }
    
    .scroll-rod {
        height: 25px;
    }
    
    .scroll-rod.top {
        border-radius: 10px 10px 0 0;
    }
    
    .scroll-rod.bottom {
        border-radius: 0 0 10px 10px;
    }
    
    /* Show ropes and tassels on desktop */
    .scroll-rope {
        display: block;
        position: absolute;
        width: 8px;
        top: 25px;
        bottom: 25px;
        background: linear-gradient(180deg, #8b7355 0%, #6b5644 50%, #8b7355 100%);
        box-shadow: 2px 0 4px rgba(0,0,0,0.3);
    }
    
    .scroll-rope.left {
        left: 15px;
    }
    
    .scroll-rope.right {
        right: 15px;
    }
    
    .tassel {
        display: block;
        position: absolute;
        width: 40px;
        height: 60px;
        bottom: -60px;
    }
    
    .tassel.left {
        left: 15px;
    }
    
    .tassel.right {
        right: 15px;
    }
    
    .tassel-rope {
        width: 8px;
        height: 20px;
        background: linear-gradient(180deg, #8b7355 0%, #6b5644 100%);
        margin: 0 auto;
    }
    
    .tassel-fringe {
        width: 40px;
        height: 40px;
        background: linear-gradient(180deg, #c9a961 0%, #a67c00 100%);
        clip-path: polygon(50% 0%, 0% 30%, 10% 100%, 30% 90%, 50% 100%, 70% 90%, 90% 100%, 100% 30%);
        box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    }
    
    .scroll-content {
        padding: 60px 35px 80px;
    }
    
    .scroll-title {
        font-size: 32px;
        position: relative;
    }
    
    .scroll-title::before,
    .scroll-title::after {
        content: '❈';
        position: absolute;
        color: #c9a961;
        font-size: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .scroll-title::before {
        left: -35px;
    }
    
    .scroll-title::after {
        right: -35px;
    }
    
    .notice-item {
        padding: 20px;
    }
    
    .notice-item:hover {
        transform: translateX(5px);
        box-shadow: 0 6px 15px rgba(139,0,0,0.25);
    }
    
    .om-symbol {
        width: 90px;
        height: 90px;
        font-size: 48px;
        bottom: -45px;
    }
}

/*info card*/

.info-card {
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-card:hover,
.info-card:active {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}


/* Gallery Preview Styles - Add this inside the section or your CSS file */
.home-gallery-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.home-gallery-grid {
    display: grid;
    /* Desktop: 3 columns, Mobile: 1 column */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px;
    margin-top: 30px;
}

.home-gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px; /* Fixed Height - This removes extra space */
    background: #ddd; /* Placeholder color */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes image fill the box perfectly */
    display: block;
    transition: transform 0.3s;
}

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

/* Overlay Styling */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.home-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 30px;
    color: white;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .home-gallery-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 15px;
    }
    .home-gallery-item {
        height: 220px; /* Slightly smaller height on mobile */
    }
}
