html, body {
    overflow-x: hidden;
}

#SlideShow .slide-item,
#SlideShow .owl-item {
    height: 450px !important;
}

#SlideShow .slide-item img {
    width: 100%;
    height: 100%;
}

.owl-stage-outer{
    margin: 0 !important;
    padding: 0 !important;
}


/*Running Text*/
.slider-container {
	width: 100vw; /* Full viewport width */
	overflow: hidden;
	background-color: #519CFF;
	position: relative;
	padding: 10px 0;
  }
  
  .slider-text {
	display: inline-block;
	white-space: nowrap;
	color: #0c3879ff;
	font-size: 24px;
	font-weight: bold;
	font-family: Inria Sans, var(--default-font-family);
	animation: slide 20s linear infinite;
  }

  .slider-text:hover {
	animation-play-state: paused;
}
  
  @keyframes slide {
	0% {
	  transform: translateX(100vw); /* Start completely off-screen on the right */
	}
	100% {
	  transform: translateX(-100%); /* Exit completely off-screen on the left */
	}
  }  
/*end of running text*/

.width-container{
    max-width: 1280px; /* Fixed width */
    margin: 0 auto; /* Center the container */
    padding: 20px;
}

.about-us-title {
    margin-top: 34px;
    margin-left: 80px;
    font-family: Inconsolata, var(--default-font-family);
    font-size: 32px;
    font-weight: 800;
    text-decoration: underline;
    letter-spacing: 3.2px;
}

.about-us-description {
    margin-top: 33px;
    margin-left: 105px;
    margin-right: 70px;
    display: flex;
    align-items: center;
    font-family: Inder, var(--default-font-family);
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    text-align: justify;
}


.photo-gallery-title {
    margin-top: 26px;
    margin-left: 80px;
    font-family: Inconsolata, var(--default-font-family);
    font-size: 32px;
    font-weight: 800;
    text-decoration: underline;
    letter-spacing: 3.2px;
}

.photo-gallery-frame {
    margin-top: 0px;
    margin-left: 100px;
    margin-right: 10px;
    
}

.photo-gallery-arrows {
    display: flex;
    justify-content: right;
    margin-bottom: 20px;
    margin-top: 0;
    
}

.photo-gallery-arrows .swiper-button-prev,
.photo-gallery-arrows .swiper-button-next {
    position: static !important; /* Override Swiper's absolute positioning */
    width: 24px !important; /* Smaller size */
    height: 24px !important; /* Smaller size */
    background-color: transparent !important; /* No background */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000 !important; /* Black arrows */
    margin: 0 3px !important; /* Tighter spacing between buttons */
    
}

.photo-gallery-arrows .swiper-button-prev::after,
.photo-gallery-arrows .swiper-button-next::after {
    font-size: 12px !important; /* Smaller arrow size */
    
}




.flex-direction-column {
    display: flex;
    flex-direction: column;
    flex: 1; /* Allow each section to take equal space */
    min-width: 50%; /* Prevent overflow issues */
    
}

.flex-direction-column2 {
    display: flex;
    flex-direction: column;
    flex: 1; /* Allow each section to take equal space */
    min-width: 50%; /* Prevent overflow issues */
    
}

.photo-gallery {
    height: 300px;
    width: 100%;
    margin: 0; /* Remove margins since grid handles spacing */
    background-color: #D9D9D9;
    border-radius: 10px;
}

.photo-gallery-card {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    margin: 10px;
    
}

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

.video-cards {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    margin: 10px;
}

.video-gallery {
    height: 190px;
    width: 100%;
}

.video-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.photo-gallery-group-title {
    margin-top: 8px;
    text-align: left;
    font-family: Inria Sans, var(--default-font-family);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin-right: 5px;
    margin-left: 5px;
}

.photo-gallery-description {
    margin-top: 6px;
    margin-left: 5px;
    font-family: Inria Sans, var(--default-font-family);
    font-size: 12px;
    font-weight: 700;
}

.photo-gallery-outline {
    margin-top: 10px;
    margin-left: 5px;
    display: flex;
    margin-bottom: 10px;
}

.photo-video-gallery-logo {
    margin-top: 5px;
    margin-left: 2px;
    width: 15px;
    height: 15px;
    background: url(./assets/images/clock.png) no-repeat center;
    background-size: cover;
}

.photo-gallery-date {
    margin-top: 0px;
    margin-left: 3px;
    color: #A6AAA8;
    font-family: Inria Sans, var(--default-font-family);
    font-size: 16px;
    font-weight: 700;
}


.video-gallery-title {
    margin-top: 28px;
    margin-left: 80px;
    font-family: Inconsolata, var(--default-font-family);
    font-size: 32px;
    font-weight: 800;
    text-decoration: underline;
    letter-spacing: 3.2px;
}

.video-gallery-frame {
    margin-top: 0px;
    margin-left: 100px;
    margin-right: 10px;
    margin-bottom: 100px;
}

.video-gallery-group-title {
    margin-top: 9px;
    margin-left: 22px;
    font-family: Inria Sans, var(--default-font-family);
    font-size: 28px;
    font-weight: 700;
}

.video-gallery-description {
    margin-top: 14px;
    margin-left: 37px;
    font-family: Inria Sans, var(--default-font-family);
    font-size: 16px;
    font-weight: 700;
}

.video-gallery-outline {
    margin-top: 12px;
    margin-left: 28px;
    display: flex;
}

.video-gallery-date {
    margin-top: 2px;
    margin-left: 10px;
    color: #A6AAA8;
    font-family: Inria Sans, var(--default-font-family);
    font-size: 16px;
    font-weight: 700;
}

.video-gallery-arrows {
    display: flex;
    justify-content: right;
    margin-bottom: 20px;
    margin-top: 0;
    
}

.video-gallery-arrows .swiper-button-prev,
.video-gallery-arrows .swiper-button-next {
    position: static !important; /* Override Swiper's absolute positioning */
    width: 24px !important; /* Smaller size */
    height: 24px !important; /* Smaller size */
    background-color: transparent !important; /* No background */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000 !important; /* Black arrows */
    margin: 0 3px !important; /* Tighter spacing between buttons */
}

.video-gallery-arrows .swiper-button-prev::after,
.video-gallery-arrows .swiper-button-next::after {
    font-size: 12px !important; /* Smaller arrow size */
}


.school-congratulations-agenda-frame {
    display: flex; /* Use Flexbox to place items side by side */
    flex-direction: row; /* Horizontal layout for desktop */
    justify-content: space-between; /* Space out the two sections */
    gap: 30px; /* Space between Ucapan and Agenda */
    margin-top: 40px; /* Consistent spacing from previous section */
    margin-left: 80px; /
    
}

.school-congratulations-title {
    font-family: Inconsolata, var(--default-font-family);
    font-size: 32px; /* Increased from 32px for bigger title */
    font-weight: 800;
    text-decoration: underline;
    letter-spacing: 3.2px; /* Increased from 3.2px */
    text-align: left;
    margin-bottom: 20px;
}

.school-congratulations-frame {
    display: flex; /* Use Flexbox to place image and title side by side */
    flex-direction: row; /* Horizontal layout */
    align-items: center; /* Vertically center the title with the image */
    gap: 20px; /* Space between image and title */
    max-width: 520px;
}

.school-congratulations-picture {
    width: 300px; /* Doubled from 257px for bigger image */
    height: 400px; /* Doubled from 300px for bigger image */
    background-color: #D9D9D9;
    border-radius: 10px;
    margin-left: 20px;
   
}

.school-congratulations {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 250px; /* Doubled from 181px for bigger text */
    margin-top: 20px; /* Increased from 10px */
    margin-left: 0; /* Reset margin to center */
    font-family: Inter, var(--default-font-family);
    font-size: 32px; /* Increased from 32px for bigger text */
    font-weight: 400;
    line-height: 38.727px; /* Increased from 38.727px */
    text-align: center;
}

.school-congratulations-description {
    max-width: 486px; /* Doubled from 486px for bigger text area */
    margin-top: 35px; /* Doubled from 59px */
    font-family: Inder, var(--default-font-family);
    font-size: 24px; /* Increased from 24px */
    font-weight: 400;
    line-height: 40px; /* Increased from 30px */
    text-align: justify; /* Center the description */
    margin-left: auto;
    margin-right: auto;
}

.agenda-title {
    margin-right: 0; /* Reset margin to center */
    font-family: Inconsolata, var(--default-font-family);
    font-size: 32px;
    font-weight: 800;
    text-decoration: underline;
    letter-spacing: 3.2px;
}

.agenda-frame {
    margin-top: 29px;
    display: flex;
    justify-content: flex-end;
}

.agenda-date {
    margin-right: 212px;
    color: #333333;
    font-family: Inter, var(--default-font-family);
    font-size: 24px;
    font-weight: 700;
}

.previous-arrow {
    margin-top: 9px;
    margin-right: 28px;
    width: 12px;
    height: 12px;
    background: url(./assets/images/previous-arrow.png) no-repeat center;
    background-size: cover;
}

.next-arrow {
    margin-top: 9px;
    width: 12px;
    height: 12px;
    background: url(./assets/images/next-arrow.png) no-repeat center;
    background-size: cover;
}

.calendar {
    margin-top: 56px;
    margin-left: auto;
    display: grid;
    grid-template-rows: auto auto auto auto auto auto;
    grid-template-columns: auto auto auto auto auto auto auto;
    gap: 35px 33px;
}


.alumni-testimonials {
    margin-top: 80px;
    margin-bottom: 80px;
    width: 100vw; /* Spread background to full viewport width on all screens */
    min-height: 225px;
    background-color: #DEE9EF;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.previous {
    width: 33px;
    height: 33px;
    margin-top: 93px;
    margin-left: 28px;
    background: url(./assets/images/previous.png) no-repeat center;
    background-size: cover;
}

.alumni-picture {
    width: 119px;
    height: 119px;
    margin-top: 41px;
    margin-left: 92px;
    background-color: #D9D9D9;
    border-radius: 50%;
    box-shadow: 0 8px 4px 0 rgba(0, 0, 0, 0.25);
}

.alumni-name {
    margin-top: 8px;
    margin-left: 77px;
    font-family: Inder, var(--default-font-family);
    font-size: 24px;
    font-weight: 400;
}

.alumni-testimonials-title {
    margin-top: 8px;
    margin-left: 208px;
    font-family: Inder, var(--default-font-family);
    font-size: 28px;
    font-weight: 400;
}

.alumni-testimonials-description {
    margin-top: 37px;
    margin-left: 37px;
    max-width: 825px;
    height: 75px;
    font-family: Inder, var(--default-font-family);
    font-size: 20px;
    font-weight: 400;
    line-height: 25px;
    text-align: justify;
}

.next {
    width: 40px;
    height: 40px;
    margin-top: 93px;
    margin-right: 28px;
    background: url(./assets/images/next.png) no-repeat center;
    background-size: cover;
}

.tentang-kami1 {
    width: 100%;
    height: 361px;
}

.sejarah-singkat {
    width: 100%;
    height: 363px;
}

.caption {
    position: absolute;
    top: 0px;
    padding: 100px 0px 0px 0px;
    margin-top: 250px;
}

.caption .gallery-title {
    background-color: rgba(62, 136, 233, 0.6);
    border-radius: 10px;
    color: #FFFFFF;
    font-family: Inria Sans, var(--default-font-family) !important;
    font-size: 24px;
    font-weight: 700 !important;
    margin-left: 41px;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    white-space: nowrap;
}

/*Calendar*/
.calendar_container_outer {
    font-family: Inria Sans, var(--default-font-family) !important;
    width: 500px;
    margin-left: 20px;
    margin-top: 0;
}

.calendar-container {
    text-align: center;
}

.controls {
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 25px;
}

.controls .month-year {
    margin: 0;
    text-align: left;
}

.controls .navigation {
    text-align: right;
}

.controls button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0 10px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 5px;
    margin: 0 auto;
    width: 100%;
}

.calendar-header {
    color: black;
    padding: 8px;
    font-weight: bold;
}

.calendar-day {
    padding: 5px;
    min-height: 60px;
    cursor: pointer;
    position: relative;
    text-align: center;
    vertical-align: middle;
    color: #646464;
    font-size: 20px;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.with-event::after {
    content: '';
    position: absolute;
    width: 40px; /* Same size as day-number line-height */
    height: 40px;
    background: var(--event-color, #007bff);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.calendar-day.with-event .day-number {
    position: relative;
    z-index: 1;
    color: white;
    font-weight: bold;
}

.calendar-day .day-number {
    display: block;
    line-height: 40px; /* Consistent size */
    margin-top: 5px; /* Consistent margin */
    position: relative;
    z-index: 1; /* Above background */
}

.calendar-day.with-event .day-number {
    color: white; /* Contrast with background */
}

#event-details {
    padding: 15px;
    margin-left: 13px;
}

#event-details h3 {
    font-size: 16px;
    color: #646464;
}

#event-details h4{
    font-size: 16px;
    margin-bottom: 5px;
}

#event-details p {
    font-size: 16px;
    margin-bottom: 0;
}

#event-details h2 {
    font-size: 16px;
}

#event-details ul {
    list-style: none;
    padding: 0;
}

#event-details li {
    font-size: 16px;
}

#event-details span {
    margin-right: 8px;
}

/*Testimoni*/
.testimonial-container {
    font-family: Inria Sans, var(--default-font-family) !important;
    width: 100%;
    padding: 0;
    margin: 0;
}

.testimonial-content {
    display: flex;
    padding: 30px;
    position: relative;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    flex-direction: column;
}

.testimonial-title {
    color: #333;
    margin-bottom: 5px;
    font-size: 2em;
    text-align: center;
}

.testimonial-inner {
    display: flex;
    width: 100%;
    align-items: center;
    position: relative;
}

.alumni-image {
    flex: 0 0 25%;
    text-align: center;
}

.alumni-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.alumni-image h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.testimony-text {
    flex: 1;
    
}

.testimony-text p {
    margin: 0;
    line-height: 1.6;
    color: black;
    font-size: 15px;
}

.nav-btn {
    background: transparent;
    color: #007bff;
    width: 30px;
    height: 30px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s;
    border: 2px solid #007bff;
}

.nav-btn:hover {
    background: #0056b3;
    color: white;
}

.nav-btn:disabled {
    cursor: not-allowed;
}

.prev-btn {
    left: -50px;
}

.next-btn {
    right: -50px;
}

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

.dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #007bff;
}

.dot:hover {
    background: #0056b3;
}

/* Mobile View Adjustments */
/* Mobile View Adjustments */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden; /* Prevent horizontal overflow */
        width: 100%;
    }

    .width-container {
        max-width: 100%; /* Allow full width instead of 1500px */
        padding: 10px; /* Slightly reduced from 20px */
    }

    /* Slideshow Section */

    .owl-stage-outer{
        max-height: 205px;
    }

    .owl-stage{
        max-height: 205px;
    }
    
    .owl-carousel .owl-item img {
        width: 100%; /* Ensure image scales */
        height: auto;
        max-height: 205px; /* Match .highlight height */
    }

    .gallery-title {
        margin-left: 0px !important;
        margin-bottom: 10px; /* Slightly reduced from 12px */
        padding: 5px 10px; /* Smaller padding */
        font-size: 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 20px !important;
        white-space: nowrap !important;
    }

    .caption {
        margin-top: 20px;
    }
    

    /* Running Text */
    .slider-container {
        width: 100vw;
        padding: 5px 0; /* Reduced from 10px */
    }

    .slider-text {
        font-size: 14px; /* Reduced from 16px */
    }

    /* About Us */
    .about-us-title {
        margin-top: 17px;
        margin-left: 20px; /* Keep original positioning */
        font-size: 18px; /* Slightly reduced from 20px */
        letter-spacing: 2px;
    }

    .about-us-description {
        margin-top: 16px;
        margin-left: 40px; /* Keep original positioning */
        margin-right: 35px;
        font-size: 14px; /* Reduced from 16px */
        line-height: 18px; /* Reduced from 20px */
    }

    /* Photo Gallery */
    .photo-gallery-title {
        margin-top: 13px;
        margin-left: 20px; /* Keep original positioning */
        font-size: 18px; /* Slightly reduced from 20px */
        letter-spacing: 2px;
    }

    .photo-gallery {
        height: 100%;
        width: 100%; /* Fit grid cell */
    }

    .photo-gallery-group-title {
        font-size: 14px; /* Reduced from 16px */
        max-width: 100%; /* Ensure it fits */
    }

    .photo-gallery-description {
        font-size: 9px; /* Slightly reduced from 10px */
        margin-left: 5px;
    }

    .photo-gallery-outline {
        margin-left: 5px;
    }

    .photo-video-gallery-logo {
        width: 8px; /* Reduced from 10px */
        height: 8px;
    }

    .photo-gallery-date {
        font-size: 9px; /* Reduced from 10px */
    }

    /* School Congratulations and Agenda */
    .school-congratulations-agenda-frame {
        margin-top: 40px;
        gap: 20px; /* Slightly reduced from 30px */
        flex-direction: column; /* Stack sections vertically */
        margin-left: 20px;
    }

    .school-congratulations-title {
        font-size: 18px; /* Reduced from 20px */
        letter-spacing: 2px;
        margin: 0;
        
    }

    .school-congratulations-frame {
        display: flex;
        flex-direction: column; /* Stack title, image, description vertically */
        align-items: center; /* Center items */
    }

    .school-congratulations {
        font-size: 18px; /* Reduced from 20px */
        max-width: 100%; /* Fit container */
        margin-top: 10px; /* Space above image */
        margin-bottom: 0; /* Remove bottom margin */
        order: 1; /* Place title first */
    }

    .school-congratulations-picture {
        width: 180px; /* Reduced from 200px */
        height: 220px; /* Reduced from 250px */
        margin-left: 0; /* Center image */
        order: 2; /* Place image second */
    }

    .school-congratulations-description {
        font-size: 14px; /* Reduced from 16px */
        line-height: 18px; /* Reduced from 20px */
        margin-top: 10px; /* Space below image */
        margin-left: auto;
        margin-right: auto;
        width: 100%; /* Full width */
        max-width: 300px; /* Cap width for readability */
        text-align: center; /* Center text */
        order: 3; /* Place description last */
    }

    .agenda-title {
        font-size: 18px; /* Reduced from 20px */
        letter-spacing: 2px;
        text-align: center; /* Center title */
    }

    .agenda-date {
        margin-right: 106px;
        font-size: 14px; /* Reduced from 16px */
    }

    .calendar_container_outer {
        width: 400px; /* Original width */
        margin-top: 10px; /* Original margin */
        margin-left: 0;
    }

    .calendar {
        margin-top: 28px;
        gap: 15px 12px; /* Slightly reduced from 17px 16px */
    }

    .calendar-day {
        font-size: 14px; /* Reduced from 16px */
        min-height: 35px; /* Reduced from 40px */
        padding: 5px;
    }

    .calendar-day .day-number {
        line-height: 20px; /* Match reduced size */
        margin-top: 0;
        
    }

    #event-details {
        margin-left: 6px; /* Original margin */
    }

    #event-details h3 {
        font-size: 10px; /* Reduced from 12px */
    }

    #event-details h2 {
        font-size: 14px; /* Reduced from 16px */
    }

    /* Testimonials (Reverted to Very Original Code) */
    .alumni-testimonials {
        margin-top: 89px;
        margin-bottom: 89px;
        width: 100vw; /* Spread background to full viewport width on all screens */
        min-height: 225px;
        background-color: #DEE9EF;
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Center content horizontally */
        position: relative;
        align-items: center;
        justify-content: center;
    }

    .testimonial-content {
        max-width: 1000px; /* Maintain content width */
        width: 90%; /* Ensure content fits within viewport, but not full width */
        padding: 30px; /* Restore desktop padding */
        align-items: center; /* Center content vertically */
    }

    .testimonial-inner {
        width: 100%; /* Ensure inner content fits within testimonial-content */
        flex-direction: row; /* Restore horizontal layout on desktop */
        align-items: center; /* Center items horizontally */
        display: flex;
        flex-direction: column;
        
    }

    .prev-btn , .next-btn {
        display: inline-flex;
        justify-content: center; 
    }

    .prev-btn{
        margin-left: 5px;
    }

    .next-btn{
        margin-right: 5px;
    }

}

/* Additional adjustments for very small screens (e.g., < 480px) */
@media (max-width: 480px) {
    .width-container {
        padding: 5px; /* Further reduced */
    }

    .slider-text {
        font-size: 12px; /* Further reduced */
    }

    .about-us-title,
    .photo-gallery-title,
    .video-gallery-title,
    .agenda-title {
        font-size: 16px; /* Further reduced */
        margin-left: 20px; /* Halved from original to fit */
    }

    .about-us-description {
        margin-left: 40px; /* Reduced from 105px */
        margin-right: 20px;
        font-size: 12px; /* Further reduced */
    }

    .photo-gallery-arrows {
        margin: 0;
    }
    .photo-gallery-frame {
        margin-left: 20px;
        margin-bottom: 0;
    }

    .photo-gallery {
        height: 150px; /* Further reduced */
        width: 100%;
    }

    .photo-gallery-group-title{
        margin-top: 10px;
    }

    .photo-gallery-description, .photo-gallery-outline{
        margin-top: 0;
    }

    .video-gallery-frame {
        margin: 0;
        margin-left: 20px;
    }

    .video-cards {
        margin: 10px;
    }

    .video-gallery-arrows {
        margin: 0;
    }

    .video-gallery {
        height: 100px; /* Further reduced */
        width: 100%; /* Further reduced */
    }

    .school-congratulations-agenda-frame {
        margin-left: 20px; /* Reduced from 80px */
        gap: 15px; /* Further reduced */
    }

    .school-congratulations-picture {
        width: 150px; /* Further reduced */
        height: 180px; /* Further reduced */
    }

    .school-congratulations {
        font-size: 16px; /* Further reduced */
    }

    .school-congratulations-description {
        font-size: 12px; /* Further reduced */
    }

    .calendar_container_outer {
        width: 90%; /* Flexible width */
        max-width: 300px; /* Further reduced */
        margin-left: 15px;
        
    }

    .controls{
        margin-left: 0;
    }

    .calendar {
        gap: 10px 8px; /* Further reduced */
    }

    .calendar-day {
        font-size: 12px; /* Further reduced */
        min-height: 30px; /* Further reduced */
    }

    .calendar-day.with-event::after {
        width: 18px; /* Further reduced */
        height: 18px;
    }

    .calendar-day .day-number {
        line-height: 18px; /* Match reduced size */
    }
}

/* Landscape Mobile View Adjustments */
/* Landscape Mobile View Adjustments */
@media (orientation: landscape) and (max-width: 1024px) and (min-width: 481px) {
    /* Ensure no horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Header Adjustments */
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px;
    }

    .header-school-logo {
        width: 40px;
        height: 40px;
    }

    .header-school-name span {
        font-size: 18px;
    }

    .login-button a {
        font-size: 14px;
        margin-left: 8px;
        margin-right: 8px;
    }

    /* Navigation Menu */
    .bottom {
        display: flex;
        align-items: center;
    }

    .burger-menu {
        display: none;
    }

    .nav-menu {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 10px;
    }

    .box-header {
        flex: 1;
        text-align: center;
    }

    .toggle-area {
        font-size: 14px;
        padding: 5px;
    }

    .dropdown-menu, .dropdown-menu-right {
        position: absolute;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        min-width: 120px;
        font-size: 12px;
    }

    .dropdown-item {
        padding: 5px 10px;
    }

    .triangle {
        width: 6px;
        height: 6px;
    }

    #selected-flag {
        width: 16px;
        margin-right: 4px;
    }

    /* Highlight Section */
    .highlight {
        height: 300px;
    }

    .highlight-title {
        width: 300px;
        height: 50px;
        font-size: 18px;
        margin-left: 20px;
        margin-bottom: 15px;
    }

    /* Running Text */
    .slider-container {
        width: 100vw;
        padding: 8px 0;
    }

    .slider-text {
        font-size: 18px;
    }

    /* Width Container */
    .width-container {
        max-width: 1000px;
        padding: 15px;
    }

    /* About Us */
    .about-us-title {
        margin-top: 20px;
        margin-left: 50px;
        font-size: 24px;
        letter-spacing: 2px;
    }

    .about-us-description {
        margin-top: 20px;
        margin-left: 70px;
        margin-right: 50px;
        font-size: 18px;
        line-height: 24px;
    }

    /* Photo Gallery */
    .photo-gallery-title {
        margin-top: 20px;
        margin-left: 50px;
        font-size: 24px;
        letter-spacing: 2px;
    }

    .photo-gallery-frame {
        margin-top: 20px;
        margin-left: 100px;
        margin-right: 70px;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .photo-gallery {
        height: 200px;
        width: 100%;
    }

    .photo-gallery-group-title {
        font-size: 16px;
        max-width: 150px;
    }

    .photo-gallery-description {
        font-size: 10px;
    }

    .photo-video-gallery-logo {
        width: 16px;
        height: 16px;
    }

    .photo-gallery-date {
        font-size: 12px;
    }

    /* Video Gallery */
    .video-gallery-title {
        margin-top: 20px;
        margin-left: 50px;
        font-size: 24px;
        letter-spacing: 2px;
    }

    .video-gallery-frame {
        margin-top: 40px;
        margin-left: 80px;
        margin-right: 30px;
    }

    .video-gallery {
        height: 160px;
        width: 240px;
        margin-top: 6px;
        margin-left: 10px;
    }

    .video-gallery-group-title {
        font-size: 20px;
        margin-left: 15px;
    }

    .video-gallery-description {
        font-size: 12px;
        margin-left: 25px;
    }

    .video-gallery-date {
        font-size: 12px;
        margin-left: 8px;
    }

    /* Nested Media Query for Screens Under 830px */
    @media (max-width: 830px) {
        /* Photo Gallery Adjustments */
        .photo-gallery-frame {
            gap: 5px; /* Reduced gap to fit more tightly */
        }

        .photo-gallery {
            height: 120px; /* Reduced from 200px */
            width: 100%; /* Reduced from 160px */
        }

        .photo-gallery-group-title {
            font-size: 12px; /* Reduced from 16px */
            max-width: 100px; /* Match reduced width */
        }

        .photo-gallery-description {
            font-size: 8px; /* Reduced from 10px */
        }

        .photo-video-gallery-logo {
            width: 12px; /* Reduced from 16px */
            height: 12px;
        }

        .photo-gallery-date {
            font-size: 10px; /* Reduced from 12px */
        }

        /* Video Gallery Adjustments */
        .video-gallery {
            height: 100px; /* Reduced from 160px */
            width: 150px; /* Reduced from 240px */
            margin-top: 4px; /* Reduced from 6px */
            margin-left: 8px; /* Reduced from 10px */
        }

        .video-gallery-group-title {
            font-size: 16px; /* Reduced from 20px */
            margin-left: 10px; /* Reduced from 15px */
        }

        .video-gallery-description {
            font-size: 10px; /* Reduced from 12px */
            margin-left: 15px; /* Reduced from 25px */
        }

        .video-gallery-date {
            font-size: 10px; /* Reduced from 12px */
            margin-left: 6px; /* Reduced from 8px */
        }
    }

    /* School Congratulations and Agenda */
    .school-congratulations-agenda-frame {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        margin-left: 0;
        width: 100%;
    }

    .school-congratulations-title, .agenda-title {
        font-size: 24px;
        letter-spacing: 2px;
        text-align: left;
    }

    .school-congratulations-frame {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .school-congratulations-picture {
        width: 220px;
        height: 300px;
        margin-left: 0;
    }

    .school-congratulations {
        font-size: 24px;
        max-width: 180px;
        line-height: 30px;
    }

    .school-congratulations-description {
        font-size: 18px;
        line-height: 30px;
        max-width: 700px;
        margin-top: 25px;
        text-align: center;
    }

    .agenda-frame {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    .agenda-date {
        margin-right: 0;
        font-size: 18px;
        text-align: center;
    }

    .calendar_container_outer {
        width: 80%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .calendar {
        margin-top: 30px;
        gap: 20px 15px;
        width: 100%;
    }

    .calendar-day {
        font-size: 14px;
        min-height: 40px;
        padding: 5px;
    }

    .calendar-day.with-event::after {
        width: 25px;
        height: 25px;
    }

    .calendar-day .day-number {
        line-height: 25px;
    }

    /* Alumni Testimonials */
    .alumni-testimonials {
        width: 100vw;
        min-height: 180px;
        margin-top: 60px;
        margin-bottom: 60px;
        position: relative;
        padding: 0 50px;
        box-sizing: border-box;
    }

    .previous {
        width: 25px;
        height: 25px;
        margin-top: 70px;
        margin-left: 10px;
        position: absolute;
        left: 10px;
    }

    .next {
        width: 30px;
        height: 30px;
        margin-top: 70px;
        margin-right: 10px;
        position: absolute;
        right: 10px;
    }

    .alumni-picture {
        width: 90px;
        height: 90px;
        margin-top: 30px;
        margin-left: 70px;
    }

    .alumni-name {
        font-size: 18px;
        margin-left: 60px;
    }

    .alumni-testimonials-title {
        font-size: 22px;
        margin-left: 150px;
    }

    .alumni-testimonials-description {
        font-size: 16px;
        line-height: 20px;
        max-width: 600px;
        margin-top: 25px;
        margin-left: 25px;
    }
}

.modal-dialog iframe {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
.modal-backdrop {
    z-index: 1040 !important;
}
.modal {
    z-index: 1050 !important;
}


