/* History Section Start */
.history-main-section {
    padding-top: 40px;
    background-color: #f4e1d2;
    /* Soft beige to match temple aesthetics */
    font-family: 'Poppins', sans-serif;
}

.history-main-section .container {
    max-width: 1200px;
}

.history-main-section h1,
.history-main-section h2 {
    color: #8b4513;
    /* Rich brown for a traditional look */
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.history-main-section p {
    color: #5a3e1b;
    font-size: 17px;
    line-height: 1.8;
}

/* Content Box Styling */
.history-content,
.trivia-content {
    background: #fff7eb;
    /* Soft cream background */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #8b4513;
    transition: transform 0.3s ease-in-out;
    height: 440px;
}

.history-content:hover,
.trivia-content:hover {
    transform: translateY(-5px);
}

/* Decorative Borders */
.history-main-section .row {
    border-bottom: 2px dashed #8b4513;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.history-image,
.trivia-image {
    height: 440px;
    width: 100%;
}

.founder-image {
    width: 100%;
    height: 300px;
}

.founder-image img {
    width: 100%;
    height: 100%;
}

/* Image Styling */
.history-image img,
.trivia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border: 4px solid #8b4513;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;
    object-position: top;

}

.history-image img:hover,
.trivia-image img:hover {
    transform: scale(1.01);
    /* Slight zoom on hover for a stylish effect */
}


/* Responsive Design */
@media (max-width: 768px) {
    .history-main-section .row {
        flex-direction: column;
        border-bottom: none;
    }

    .history-content,
    .trivia-content {
        text-align: center;
        margin-bottom: 20px;
    }
}

/* History Section End */


/* gallery section start */
.gallery-main-section {
    padding: 20px 0px;
    background-color: #F4E1D2;
}

.gallery-section h1 {
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    color: #562C39;
    font-family: serif;
}

.gallerys {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    border-radius: 10px;
}

.left-side {
    width: 50%;
}

.right-side {
    width: 50%;
}

.top-side {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.sea-imgsss {
    width: 50%;
    overflow: hidden;
}

.sea-imgsss1 {
    height: 205px;
    overflow: hidden;
}

.sea-imgsss img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sea-imgsss img:hover {
    transform: scale(1.1);
}

.down-side {
    margin-top: 30px;
    overflow: hidden;
}

.down-side img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.down-side img:hover {
    transform: scale(1.1);
}

/* gallery section end */

/* video section start */
/* General Styles */
.video-main-section {
    padding-top: 20px;
    padding-bottom: 50px;
    background-color: #F4E1D2;
}

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

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: #562C39;
    margin-bottom: 30px;
    font-family: serif;

}

/* Video Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Video Item */
.video-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.video-item:hover {
    transform: scale(1.05);
}

/* Video Styling */
.video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Video Description */
.video-description {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.smallHeader {
    padding-top: 0;
    padding-bottom: 0;
}

/* Responsive Design */
@media(max-width:769px) {
    .gallerys {
        flex-wrap: wrap;
    }

    .left-side {
        width: 100%;
    }

    .right-side {
        width: 100%;
    }

    .history-main-section .row {
        margin-bottom: 0px;
        padding-bottom: 0;
    }

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

    .trivia-content,
    .history-content,
    .founder-content,
    .trivia-life-section {
        height: auto !important;
        /* Let the content define the height */
        min-height: unset;
        /* Remove any minimum height */
        max-height: unset;
        /* Remove any maximum height */
    }
}

@media (max-width: 426px) {
    .top-side {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .sea-imgsss {
        display: flex;
        flex-direction: column;
        width: 100%;
    }



}

/* video section end */