/**
 * SLITPA Website Styles
 * Main stylesheet for the SLITPA website
 */

/* Base styles */
body {
    background-color: #F2F2F2;
    font-family: 'Montserrat', Arial, sans-serif;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.container {
    flex: 1;
}

.login-wrapper {
    flex: 1;
}

/* Header styles */
.header-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1060;
    background-color: #00000041;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    background-color: transparent;
    color: #ffffff;
    /* padding: 10px; */
}

/* Navigation styles */
.navbar-brand,
.nav-link,
.navbar-text {
    color: #ffffff !important;
}

.nav-link:hover {
    color: #cccccc !important;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.dropdown-menu.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #0d6efd;
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
    
    .dropdown-item {
        color: #fff;
        padding: 0.5rem 1rem;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: rgba(255,255,255,0.1);
        color: #fff;
    }
}

/* Home page hero section - mobile only, custom style */
.home-hero-section, .mobile-home-hero-section { display: none; }
@media (max-width: 767px) {
  .home-hero-section, .mobile-home-hero-section {
    display: block !important;
    margin-top: 60px; /* Prevent header overlap on mobile */
  }
}
@media (min-width: 768px) {
  .home-hero-section, .mobile-home-hero-section { display: none !important; }
}

.home-hero-section {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #0d1a2f;
  position: relative;
  box-shadow: 0 4px 24px #0002;
}
.home-hero {
  position: relative;
  width: 100%;
  min-height: 120px;
  height: 18vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.home-hero-image-wrap {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.home-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7) blur(0px);
}
.home-hero-text-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 30px 10px 20px 10px;
  text-align: center;
}
.home-hero-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 2px 16px #000a;
  margin: 0 0 0.3em 0;
}
.home-hero-subtitle {
  color: #fff;
  font-size: 0.95rem;
  margin-top: 0.2em;
  text-shadow: 0 2px 16px #000a;
  font-weight: 400;
}

@media (max-width: 480px) {
  .home-hero-title { font-size: 1.05rem; }
  .home-hero-subtitle { font-size: 0.8rem; }
  .home-hero-section { height: 12vh; min-height: 80px; }
}

/* SLITPA NEWS */
.slitpa-news {
    background-color: #000000;
    padding: 20px 0;
    height: auto;
}

/* News Carousel Controls */
.slitpa-news .news-details-col {
    position: relative;
}

.slitpa-news .carousel-control-prev,
.slitpa-news .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.5); /* semi-transparent */
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
    transition: background 0.2s, opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #0003;
}

.slitpa-news .carousel-control-prev:hover,
.slitpa-news .carousel-control-next:hover {
    background: rgba(0,0,0,0.8);
    opacity: 1;
    box-shadow: 0 4px 16px #0005;
}

.slitpa-news .carousel-control-prev {
    left: 10px;
}

.slitpa-news .carousel-control-next {
    right: 10px;
}

.slitpa-news .carousel-control-prev-icon,
.slitpa-news .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Mobile responsive for carousel controls */
@media (max-width: 767px) {
    .slitpa-news .carousel-control-prev,
    .slitpa-news .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .slitpa-news .carousel-control-prev {
        left: 5px;
    }
    
    .slitpa-news .carousel-control-next {
        right: 5px;
    }
    
    .slitpa-news .carousel-control-prev-icon,
    .slitpa-news .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}

.slitpa-news .container {
    max-width: 1700px;
}

/* Set a consistent height for the columns on larger screens */
.slitpa-news .news-details-col,
.slitpa-news .news-media-col {
    height: auto; /* Let image height dictate the container height */
    display: flex;
    flex-direction: column;
}

/* Ensure carousels within columns fill the height */
.slitpa-news .carousel,
.slitpa-news .carousel-inner {
    height: 100%;
}

/* ONLY apply flex to the ACTIVE item to avoid overriding Bootstrap's display:none on inactive items */
.slitpa-news .news-details-col .carousel-item.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.slitpa-news h4 {
    color: #ffffff;
    text-align: left;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    text-transform: uppercase;
    padding-top: 0;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.slitpa-news .date-news {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.slitpa-news .news-description-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 0;
    flex-grow: 1;
    min-height: 0;
    line-height: 1.5em;
    font-size: clamp(14px, 2vw, 15px);
}

.slitpa-news .buton-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 10px;
    flex-shrink: 0;
}

.slitpa-news .news-details-col .carousel-inner {
    padding: 0;
}

/* Media column adjustments */
.slitpa-news #newsMediaCarousel .carousel-item img,
.slitpa-news #newsMediaCarousel .carousel-item video {
    width: 100%;
    height: auto; /* Let width dictate the height, maintaining aspect ratio */
    max-height: 250px; /* Set a max-height to control size */
    object-fit: contain;
    border-radius: 5px;
}

.slitpa-news .no-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #888;
    font-size: 1.1em;
}

/* Modal styles remain unchanged */
.slitpa-news .fade-wrap {
    background-color: rgba(0, 0, 0, 0.333);
}

.slitpa-news .fade-wrap .modal-dialog-wrap {
    background-color: rgba(0, 0, 0, 0);
}

.slitpa-news .fade-wrap .modal-content {
    background-color: rgba(255, 255, 255, 0.66);
    color: #000000;
}

.slitpa-news .fade-wrap .modal-header .modal-title {
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    width: 100%;
    font-size: clamp(16px, 4vw, 24px);
}

/* Responsive Adjustments */
@media (max-width: 767px) { /* For mobile */
    .slitpa-news .news-details-col,
    .slitpa-news .news-media-col {
        height: auto; /* Let content define height */
    }
    
    .slitpa-news h4,
    .slitpa-news .date-news {
        text-align: center;
    }

    .slitpa-news .news-description-clamp {
        text-align: justify;
        -webkit-line-clamp: 5;
        max-height: none; /* Remove height restrictions */
    }

    .slitpa-news .buton-wrap {
        justify-content: center;
    }
    
    .slitpa-news .news-media-col {
        margin-top: 20px;
    }
}

/* third section */
.third-section{
    padding-top: 20px;
    padding-bottom: 20px;
    .third-content{
        /* CPD Section */
        .cpd-wrap{
            background-color: #000000;
            border-radius: 20px;
            height: 30vh;
            
            p{
                padding: 5px 10px;
                background-color: #eba4a4;
                border-radius: 0 0px 20px 0;
                text-transform: uppercase;
                width: 80%;
                font-weight: 600;
                color: #ffff;
                margin-top:20px ;
            }

            h4{
                color: #ffffff;
                text-align: left;
                font-size: 14px;
                font-weight: 700;
                text-transform: uppercase;                
                padding-left: clamp(10px, 3vw, 20px);
            }
            .date-news{
                color: #ffffff;
                font-size: 12px;
                font-weight: 400;
                text-transform: uppercase;
                padding-left: clamp(10px, 3vw, 20px);
            }
            .location-session{
                color: #ffffff;
                font-size: 12px;
                font-weight: 400;
                text-transform: uppercase;
                padding-left: clamp(10px, 3vw, 20px);
                line-height: 2;
            }
            .buton-wrap{
                padding-left: clamp(10px, 3vw, 20px);
                /* padding-top: clamp(10px, 3vw, 20px); */
                .btn{
                    text-decoration: none;
                    color: #ffffff;
                    border: solid 1px #ffffff;
                    background-color: transparent;
                    width: calc(100% - 40px);
                    max-width: 300px;
                    min-width: 120px;
                    border-radius: 20px;
                    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
                    text-transform: uppercase;
                }
                /* .btn:hover, .btn:focus {
                    background: #260e928d;
                    color: #ffffff;
                    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
                } */
            }


        }

        .member{
            background-color: #000000;
            margin-top: clamp(8px, 2vw, 20px);
            border-radius: 20px;
            height: clamp(60px, 12vw, 80px);
            .member-left-wrap{
                .member-left{
                    display: flex;
                    .member-icon{
                            padding-left: clamp(10px, 3vw, 20px);
                        .member-logo{
                            max-width: clamp(32px, 8vw, 50px);
                        
                        }
                    }
                    .meber-text-wrap{
                        .member-title{
                            color: #ffffff;
                            font-size: clamp(14px, 3vw, 22px);
                            font-weight: 700;
                            text-transform: uppercase;
                            padding-left: clamp(10px, 3vw, 20px);
                        }
                        .date{
                            color: #ffffff;
                            font-size: clamp(10px, 2.5vw, 16px);
                            font-weight: 400;
                            text-transform: uppercase;
                            padding-left: clamp(10px, 3vw, 20px);
                        }
                    }
                }
            }            
            .member-count-wrap{
                display: flex;
                height: 100%;
                flex-direction: column;
                justify-content: center;
                
                .member-count{
                    text-align: center;
                    color: #ffffff;
                    font-size: clamp(18px, 6vw, 40px);
                    font-weight: 700;
                    text-transform: uppercase;
                    padding-left: clamp(10px, 3vw, 20px);
                }
            }
        }

        /* Partner Section */
        .partner-wrap{
            /* margin-top: 20px; */
            border-radius: 20px;
            .partner-slider-wrap{                
                background-color: #000000;
                border-radius: 20px;
                height: 30vh;
                p{
                    color: #ffff;
                    padding: 5px 10px;
                    background-color: #0d6efd;
                    border-radius: 0 0px 20px 0;
                    text-transform: uppercase;
                    width: 80%;
                    font-weight: 600;
                    margin-top: 20px;
                }
                h4{
                    color: #ffffff;
                    text-align: left;
                    font-size: 14px;
                    font-weight: 700;
                    text-transform: uppercase;
                    padding-left: 10px;
                    /* padding-top: clamp(10px, 3vw, 20px); */
                    /* padding-left: clamp(10px, 3vw, 20px); */
                }
                

            }
            .partner-down-wrap{
                background-color: #ffffff;
                margin-top: 20px;
                border-radius: 20px;
                height: 80px;
                .partner-left-wrap{
                    border-radius: 20px 0 0 20px;
                    background: linear-gradient(90deg, #2b2b2b 0%, #444 50%, #2b2b2b 100%);
                    height: 80px;
                    .badge{
                        color: #ffffff;
                        font-size: 22px;
                        font-weight: 700;
                        text-transform: uppercase;
                        padding-left: clamp(10px, 3vw, 20px);
                        padding-top: 15px;
                    }
                    .partner-title{
                        color: #ffffff;
                        font-size: 16px;
                        font-weight: 700;
                        text-transform: uppercase;
                        padding-left: clamp(10px, 3vw, 20px);
                        /* padding-top: 20px; */
                    }

                }
                .partner-logo-wrap{
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    .partner-logo{                        
                        height: 80px;
                        max-width:100%;
                        object-fit:contain;
                    }
                }
            }
        }

        /* event-section */
        .event-wrap{
            background-color: #000000;
            border-radius: 20px;
            height: 30vh;
            .uc-event{
                .p-event-section{
                    .p-event-section-wrap{
                        .slide{
                            .carousel-inner{
                                .carousel-item{
                                    .uc-event-text-wrap{
                                        .uc-event-title{
                                            padding: 5px 10px;
                                            background-color: #0d6efd;
                                            border-radius: 0 0px 20px 0;
                                            text-transform: uppercase;
                                            width: 80%;
                                            font-weight: 600;
                                            color: #ffff;
                                            margin-top:20px ;
                                        }
                                        .uc-event-sub-title{
                                            color: #ffffff;
                                            font-size: 14px;
                                            font-weight: 700;
                                            text-transform: uppercase;                
                                            padding-left: clamp(10px, 3vw, 20px);
                                        } 
                                        .uc-event-date{
                                            color: #ffffff;
                                            font-size: 12px;
                                            font-weight: 400;
                                            text-transform: uppercase;
                                            padding-left: clamp(10px, 3vw, 20px);
                                        }  
                                        .uc-event-location{
                                            color: #ffffff;
                                            font-size: 12px;
                                            font-weight: 400;
                                            text-transform: uppercase;
                                            padding-left: clamp(10px, 3vw, 20px);
                                            line-height: 2;
                                        }   
                                        .more{
                                            text-decoration: none;
                                            border: solid 1px #ffffff;
                                            background-color: transparent;
                                            width: 103px;
                                            /*max-width: 300px;*/
                                            /*min-width: 120px;*/
                                            border-radius: 20px;
                                            transition: all 0.3s ease;
                                            margin: 1rem 20px;
                                            color: #ffffff;
                                            text-transform: uppercase;
                                            font-size: 10px;
                                            padding: 0.5rem 0.5rem;
                                            display: inline-block;
                                            text-align: center;
                                            position: relative;
                                            overflow: hidden;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        .upcomming-event-section{
            margin-top: 20px;
            .upcomming-event-wrp{
                background-color: #797AA5;
                border-radius: 20px 0 0 20px;
                height: 80px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                .upcomming-event{
                    color: #ffffff;
                    font-size: 22px;
                    font-weight: 700;
                    text-transform: uppercase;
                    padding-left: 20px;                    
                }
            }
            .right-wrap-ue{
                display: flex;
                flex-direction: column;
                justify-content: center;
                background-color: #6a6a6a2e;
                border-radius: 0 20px 20px 0;
                height: 80px;
                .event-name{
                    color: #000000;
                    font-size: 22px;
                    font-weight: 700;
                    text-transform: uppercase;
                    padding-left: clamp(10px, 3vw, 20px);
                }
                .date{
                    color: #000000;
                    font-size: 12px;
                    font-weight: 400;
                    text-transform: uppercase;
                    padding-left: clamp(10px, 3vw, 20px);
                }
            }
        }
    }
}

/* Ensure button is at bottom of content for all sections */
.uc-event-text-wrap, .partner-slider-wrap .col-6:first-child {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.uc-event-text-wrap .more, 
.partner-slider-wrap .col-6:first-child .more {
    margin-top: auto;
    margin-bottom: 1rem;
}

/* Colorful FullCalendar Styles */
.fc {
  background: linear-gradient(135deg, #f8fafc 60%, #e0e7ff 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px #007bff22;
  padding: 1.5rem;
}
.fc-toolbar-title {
  color: #232a3b;
  font-weight: 700;
  letter-spacing: 1px;
}
.fc-button {
  background: #2563eb !important;   /* Solid blue */
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  margin: 0 8px 0 0 !important; /* 8px gap to the right of each button */
  font-weight: 500;
  box-shadow: 0 2px 8px #2563eb22;
  transition: background 0.2s, box-shadow 0.2s;
}
.fc-button:hover, .fc-button:focus {
  background: #1d4ed8 !important;   /* Slightly darker blue on hover */
  color: #fff !important;
  box-shadow: 0 4px 16px #2563eb33;
}
.fc-button-group {
  margin-right: 8px; /* Add gap between button groups */
}
.fc-event {
  border-width: 3px !important;
  border-style: solid !important;
  border-radius: 10px !important;
  font-weight: 500;
  color: #fff !important;
  box-shadow: 0 2px 8px #0001;
  transition: transform 0.15s, box-shadow 0.15s;
  background: none !important; /* Remove any gradient */
}
.fc-event.cpd {
  background: #22c55e !important;
  border-color: #15803d !important;
}
.fc-event.workshop {
  background: #f59e42 !important;
  border-color: #b45309 !important;
}
.fc-event.social {
  background: #a78bfa !important;
  border-color: #6d28d9 !important;
}
.fc-event.default {
  background: #38bdf8 !important;
  border-color: #0ea5e9 !important;
}
.fc-event:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px #6366f133;
  z-index: 10;
}

/* Ensure footer is positioned correctly */
footer {
    position: relative;
    z-index: 10;
    width: 100%;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Raleway", sans-serif;
}

body {
  font-family: var(--font-default);
  color: #444444;
}

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  color: #3b87fd;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
[data-aos-delay] {
  transition-delay: 0 !important;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  height: 80px;
  --default-background: #fff;
  --default-color: #2f2f2f;
  --default-logo-color: #2f2f2f;
  --on-scroll-background: #fff;
  --on-scroll-color: #2f2f2f;
  --on-scroll-logo-color: #2f2f2f;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
    padding-left: 10px;
}

.header .logo img {
  max-height: 50px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--default-logo-color);
  font-family: var(--font-primary);
}

.header .btn-get-started {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 25px;
  border-radius: 50px;
  transition: 0.5s;
  color: #fff;
  background: #0d6efd;
}

.header .btn-get-started:hover {
  background: rgba(13, 110, 253, 0.8);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .btn-get-started {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 20px;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  height: 60px;
  --default-background: var(--on-scroll-background);
  --default-color: var(--on-scroll-color);
  --default-logo-color: var(--on-scroll-logo-color);
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.scrolled .header .logo img {
  padding: 5px;
  max-height: 40px;
}

/* --- Animations & Transitions --- */
/* Removed all custom and default animation/transition for home page */
.carousel-item {
    position: relative;
}

.carousel-item.active {
    /* No animation */
}

.gallery-media,
.event-image-item,
.partner-image-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

.gallery-media.active,
.event-image-item[style*="display: block"],
.partner-image-item[style*="display: block"] {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Remove keyframes */
/* (keyframes removed) */

/* Remove hover effects */
.gallery-media:hover img,
.gallery-media:hover video {
    transform: none;
}

.more {
    transition: none;
}

.more:hover {
    transform: none;
    box-shadow: none;
    background-color: inherit;
}

.event-image-item img,
.partner-image-item img {
    transition: none;
}

/* --- Standardized Section & Element Styles --- */
.event-wrap,
.partner-wrap,
.uc-event {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
}

.uc-event-title,
.partner-title,
.upcomming-event {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.uc-event-sub-title,
.partner-slide h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.uc-event-date,
.uc-event-location,
.partner-slide .mb-2 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.more {
    text-decoration: none;
    border: solid 1px #ffffff;
    background-color: transparent;
    width: 103px;
    /*max-width: 300px;*/
    /*min-width: 120px;*/
    border-radius: 20px;
    transition: all 0.3s ease;
    margin: 1rem 20px;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 10px;
    padding: 0.5rem 0.5rem;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.event-images-carousel,
.partner-images-carousel {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.event-image-item img,
.partner-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.5s ease;
}

.uc-event-text-wrap,
.partner-slider-wrap .col-6:first-child {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.uc-event-text-wrap .more,
.partner-slider-wrap .col-6:first-child .more {
    margin-top: auto;
    margin-bottom: 1rem;
}

.modal-content { border-radius: 20px; }
.modal-header { border-top-left-radius: 20px; border-top-right-radius: 20px; }
.modal-footer { border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; }


/* SLITPA EVENTS */
.event-wrap .carousel-item {
    animation: enhancedZoomIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SLITPA PARTNERS */
.partner-slide[style*="display: block"] {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
    animation: enhancedSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SLITPA CPD Sessions */
.cpd-session-gallery .gallery-media.active {
    animation: enhancedFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* third section */
.third-section {
    padding: 30px 0;
    background-color: #f0f2f5;
}

.content-block {
    background-color: #f0f2f5;
    color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    height: 300px; /* Set a fixed height for the whole block */
    display: flex;
    flex-direction: column;
}

.top-row {
    flex-grow: 1; /* Allows this row to take up available space */
    position: relative;
    height: 200px; /* Allocate percentage of height */
    background-color: #000000;
    border-radius: 20px;
}

.bottom-row {
    background-color: #333333;
    flex-shrink: 0; /* Prevents this row from shrinking */
    padding: 10px;
    border-top: 2px solid #ffffff;
    height: 30%; /* Allocate percentage of height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style variants for bottom rows */
.partner-block .bottom-row { background-color: #555555; }
.event-block .bottom-row { background-color: #004080; }


/* Top Row Content Styling */
.top-row .carousel, .top-row .carousel-inner, .top-row .carousel-item {
    height: 200px;
}

.top-row .no-content-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.1em;
    color: #888;
}

.top-row .row { height: 100%; margin: 0; }
.top-row .col-md-6 { padding: 0; height: 100%; }

.content-text {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-media {
    overflow: hidden;
}

.content-media img, .content-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0px 0px 20px 20px;
    max-height: 200px;
}

.content-section-title {
    width: 80%;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14PX;
    color: #ffffff; /* Default color */
    background-color: #0d6efd;
    padding: 10px;
    border-radius: 0 0 15px 0;
    margin-bottom: 10px;
}
.partner-block .content-section-title { color: #ffffff; }
.event-block .content-section-title { color: #ffffff; }


.content-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    margin-left: 10px;
    margin-right: 10px;
}

.content-meta {
    font-size: 10px;
    color: #cccccc;
    margin-bottom: 5px;
    margin-left: 10px;
    margin-right: 10px;
}

.content-text .more {
    margin: 15px 0 0 10px; /* Reset margin */
    width: 103px;
    font-size: 10px;
    margin-right: 10px;
    /*margin-bottom: 10px;*/
}

/* Bottom Row Specifics */

/* Members Row */
.member-wrap{
    background-color: #000000;
    border-radius: 20px;
    height: 100px;
    color: #ffffff;
    margin-top: 10px;
}
.left-wrap{
    display: flex;
    align-items: center;
    padding: 20px;
}
.left-wrap{
    img{
    max-width: 50px;
    padding-bottom: 15px;
    }
}
.member-text-wrap {
    .member-title {
        font-size: 16px;
        font-weight: 600;
        padding-left: 10px;
        color: #ffffff;
        text-transform: uppercase;
    }
    .member-date {
        font-size: 12px;
        color: #ffffff;
        padding-left: 10px;
        text-transform: uppercase;
    }
}
.member-count-wrapper{
    text-align: center;
    padding: 20px;
}

/* Partner Logo Row */
.partner-bottom-wrap{
    border-radius: 20px;
    height: 100px;
    padding: 0 0px;
    margin-top: 10px;
    .left-wrap-p{
        border-radius: 20px 0 0 20px;
        background-color: #000000;
        padding: 10px;
        height: 100px;
        padding-top: 20px;
        .p-catogery{
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
            padding-left: 10px;
            text-transform: uppercase; 
            padding-top: 5px;
        }
        .partner-title{
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
            padding-left: 10px;
            text-transform: uppercase;
            padding-top: 10px;
            line-height: 0;
        }
    } 
    .logo-wrap{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        max-height: 100px;
        background-color: #cccccc;
        border-radius: 0 20px 20px 0;
        img {
            max-height: 80px;
            max-width: 100%;
            object-fit: contain;
        }
    }   
}

/* Upcoming Event Row */
.event-bottom-wrap{
        height: 100px;
        margin-top: 10px;
    .left-wrap-e{
        height: 100px;
        background-color: #797AA5;
        padding: 20px;
        border-radius: 20px 0 0 20px;
        .up-event-title{
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
            text-transform: uppercase;
        }
    }
    .up-right-wrap{
        border-radius: 0 20px 20px 0;
        background-color: #000000;
        padding: 20px;
        height: 100%;
        .upcoming-name{
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
            padding-left: 10px;
            text-transform: uppercase;
            text-align: center;
            line-height: 1;
        }
        .upcoming-date{
            color: #ffffff;
            font-size: 12px;
            font-weight: 400;
            padding-left: 10px;
            text-align: center;
            line-height: 0;
        }
    }
}


/* Responsive Adjustments */
@media (max-width: 767px) {
    .content-block {
        background: #fff !important;
        border-radius: 18px !important;
        box-shadow: 0 2px 12px #0002 !important;
        margin-bottom: 24px !important;
        padding: 16px 10px !important;
        height: auto !important;
        min-height: unset !important;
        max-height: unset !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .top-row {
        background: #000 !important;
        border-radius: 16px !important;
        padding: 10px 0 !important;
        height: auto !important;
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .content-text {
        text-align: center !important;
        width: 100%;
        padding: 8px 0 8px 0 !important;
        font-size: 15px !important;
    }
    .content-title, .content-meta {
        text-align: center !important;
        width: 100%;
        font-size: 13px !important;
    }
    .content-media img, .content-media video {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto 10px auto !important;
        border-radius: 12px !important;
        background: #fff !important;
    }
    .content-text .more {
        width: 100% !important;
        font-size: 15px !important;
        padding: 10px 0 !important;
        margin: 10px 0 0 0 !important;
        border-radius: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .member-wrap, .partner-bottom-wrap, .event-bottom-wrap {
        height: auto !important;
        margin-top: 10px !important;
        border-radius: 14px !important;
        padding: 10px 0 !important;
        background: #fff !important;
        box-shadow: 0 2px 12px #0001 !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    .left-wrap, .left-wrap-p, .left-wrap-e {
        padding: 10px 0 !important;
    }
    .logo-wrap img, .up-right-wrap img {
        max-height: 50px !important;
    }
    .top-row .carousel,
    .top-row .carousel-inner,
    .top-row .carousel-item {
        height: 100% !important;
        min-height: 200px !important;
    }
    .content-section-title {
        font-weight: 400 !important;
        font-size: 13px !important;
        width: 100% !important;
        border-radius: 15px !important;
    }
    .up-right-wrap .upcoming-name {
        font-size: 13px !important;
        display: block !important;
        text-align: center !important;
        margin-bottom: 2px !important;
    }
    .up-right-wrap .upcoming-date {
        display: block !important;
        font-size: 10px !important;
        text-align: center !important;
        margin-top: 0 !important;
        padding-top: 5px !important;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Extra Large Screens (1400px and above) */
@media (min-width: 1400px) {
    .hero-section .hero .hero-text-wrap .hero-title {
        font-size: 36px;
    }
    
    .hero-section .hero .hero-text-wrap .hero-sub-title {
        font-size: 22px;
    }
    
    .slitpa-news h4 {
        font-size: 24px;
    }
    
    .content-section-title {
        font-size: 16px;
    }
    
    .content-title {
        font-size: 14px;
    }
    
    .content-meta {
        font-size: 12px;
    }
    
    .member-wrap .member-text-wrap .member-title {
        font-size: 18px;
    }
    
    .partner-bottom-wrap .left-wrap-p .p-catogery {
        font-size: 18px;
    }
    
    .event-bottom-wrap .left-wrap-e .up-event-title {
        font-size: 18px;
        padding-top: 10px;
    }
}

/* Large Screens (1200px to 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .hero-section .hero .hero-text-wrap .hero-title {
        font-size: 30px;
    }
    
    .slitpa-news .container {
        max-width: 1140px;
    }
    
    .third-section .third-content {
        max-width: 1140px;
        margin: 0 auto;
    }
}

/* Medium Screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-section .hero .hero-text-wrap .hero-title {
        font-size: 28px;
    }
    
    .hero-section .hero .hero-text-wrap .hero-sub-title {
        font-size: 18px;
    }
    
    .slitpa-news h4 {
        font-size: 20px;
    }
    
    .slitpa-news .news-description-clamp {
        font-size: 14px;
    }
    
    .content-section-title {
        font-size: 13px;
    }
    
    .content-title {
        font-size: 11px;
    }
    
    .content-meta {
        font-size: 9px;
    }
    
    .content-text .more {
        font-size: 10px;
        padding: 0.4rem 0.8rem;
    }
    
    .member-wrap .member-text-wrap .member-title {
        font-size: 15px;
    }
    
    .member-wrap .member-text-wrap .member-date {
        font-size: 11px;
    }
    
    .partner-bottom-wrap .left-wrap-p .p-catogery {
        font-size: 18px;
    }
    
    .event-bottom-wrap .left-wrap-e .up-event-title {
        font-size: 22px;
    }
    
    .event-bottom-wrap .up-right-wrap .upcoming-name {
        font-size: 16px;
    }
}

/* Small Screens (768px to 991px) */
@media (max-width: 991px) and (min-width: 720px) {
    .content-text .more {
        width: auto !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        align-self: flex-start !important;
        display: inline-block !important;
    }
}

/* Small Screens (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-section .hero .hero-text-wrap .hero-title {
        font-size: 24px;
    }
    
    .hero-section .hero .hero-text-wrap .hero-sub-title {
        font-size: 16px;
    }
    
    .slitpa-news {
        padding: 15px 0;
    }
    
    .slitpa-news h4 {
        font-size: 18px;
        text-align: center;
    }
    
    .slitpa-news .date-news {
        text-align: center;
        font-size: 13px;
    }
    
    .slitpa-news .news-description-clamp {
        font-size: 13px;
        text-align: justify;
        -webkit-line-clamp: 6;
    }
    
    .slitpa-news .buton-wrap {
        justify-content: center;
    }
    
    .slitpa-news .news-media-col {
        margin-top: 20px;
    }
    
    .third-section {
        padding: 20px 0;
    }
    
    .content-block {
        height: auto;
        margin-bottom: 20px;
    }
    
    .top-row {
        height: 200px;
    }
    
    .content-text {
        padding: 15px;
    }
    
    .content-section-title {
        font-size: 12px;
        padding: 8px;
    }
    
    .content-title {
        font-size: 10px;
    }
    
    .content-meta {
        font-size: 8px;
    }
    
    .content-text .more {
        font-size: 10px;
        padding: 0.3rem 0.5rem;
        width: 103px;
    }
    
    .content-media img,
    .content-media video {
        max-height: 160px;
    }
    
    /* Bottom sections */
    .member-wrap {
        height: 70px;
        margin-top: 8px;
    }
    
    .member-wrap .left-wrap {
        padding: 12px;
    }
    
    .member-wrap .left-wrap img {
        max-width: 35px;
    }
    
    .member-wrap .member-text-wrap .member-title {
        font-size: 13px;
        padding-left: 8px;
    }
    
    .member-wrap .member-text-wrap .member-date {
        font-size: 9px;
        padding-left: 8px;
    }
    
    .member-wrap .member-count-wrapper {
        padding: 12px;
    }
    
    .partner-bottom-wrap {
        height: 70px;
        margin-top: 8px;
    }
    
    .partner-bottom-wrap .left-wrap-p {
        padding: 6px;
    }
    
    .partner-bottom-wrap .left-wrap-p .p-catogery {
        font-size: 18px;
        padding-left: 10px;
    }
    
    .partner-bottom-wrap .left-wrap-p .partner-title {
        font-size: 11px;
        padding-left: 8px;
    }
    
    .partner-bottom-wrap .logo-wrap img {
        max-height: 50px;
    }
    
    .event-bottom-wrap {
        height: 70px;
        margin-top: 8px;
    }
    
    .event-bottom-wrap .left-wrap-e {
        padding: 8px;
    }
    
    .event-bottom-wrap .left-wrap-e .up-event-title {
        font-size: 16px;
    }
    
    .event-bottom-wrap .up-right-wrap {
        padding: 8px;
    }
    
    .event-bottom-wrap .up-right-wrap .upcoming-name {
        font-size: 13px !important;
        display: block !important;
        text-align: center !important;
        margin-bottom: 2px !important;
    }
    
    .event-bottom-wrap .up-right-wrap .upcoming-date {
        display: block !important;
        font-size: 10px !important;
        text-align: center !important;
        margin-top: 0 !important;
        padding-top: 5px !important;
    }
    
    /* Modal adjustments for mobile */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 16px;
    }
}

/* Extra Small Screens (576px to 767px) */
@media (max-width: 575px) {
    /* Header adjustments */
    .sidebar-topbar {
        height: 10vh !important;
        flex-direction: column;
        padding: 5px 10px;
    }
    
    .sidebar-topbar #sidebar-logo {
        order: 1;
        margin-bottom: 5px;
    }
    
    .sidebar-topbar #sidebar-logo img {
        height: 60px !important;
    }
    
    .sidebar-topbar .header-title {
        order: 2;
        flex: none;
    }
    
    .sidebar-topbar .header-title h1 {
        font-size: 1.4rem !important;
        margin-bottom: 0.1rem;
    }
    
    .sidebar-topbar .header-title p {
        font-size: 0.8rem !important;
        margin-top: 0;
    }
    
    .sidebar-topbar > div:last-child {
        order: 3;
        flex: none;
        margin-top: 5px;
    }
    
    /* Hero section */
    .hero-section .hero .hero-image-wrap .hero-image {
        height: 10vh;
    }
    
    .hero-section .hero .hero-text-wrap {
        top: 50%;
        width: 100%;
        padding: 0 10px;
    }
    
    .hero-section .hero .hero-text-wrap .hero-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .hero-section .hero .hero-text-wrap .hero-sub-title {
        font-size: 12px;
        display: none;
    }
    
    /* News section */
    .slitpa-news {
        padding: 10px 0;
    }
    
    .slitpa-news .container {
        padding: 0 10px;
    }
    
    .slitpa-news h4 {
        font-size: 14px;
        text-align: center;
        margin-bottom: 6px;
        padding: 0 5px;
    }
    
    .slitpa-news .date-news {
        text-align: center;
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .slitpa-news .news-description-clamp {
        font-size: 11px;
        text-align: justify;
        -webkit-line-clamp: 4;
        margin-bottom: 8px;
        padding: 0 5px;
    }
    
    .slitpa-news .buton-wrap {
        justify-content: center;
        margin-top: 8px;
    }
    
    .slitpa-news .buton-wrap .more {
        font-size: 10px;
        padding: 0.3rem 0.8rem;
    }
    
    .slitpa-news .news-media-col {
        margin-top: 10px;
    }
    
    .slitpa-news #newsMediaCarousel .carousel-item img,
    .slitpa-news #newsMediaCarousel .carousel-item video {
        max-height: 100%;
    }
    
    /* Third section - Mobile layout like news section */
    .third-section {
        padding: 10px 0;
    }
    
    .third-section .third-content {
        padding: 0 10px;
    }
    
    .content-block {
        height: auto;
        margin-bottom: 10px;
    }
    
    .top-row {
        height: auto;
    }
    
    /* Keep side-by-side layout like news section */
    .top-row .row {
        flex-direction: row;
        height: auto;
    }
    
    .top-row .col-md-6:first-child {
        order: 1;
        height: 100%;
        min-height: 100%;
    }
    
    .top-row .col-md-6:last-child {
        order: 2;
        height: 140px;
    }
    
    .content-text {
        padding: 10px;
        height: auto;
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .content-section-title {
        font-size: 10px;
        padding: 5px;
        width: 90%;
        margin-bottom: 8px;
    }
    
    .content-title {
        font-size: 8px;
        margin-bottom: 3px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .content-meta {
        font-size: 6px;
        margin-bottom: 2px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .content-text .more {
        font-size: 8px;
        padding: 0.2rem 0.4rem;
        width: 80px;
        margin: 8px 10px 10px 10px;
        align-self: flex-start;
    }
    
    .content-media {
        height: 140px;
        overflow: hidden;
    }
    
    .content-media img,
    .content-media video {
        max-height: 140px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Bottom sections */
    .member-wrap {
        height: 60px;
        margin-top: 6px;
    }
    
    .member-wrap .left-wrap {
        padding: 8px;
    }
    
    .member-wrap .left-wrap img {
        max-width: 30px;
    }
    
    .member-wrap .member-text-wrap .member-title {
        font-size: 11px;
        padding-left: 6px;
    }
    
    .member-wrap .member-text-wrap .member-date {
        font-size: 8px;
        padding-left: 6px;
    }
    
    .member-wrap .member-count-wrapper {
        padding: 8px;
    }
    
    .member-wrap .member-count-wrapper .member-count {
        font-size: 24px;
    }
    
    .partner-bottom-wrap {
        height: 60px;
        margin-top: 6px;
    }
    
    .partner-bottom-wrap .left-wrap-p {
        padding: 4px;
    }
    
    .partner-bottom-wrap .left-wrap-p .p-catogery {
        font-size: 16px;
        padding-left: 6px;
    }
    
    .partner-bottom-wrap .left-wrap-p .partner-title {
        font-size: 10px;
        padding-left: 6px;
    }
    
    .partner-bottom-wrap .logo-wrap img {
        max-height: 40px;
    }
    
    .event-bottom-wrap {
        height: 60px;
        margin-top: 6px;
    }
    
    .event-bottom-wrap .left-wrap-e {
        padding: 8px;
    }
    
    .event-bottom-wrap .left-wrap-e .up-event-title {
        font-size: 16px;
    }
    
    .event-bottom-wrap .up-right-wrap {
        padding: 8px;
    }
    
    .event-bottom-wrap .up-right-wrap .upcoming-name {
        font-size: 13px !important;
        display: block !important;
        text-align: center !important;
        margin-bottom: 2px !important;
    }
    
    .event-bottom-wrap .up-right-wrap .upcoming-date {
        display: block !important;
        font-size: 10px !important;
        text-align: center !important;
        margin-top: 0 !important;
        padding-top: 5px !important;
    }
    
    /* Modal adjustments for mobile */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 16px;
    }
}

/* Very Small Screens (up to 375px) */
@media (max-width: 375px) {
    .sidebar-topbar .header-title h1 {
        font-size: 1.2rem !important;
    }
    
    .sidebar-topbar .header-title p {
        font-size: 0.7rem !important;
    }
    
    .hero-section .hero .hero-text-wrap .hero-title {
        font-size: 14px;
    }
    
    .slitpa-news h4 {
        font-size: 12px;
    }
    
    .slitpa-news .news-description-clamp {
        font-size: 10px;
    }
    
    .content-section-title {
        font-size: 9px;
    }
    
    .content-title {
        font-size: 7px;
    }
    
    .content-meta {
        font-size: 5px;
    }
    
    .content-text .more {
        font-size: 7px;
        width: 70px;
    }
    
    .member-wrap .member-text-wrap .member-title {
        font-size: 10px;
    }
    
    .member-wrap .member-text-wrap .member-date {
        font-size: 7px;
    }
    
    .partner-bottom-wrap .left-wrap-p .p-catogery {
        font-size: 14px;
    }
    
    .partner-bottom-wrap .left-wrap-p .partner-title {
        font-size: 9px;
    }
    
    .event-bottom-wrap .left-wrap-e .up-event-title {
        font-size: 14px;
    }
    
    .event-bottom-wrap .up-right-wrap .upcoming-name {
        font-size: 10px;
    }
    
    .event-bottom-wrap .up-right-wrap .upcoming-date {
        font-size: 7px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .sidebar-topbar {
        height: 8vh !important;
    }
    
    .hero-section .hero .hero-image-wrap .hero-image {
        height: 8vh;
    }
    
    .slitpa-news {
        padding: 8px 0;
    }
    
    .third-section {
        padding: 8px 0;
    }
    
    .top-row {
        height: 120px;
    }
    
    .member-wrap,
    .partner-bottom-wrap,
    .event-bottom-wrap {
        height: 50px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section .hero .hero-image-wrap .hero-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .content-media img,
    .slitpa-news #newsMediaCarousel .carousel-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .sidebar-topbar,
    .whatsapp-float,
    .modal,
    .carousel-controls {
        display: none !important;
    }
    
    .hero-section,
    .slitpa-news,
    .third-section {
        page-break-inside: avoid;
    }
    
    .content-block {
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
}

@media (max-width: 780px) {
    .content-block {
        background: #fff !important;
        border-radius: 18px !important;
        box-shadow: 0 2px 12px #0002 !important;
        margin-bottom: 24px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden;
    }
    .top-row {
        background: #000 !important;
        border-radius: 18px 18px 0 0 !important;
        padding: 18px 10px 10px 10px !important;
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .content-text {
        text-align: center !important;
        width: 100%;
        padding: 0 0 10px 0 !important;
        font-size: 15px !important;
    }
    .content-title, .content-meta {
        text-align: center !important;
        width: 100%;
        font-size: 13px !important;
    }
    .content-media {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 120px;
        margin-bottom: 10px;
    }
    .content-media img, .content-media video {
        width: 100% !important;
        height: auto !important;
        max-height: 220px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
        background: #fff !important;
    }
    .content-text .more {
        width: 100% !important;
        font-size: 15px !important;
        padding: 10px 0 !important;
        margin: 10px 0 0 0 !important;
        border-radius: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Bottom row full width, card style, center content */
    .member-wrap{
        margin-top: 10px !important;
        border-radious: 18px !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        /*margin: 0 !important;*/
        /*border-radius: 0 0 18px 18px !important;*/
        box-sizing: border-box;
        background: #000 !important;
        color: #fff !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px !important;
    }
    .partner-bottom-wrap {
        margin-top: 10px !important;
        border-radious: 18px !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        /*margin: 0 !important;*/
        /*border-radius: 0 0 18px 18px !important;*/
        box-sizing: border-box;
        background: #000 !important;
        color: #fff !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }
    /*.member-wrap,*/
    /*.partner-bottom-wrap,*/
    .event-bottom-wrap {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 0 18px 18px !important;
        box-sizing: border-box;
        background: #000 !important;
        color: #fff !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }
    .member-wrap > .row,
    .partner-bottom-wrap > .row,
    .event-bottom-wrap > .row {
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .member-wrap > .row > .col-6,
    .partner-bottom-wrap > .row > .col-6,
    .event-bottom-wrap > .row > .col-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .member-count-wrapper,
    .left-wrap,
    .left-wrap-p,
    .left-wrap-e {
        margin: 0 !important;
        padding: 0 8px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .logo-wrap {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        /*background: #000000 !important;*/
        border-radius: 0 0 18px 0 !important;
        height: 100px !important;
        
    }
    .up-right-wrap {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        /*background: #000000 !important;*/
        border-radius: 0 0 18px 0 !important;
    }
    .logo-wrap img, .up-right-wrap img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    .event-bottom-wrap > .row {
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: center !important;
    }
    .event-bottom-wrap > .row > .col-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 70px !important;
        min-height: 70px !important;
        box-sizing: border-box;
    }
    .event-bottom-wrap > .row > .col-6:first-child {
        background: #8686b8 !important;
        border-radius: 0 0 0 18px !important;
    }
    /* .event-bottom-wrap > .row > .col-6:last-child {
        background: #030303 !important;
        border-radius: 0 0 18px 0 !important;
    } */
    .event-bottom-wrap .up-event-title,
    .event-bottom-wrap .upcoming-name,
    .event-bottom-wrap .upcoming-date {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        margin: 0 auto !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #fff !important;
    }
    .event-bottom-wrap .upcoming-date {
        font-size: 12px !important;
        font-weight: 400 !important;
        color: #fff !important;
    }
}

/* --- Force More Details button to bottom of each column in third-section --- */
.content-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 180px;
    position: relative;
}
.content-text .more {
    margin-top: auto !important;
    margin-bottom: 10px !important;
    align-self: flex-start;
}
@media (max-width: 991px) {
    .content-text {
        min-height: 140px !important;
    }
    .content-text .more {
        width: 100% !important;
        align-self: center !important;
        margin-bottom: 5px !important;
    }
}

/* Fix modal and overlay stacking globally */
.modal {
  z-index: 2002 !important;
}
.modal-backdrop {
  z-index: 2001 !important;
}
.sidebar-topbar {
  z-index: 1060 !important;
}

.partner-logo-overlay {
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
}

/* Header and hero section visibility for mobile/desktop */
.header-mobile, .mobile-hero-section { display: none; }
.header-desktop { display: block; }

@media (max-width: 767px) {
  .header-mobile, .mobile-hero-section { display: block !important; }
  .header-desktop { display: none !important; }
}

@media (max-width: 500px) {
  .slitpa-news {
    margin-top: 40px; /* Prevent overlap with hero section on small screens */
  }
}

@media (max-width: 767px) {
  .header-title {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .upcoming-name-date-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .upcoming-name-date-wrap .upcoming-name {
    font-size: 13px !important;
    margin-bottom: 2px !important;
    text-align: center !important;
    width: 100% !important;
  }
  .upcoming-name-date-wrap .upcoming-date {
    font-size: 10px !important;
    margin-top: 0 !important;
    text-align: center !important;
    width: 100% !important;
    padding-top: 5px !important;
  }
}

