@media (max-width: 1366px) {
    .image_slider_div .slider-section {
        position: unset;
    }

    .container-fluid.pad_in_5 {
        padding-inline: 15px !important;
    }

}

@media (max-width: 992px) {
    /* body {
        padding-top: 60px;
    } */

    .top-header {
        padding: 10px 0;
    }

    .logo-image {
        max-height: 100%;
    }


    .mobile-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }


    .main-nav {
        position: relative;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        /* max-height: 0; */
        overflow: hidden;
        transition: max-height 0.5s ease;
        display: block;
        visibility: hidden;
    }

    .nav-menu.active {
        max-height: 1000px;
        visibility: visible;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        border: none;
        background-color: rgba(0, 0, 0, 0.1);
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transform: none;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .nav-item.dropdown-active .dropdown-menu {
        opacity: 1;
        max-height: 500px;
        visibility: visible;
    }

    .nav-link::after {
        display: none;
    }

    .nav-item.active .nav-link {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active .nav-item {
        animation: slideIn 0.3s forwards;
        opacity: 0;
    }

    .mob_res_hide {
        display: none;
    }

    .nav-menu.active .nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active .nav-item:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-menu.active .nav-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-menu.active .nav-item:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav-menu.active .nav-item:nth-child(5) {
        animation-delay: 0.3s;
    }

    .nav-menu.active .nav-item:nth-child(6) {
        animation-delay: 0.35s;
    }

    .nav-menu.active .nav-item:nth-child(7) {
        animation-delay: 0.4s;
    }

    #header {
        position: fixed;
    }

    .logo-container img {
        max-height: 50px;
    }

    .current_oficer .page-title {
        font-size: 2.5rem;
    }

    .current_oficer .officer-card {
        margin-bottom: 1rem;
    }

    .timeline_section .content-left {
        padding-right: 40px;
    }

    .timeline_section .content-right {
        padding-left: 40px;
    }

    .powered-by {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .home_form .content-row {
        flex-direction: column;
    }

    .timeline_section .timeline-item {
        margin-bottom: 60px;
    }

    .timeline_section .content-left,
    .timeline_section .content-right {
        padding-left: 40px;
    }

    .timeline_section .timeline-line {
        left: 20px;
    }

    .timeline_section .timeline-marker {
        left: 20px;
    }

    .timeline_section .year-left,
    .timeline_section .year-right {
        left: 50px;
        right: auto;
        margin-right: 0;
        margin-left: 0;
        text-align: left;
    }

    .timeline_section .content-left,
    .timeline_section .content-right {
        text-align: left;
        padding-left: 50px;
        padding-right: 15px;
    }

    .timeline_section .timeline-item {
        margin-bottom: 80px;
    }

    .timeline_section .timeline-title {
        font-size: 14px;
    }

    .timeline_section .timeline-description {
        font-size: 13px;
    }

    .current_oficer .page-title {
        font-size: 2rem;
    }

    .current_oficer .officer-card {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .current_oficer .officer-image-container,
    .current_oficer .officer-info {
        width: 100%;
    }

    .current_oficer .officer-image-container {
        height: 250px;
    }

    .current_oficer .officer-info {
        padding: 1.5rem;
        /* flex-direction: row; */
        align-items: center;
    }

    .current_oficer .masonic-symbol {
        width: 60px;
        height: 60px;
        margin-left: 1rem;
    }

    .current_oficer .pagination-container {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .current_oficer .pagination {
        order: 1;
    }

    .current_oficer .pagination-nav-links {
        order: 2;
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .current_oficer .page-title {
        font-size: 1.75rem;
    }

    .current_oficer .pagination .page-item .page-link {
        padding: 4px 10px;
        font-size: 0.875rem;
    }

    .welcome-text {
        font-size: 22px;
    }

    .hero-buttons a {
        font-size: 13px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .home_form .underline {
        left: 20%;
    }

    .timeline_heading h1 {
        font-size: 21px;
    }

    .image_slider_div .heading-text .big-w {
        font-size: 48px;
    }

    .image_slider_div .heading-text .rest-text {
        font-size: 28px;
    }

    .recent-events .event-content {
        display: flex;
        justify-content: space-between;
        padding: 24px;
        align-items: flex-end;
        flex-direction: column;
    }

    .recent-events .event-title {
        font-size: 32px;
    }

    .recent-events .date-badge {
        min-width: 175px;
    }

    .banner_div .nav-tabs {
        gap: 15px;
    }

    .testmonil_section .testimonial-item {
        padding: 0;
    }

    .recent-events .event-info {
        padding-right: 0;
    }

    .video-section {
        padding: 50px 0;
    }

    .home_form.main-container {
        padding-block: 50px;
    }

    .core-values {
        padding-block: 0px 50px;
    }

    .background_gradient_top {
        background: transparent;
    }

    .background_gradient_top1 {
        background: transparent;
    }

    .timeline_heading h1 {

        padding-inline: unset;
    }

    .up-events .header-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 4px;
        flex-direction: column;
        gap: 15px;
    }

    .imge_down_para p {
        color: #22286e;
    }

    .image_slider_div .image_section {
        position: unset;
        transform: unset;
    }

    .image_slider_div .image_section img {
        width: 100%;
    }

    .image_slider_div .slider-section {
        background-color: #22286e;
        color: white;
        padding: 30px 20px 30px 20px;
    }

    .image_slider_div .quote-text {
        font-size: 20px;
    }

    .side_image_postition::before {
        min-width: 440px;
        background-size: auto 49%;
    }

    .banner_div .carousel-content {
        bottom: 0px;
    }

    .banner_div .carousel-content h3 {
        font-size: 40px;
    }

    .banner_div .carousel-item {
        height: 70vh;
    }

    .banner_div .carousel-content h2 {
        font-size: 25px;
    }

    .footer_main .contact-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-right {
        padding-top: 15px;
    }
}

