
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
}

.sidebar {
    background-color: #8B1D20;
    color: #f5e5c3;
    width: 160px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed; /* stick to left corner */
    top: 0;
    bottom: 0;
    left: 0;
    justify-content: center;
    z-index: 1000; /* make sure it's on top */
    height: 464px;
    margin-top: 5%;
    margin-bottom: 5%;

}


.sidebar .logo {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar .logo img {
    width: 50px;
    margin-bottom: 10px;
}

.sidebar .logo h2 {
    font-size: 11px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar nav {
    width: 100%;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

.sidebar nav ul li {
    margin: 10px 0;
}

.sidebar nav ul li a {
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    color: #f5e5c3;
    text-decoration: none;
}

.sidebar hr {
    width: 60%;
    border: 0.5px solid #333;
    margin: 15px 0;
}

.sidebar .social-icons {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.sidebar .social-icons a {
    margin: 0 5px;
}

.sidebar .social-icons a img {
    width: 20px;
}

.main-content {
    flex: 1;
    width: 100%;
    position: relative;
    background: url('../images/kut.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}



.overlay button:hover {
    background: white;
    color: #D49C56;
    transform: translateY(-2px);
}
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.menu li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 8px 0;
    color: #f5e5c3;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.menu li a:hover {
    background-color: #D49C56;
    color: #ffffff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #8B1D20;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 160px;
    text-align: left;
    border-left: 2px solid #D49C56;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 8px 12px;
    color: #f5e5c3;
    font-size: 11px;
}

.dropdown-menu li a:hover {
    background-color: #D49C56;
    color: #ffffff;
}



.popup {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.popup-content {
    max-width: 80%;
    max-height: 80%;
    border: 4px solid #f5e5c3;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #f5e5c3;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}



.popup {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.popup-content {
    max-width: 80%;
    max-height: 80%;
    border: 4px solid #f5e5c3;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #f5e5c3;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


.profile-overlay {
    width: 80%;
    max-height: 80%;
    overflow-y: auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    text-align: center;
}

.profile-img-top {
    width: 200px;           /* fixed width */
    height: 200px;          /* fixed height */
    object-fit: cover;      /* fill the box, crop excess */
    display: block;         /* remove inline gaps */
    margin: 0 auto 20px auto;  /* center the image */
    border: 3px solid #8fa582;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.profile-overlay h1 {
    color: #f5e5c3;
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.profile-text {
    color: #f5e5c3;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
    padding: 0 10px;
}

.collage-container {
    display: flex;
    width: 100%;
    height: 250px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 10px;
    gap: 10px; /* adds gap between images */
}

.collage-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.5s ease;
    cursor: pointer;
    border-radius: 8px;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.collage-item .label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(255, 69, 0, 0.8);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

.collage-item.active {
    flex: 3;
}

.collage-item.active img {
    transform: scale(1.1);
}

.collage-item:not(.active) img {
    filter: grayscale(80%);
}


.social-icons a .fa-facebook-f {
    color: #1877F2;
}
.social-icons a .fa-x-twitter {
    color: #000000;
}
.social-icons a .fa-youtube {
    color: #FF0000;
}
.social-icons a .fa-instagram {
    color: #E1306C;
}
.social-icons a .fa-blog, 
.social-icons a .fa-rss {
    color: #FF6600;
}

.social-icons i {
    font-size: 20px;
}

.social-icons i:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}


.corner-logo {
    position: fixed;
    top: 2px;
    right: 24px;          
    width: 90px;          
    height: auto;
    z-index: 2000;        
    border-radius: 6px;
    height: 130px;
}



.main-content {
    width: 100%;
    height: 100vh;                      /* full viewport height */
    position: relative;
    background: url('../images/kut.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;             /* stack vertically */
    align-items: center;
}

.top-quote,
.bottom-quote {
    width: 100%;
    height: 7%;
    color: #f5e5c3;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.overlay {
    width: 100%;
    max-width: 600px;
    height: 15%;
    background: #8B1D20;
    text-align: center;
    color: white;
    z-index: 2;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0.85;
    padding: 10px 20px;
    margin: 10px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overlay h1 {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 1px;

}

.overlay .tagline {
    font-size: 14px;
    font-weight: bold;
    color: #ddd;
}

.image-slider {
    width: 100%;
    max-width: 600px;
    height: 75%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); */
    margin: 10px 0;
}

.slide-track {
    display: flex;
    width: calc(400px * 3); /* adjust: max-width * number of slides */
    transition: transform 0.5s ease;
}

.slide {
    width: 600px;
    flex-shrink: 0;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}




/* Toggle button */
.menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: none;
}

/* Close button inside sidebar */
.menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: none;
}


.profile-page .main-content {
    width: 100%;
    height: 100vh;
    position: relative;
    background: url('../images/kut.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 7%;    /* space for top fixed quote */
    padding-bottom: 7%; /* space for bottom fixed quote */
    box-sizing: border-box;
}

.profile-page .profile-section {
    width: 95%;
    max-width: 850px;
    height: 98%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: #f5e5c3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.profile-page .profile-section img.profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 3px solid #8fa582;
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-page .top-quote,
.profile-page .bottom-quote {
    position: fixed;
    width: 100%;
    height: 7%;
    color: #f5e5c3;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
}

.profile-page .top-quote {
    top: 0;
    left: 0;
}

.profile-page .bottom-quote {
    bottom: 0;
    left: 0;
}
.profile-section {
    line-height: 1.6;
}

.profile-section h2 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #D49C56;
    border-bottom: 1px solid #8fa582;
    padding-bottom: 5px;
}

.profile-list {
    list-style: disc inside;
    margin: 10px 0 20px 0;
    padding: 0 15px;
}

.profile-list li {
    margin-bottom: 6px;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: linear-gradient(to right, #8B1D20, #D49C56);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.profile-text-block {
    flex: 1 1 60%;
    color: #f5e5c3;
    padding-right: 20px;
}

.profile-text-block h1 {
    font-size: 28px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.profile-text-block .profile-role {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.profile-image-block {
    flex: 0 0 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.profile-img-side {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #f5e5c3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}


/* Scrollbar for the entire page */
::-webkit-scrollbar {
    width: 5px; /* Set the width of the scrollbar */
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Light background for the scrollbar track */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: #D49C56; /* Darker thumb color */
    border-radius: 5px; /* Rounded corners for the thumb */
    border: 2px solid #8B1D20; /* Border around the thumb for emphasis */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #8B1D20; /* Darker color when hovering over the thumb */
}

/* Scrollbar for specific div or container */
.scrollable-container {
    width: 100%;
    height: 300px; /* Example height */
    overflow: auto; /* Enable scrolling */
    padding-right: 10px; /* Add space to ensure the scrollbar appears */
}

.scrollable-container::-webkit-scrollbar {
    width: 12px;
}

.scrollable-container::-webkit-scrollbar-track {
    background-color: #e2e2e2; /* Subtle background color */
    border-radius: 10px;
}

.scrollable-container::-webkit-scrollbar-thumb {
    background-color: #8B1D20;
    border-radius: 10px;
}

.scrollable-container::-webkit-scrollbar-thumb:hover {
    background-color: #D49C56;
}






@media (max-width: 768px) {
    body, html {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .main-content {
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        box-sizing: border-box;
        margin-left: 0;
    }

    .top-quote,
    .bottom-quote {
        width: 100%;
        font-size: 12px;
        padding: 6px 10px;
        box-sizing: border-box;
        text-align: center;
        background: rgba(0, 0, 0, 0.4);
    }

    .overlay {
        width: 90%;
        background: #8B1D20;
        border-radius: 12px;
        padding: 10px;
        text-align: center;
    }

    .overlay h1 {
        font-size: 18px;
    }

    .overlay .tagline {
        font-size: 12px;
    }

    .image-slider {
        width: 90%;
        height: 60vh; /* exactly 60% of viewport height */
        margin: 10px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden; /* ensure no extra space leaks */
    }

    .slide-track {
        display: flex;
        height: 100%;
        width: 100%;
    }

    .slide {
        width: 100%;
        height: 100%;
        flex-shrink: 0;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* fill container fully */
        border-radius: 10px;
        display: block;
    }

    /* Sidebar adjustments */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 220px;
        background-color: #8B1D20;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
        box-sizing: border-box;
        overflow-y: auto;
        z-index: 1100;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .corner-logo {
        position: static;
        width: 100px;
        height: auto;
        margin-bottom: 5px;
    }

    .menu-toggle {
        display: block;
        position: fixed;
        top: 40px; /* slightly lower */
        left: 15px;
        font-size: 28px;
        background: #8B1D20;
        /*background: none;*/
        border: none;
        color: #fff;

        cursor: pointer;
        z-index: 1200;
        

        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow around the button */
    
        backdrop-filter: blur(10px);

    }
    


    .menu-close {
        display: block;
        align-self: flex-end;
        margin-bottom: 10px;
        font-size: 28px;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
    }

    .sidebar nav {
        width: 100%;
    }

    .sidebar nav ul {
        width: 100%;
        text-align: center;
    }

    .sidebar nav ul li {
        margin: 5px 0;
    }

    .sidebar nav ul li a {
        font-size: 14px;
        padding: 10px;
    }


    .sidebar .social-icons {
        flex-wrap: wrap; 
        justify-content: space-around; 
        margin-top: 2px;
        gap: 10px; /* Increase gap for mobile */
    }
    
    .sidebar nav {
        margin-bottom: 2px; 
    }

    
}

@media (max-width: 768px) {
    .profile-page .main-content {
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 10px;
        box-sizing: border-box;
        margin-left: 0;
    }

    .profile-page .top-quote,
    .profile-page .bottom-quote {
        width: 100%;
        font-size: 12px;
        padding: 6px 10px;
        box-sizing: border-box;
        text-align: center;
        background: rgba(0, 0, 0, 0.4);
    }


    .profile-page .profile-section {
        width: 90%;
        height: 70%;
        padding: 15px;
        margin-top: 19%;    
        /* margin-bottom: 7%;  */
        overflow-y: auto;
    }

    
    .profile-page .top-quote,
    .profile-page .bottom-quote {
        font-size: 12px;
        height: auto;
        padding: 8px;
    }

    .dropdown-menu.show {
        display: block;
        position: relative;
        left: 0;
        top: auto;
        border-left: none;
        width: 100%;
        text-align: center;
    }

}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        padding: 5px;
    }

    .profile-text-block {
        padding-right: 0;
        flex: 1 1 100%;
    }

    .profile-img-side {
        width: 140px;
        height: 140px;
    }
}




@media (max-width: 768px) and (device-width: 360px) {
    .profile-page-tamil .profile-header h1 {
        font-size: 18px; /* Android-specific font size for header in Tamil */
    }

    .profile-page-tamil .profile-header .profile-role {
        font-size: 12px; /* Adjust the font size for the role text in Tamil */
    }
}


@media only screen and (max-width: 1080px) and (min-device-pixel-ratio: 2.5) {
    .profile-page-tamil .profile-header h1 {
        font-size: 20px; /* Android-specific font size for header in Tamil */
    }

    .profile-page-tamil .profile-header .profile-role {
        font-size: 12px; /* Adjust the font size for the role text in Tamil */
    }
}




/* Gallery Section */
.gallery-section {
    width: 95%;
    max-width: 900px;
    height: 100%; /* Adjust the height according to the available space */
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: #f5e5c3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow-y: auto; /* Ensures the gallery section scrolls if the content overflows */
    margin-top: 1%; /* Ensure the gallery section has spacing from the top quote */
    margin-bottom: 1%; /* Ensure the gallery section doesn't conflict with the bottom quote */
}

/* Gallery Title */
.gallery-section h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: bold;
}

/* Gallery Overlay Styling */
.gallery-overlay {
    width: 95%;
    max-width: 1200px;
    min-height: 500px; /* Ensure the gallery is large enough */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align images to the top */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.book-overlay {
    width: 95%;
    max-width: 1200px;
    min-height: 400px; /* Ensure the gallery is large enough */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align images to the top */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


@keyframes bounce {
    0% {
        transform: translateY(0); /* Starting position */
    }
    50% {
        transform: translateY(-1px); /* Move up by 1px */
    }
    100% {
        transform: translateY(0); /* Move back to original position */
    }
}







.gallery-scroll {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 images per row on desktop */
    gap: 10px;
    width: 100%;
}

.book-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 5 images per row on desktop */
    gap: 10px;
    width: 100%;
}


.news-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 5 images per row on desktop */
    gap: 10px;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 140px; /* Adjust size */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.book-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 400px; /* Adjust size */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.news-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 400px; /* Adjust size */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.book-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.news-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.pagination-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-controls button {
    padding: 6px 12px;
    border: none;
    background: #8B1D20;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.pagination-controls button:hover {
    background: #D49C56;
}

@media (max-width: 768px) {
    .gallery-scroll {

        grid-template-columns: repeat(2, 1fr); /* 2 images per row on tablets */
    }

    .book-scroll {

        grid-template-columns: repeat(2, 1fr); /* 2 images per row on tablets */
    }

    .news-scroll {

        grid-template-columns: repeat(2, 1fr); /* 2 images per row on tablets */
    }
    
}

@media (max-width: 480px) {
    .gallery-scroll {
        grid-template-columns: 1fr; /* 1 image per row on mobile */
    }

    .book-scroll {
        grid-template-columns: 1fr; /* 1 image per row on mobile */
    }


    .news-scroll {
        grid-template-columns: 1fr; /* 1 image per row on mobile */
    }
}




/* Medium screens (tablets) */
@media (max-width: 992px) {
    .gallery-section {
        width: 95%;
        padding: 12px;
    }
    .gallery-item img {
        width: 90%;
        height: 100%;
        object-fit: cover;
    }

    .book-item img {
        width: 90%;
        height: 100%;
        object-fit: fill;
    }

    .news-item img {
        width: 90%;
        height: 100%;
        object-fit: fill;
    }

    .gallery-scroll {
        width: 92%;
    }
    
    .book-scroll {
        width: 92%;
    }

    .news-scroll {
        width: 92%;
    }

    .gallery-overlay {
        width: 85%;
    }

    .book-overlay {
        width: 85%;
    }
    
}

/* Small screens (mobile) */
@media (max-width: 768px) {
    .gallery-section {
        width: 95%;
        padding: 10px;
        margin-top: 15%;
        margin-bottom: 15%;
        height: auto; /* Let it grow naturally */
    }
    .gallery-item img {
        width: 90%;
        height: 100%;
        object-fit: cover;
    }
    .gallery-scroll {
        width: 92%;
    }

    .book-scroll {
        width: 92%;
    }

    .news-scroll {
        width: 92%;
    }
    .gallery-overlay {
        width: 85%;
    }

    .book-overlay {
        width: 85%;
    }
}


@media (max-width: 480px) {
    .gallery-section {
        width: 98%;
        padding: 8px;
        margin-top: 20%;
        margin-bottom: 20%;
    }
    .gallery-item img {
        width: 90%;
        height: 100%;
        object-fit: cover;
    }

    .book-item img {
        width: 90%;
        height: 100%;
        object-fit: fill;
    }

    .news-item img {
        width: 90%;
        height: 100%;
        object-fit: fill;
    }

    .gallery-scroll {
        width: 92%;
    }

    .book-scroll {
        width: 92%;
    }

    .news-scroll {
        width: 92%;
    }

    .gallery-overlay {
        width: 85%;
    }

    .book-overlay {
        width: 85%;
    }
}




/* Ensure menu toggle also shows on iPad (up to 1024px) */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
        position: fixed;
        top: 55px;
        left: 15px;
        font-size: 28px;
        background: #8B1D20;
        border: none;
        color: #fff;
        cursor: pointer;
        z-index: 1200;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 240px;
        background-color: #8B1D20;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
        box-sizing: border-box;
        overflow-y: auto;
        z-index: 1100;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-close {
        display: block;
        align-self: flex-end;
        margin-bottom: 10px;
        font-size: 28px;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
    }
}



@media (max-width: 1024px) {
    .corner-logo {
        position: relative;       /* part of sidebar flow */
        top: auto;
        right: auto;
        width: 100px;             /* slightly larger */
        height: auto;
        margin-bottom: 15px;      /* add space below logo */
        align-self: center;       /* center inside sidebar flex */
    }
}



@media (min-width: 769px) and (max-width: 1024px) {
    .dropdown-menu.show {
        display: block;
        position: relative;
        left: 0;
        top: auto;
        border-left: none;
        width: 100%;
        text-align: center;
    }

}




@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh;
        box-sizing: border-box;
        padding-top: 50px;    /* reserve space for fixed top */
        padding-bottom: 50px; /* reserve space for fixed bottom */
        position: relative;
    }

    .top-quote {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px;
        font-size: 12px;
        padding: 6px 10px;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
        box-sizing: border-box;
    }

    .bottom-quote {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        font-size: 12px;
        padding: 6px 10px;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
        box-sizing: border-box;
    }

    .image-slider {
        width: 90%;
        height: 30vh;
        margin: 10px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .slide {
        width: 100%;
        height: 100%;
        flex-shrink: 0;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        display: block;
    }

    .dropdown-menu.show {
        display: block;
        position: relative;
        left: 0;
        top: auto;
        border-left: none;
        width: 100%;
        text-align: center;
        background-color: #8B1D20;
    }

    .profile-section{
        margin-top: 8%;
        margin-bottom: 8%;
    }
    .menu-toggle{
        position: fixed;
        top: 10;
        left: 5;        
    }




    .profile-page .top-quote {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px;
        font-size: 12px;
        padding: 6px 10px;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
        box-sizing: border-box;
    }

    .profile-page .bottom-quote {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        font-size: 12px;
        padding: 6px 10px;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
        box-sizing: border-box;
    }

    .gallery-section {
        width: 90%;
        padding: 12px;
        height: 85%;
        margin-top: 8%;
    }
    .gallery-overlay {
        width: 95%;
    }

    .book-overlay {
        width: 95%;
    }

    .gallery-scroll{
        width: 98%;   
    }

    .book-scroll{
        width: 98%;   
    }


    .news-scroll{
        width: 98%;   
    }

}









.inline-image-row {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}


.inline-image-row img {
    width: calc(33.33% - 10px);
    height: 200px;
    object-fit: fill;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}



@media (max-width: 768px) {
    .inline-image-row {
        flex-direction: column;
        gap: 10px;
    }

    .inline-image-row img {
        width: 100%;  /* full width on mobile */
    }
}
