

/** ==============   FLOATING BUTTON   ==================== **/

    .floating-buttons {
        position: fixed;
        bottom: 70px;
        right: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 9999;
    }
    
    .floating-buttons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 25px;
        color: white;
        text-decoration: none;
        transition: background-color 0.3s ease;
        box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
        border: 5px solid #fff;
    }
    
    /* WhatsApp styling
    .whatsapp-btn {
        background-color: #25D366;
    }
    .whatsapp-btn:hover {
        background-color: #128C7E;
    } */
    
    /* Facebook styling */
    .facebook-btn {
        background-color: #1877F2;
    }
    .facebook-btn:hover {
        background-color: #12318c;
    }

    /* Scroll to Top styling */
    .scroll-top-btn {
        background-color: #0303d5;
        display: none; /* Hidden until scroll */
    }
    .scroll-top-btn:hover {
        background-color: #555;
    }

    /* Base Footer Style */
    .footer-top-area {
        padding-top: 20px;
        padding-left: 20px;
    }
    
    /* Medium screens (laptops/tablets) */
    @media (max-width: 1920px) {
        .footer-top-area {
            padding-top: 80px;
            padding-left: 30px;
        }
    }
    
    @media (max-width: 1366px) {
        .footer-top-area {
            padding-top: 40px;
            padding-left: 30px;
        }
    }
    
    /* Small screens (phones) */
    @media (max-width: 760px) {
        .footer-top-area {
            padding-top: 30px;
            padding-left: 15px;
        }
        
        .floating-buttons {
            position: fixed;
            bottom: 60px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 9999;
        }
        
        .floating-buttons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 37px;
            height: 37px;
            border-radius: 50%;
            font-size: 15px;
            color: white;
            text-decoration: none;
            transition: background-color 0.3s ease;
            box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
            border: 5px solid #fff;
        }
    }
    
    /* Accessibility Wrapper - FIXED */
    #accessibility-wrapper {
      position: fixed;
      top: 127px;
      right: 0;
      display: flex;
      flex-direction: row-reverse;
      align-items: flex-start;
      z-index: 10000;
      pointer-events: none; /* ADD THIS - allows clicks to pass through wrapper */
    }
    
    /* Toggle Button */
    #accessibility-toggle {
      background-color: #1e40af;
      border: none;
      padding: 10px;
      cursor: pointer;
      border-radius: 5px 0 0 5px;
      z-index: 10001;
      pointer-events: auto; /* ADD THIS - enables button to be clickable */
    }
    
    #accessibility-toggle img {
      width: 30px;
      height: 30px;
    }
    
    /* Accessibility Panel - hidden by default */
    #accessibility-panel button {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 0px 15px;
      margin-bottom: 8px;
      border: none;
      border-radius: 5px;
      background-color: transparent;
      font-size: 15px;
      color: #333;
      cursor: pointer;
      transition: background-color 0.2s ease;
      pointer-events: auto; /* ADD THIS - ensures buttons are clickable */
    }
    
    #accessibility-panel {
      background-color: #fff;
      border: none;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      padding: 20px;
      border-radius: 8px 0 0 8px;
      font-size: 16px;
      width: 260px;
      transform: translateX(100%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    #accessibility-wrapper.active #accessibility-panel {
      transform: translateX(0);
      opacity: 1;
      pointer-events: auto; /* ADD THIS - enables panel when active */
    }
    
    
    
    #accessibility-panel button:hover {
      background-color: #f0f0f0;
    }
    
    
    /* Show panel when active */
    #accessibility-wrapper.active #accessibility-panel {
      transform: translateX(0); /* Slide in */
      opacity: 1;
      pointer-events: auto;
    }
    
    
    /* Only affect main content for resizing */
    #main-content {
      padding: 20px;
    }
    
    body.grayscale {
      filter: grayscale(100%);
    }
    
    body.high-contrast {
      filter: contrast(200%);
    }
    
    body.negative-contrast {
      filter: invert(100%);
    }
    
    body.light-bg,
    body.light-bg * {
      background-color: #ffffff !important;
      color: #000000 !important;
      box-shadow: none !important;
      border-color: #000000 !important;
    }
    body.light-bg * {
      background-image: none !important;
    }
    
    
    body.underline-links a {
      text-decoration: underline !important;
    }
    
    body.readable-font {
      font-family: Verdana , sans-serif !important;
    }
    
    #accessibility-panel {
      font-size: 16px; /* fixed font size */
    }
    
    body.dark-mode {
      background-color: #121212 !important;
      color: #e0e0e0 !important;
    }
    
    body.dark-mode a {
      color: #90caf9 !important;
    }
    
    body.dark-mode header,
    body.dark-mode footer,
    body.dark-mode .footer-top-area,
    body.dark-mode .section,
    body.dark-mode .container {
      background-color: #1e1e1e !important;
      color: #e0e0e0 !important;
    }
    
    body.dark-mode .btn,
    body.dark-mode .card,
    body.dark-mode .panel,
    body.dark-mode .box {
      background-color: #2c2c2c !important;
      color: #ffffff !important;
      border-color: #444 !important;
    }

    
/** ==============   BAHAGIAN   ==================== **/
    
    .service-details-page {
        background: #fefefe;
    }
    
    .service-details-main {
        background: #fff;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    
    .service-details-image img {
        height: 400px;
        object-fit: cover;
    }
    
    .service-details-content h1 {
        color: #1a472a;
        font-size: 2.5rem;
        font-weight: 700;
        border-bottom: 3px solid #d4a017;
        padding-bottom: 15px;
        margin-bottom: 25px;
    }
    
    .service-description {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #555;
    }
    
    .additional-content {
        font-size: 1rem;
        line-height: 1.7;
        color: #666;
    }
    
    .service-sidebar .widget {
        background: #fff;
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        margin-bottom: 30px;
    }
    
    .widget-title {
        color: #1a472a;
        font-size: 1.5rem;
        font-weight: 600;
        position: relative;
        padding-bottom: 10px;
    }
    
    .widget-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50px;
        height: 3px;
        background: #d4a017;
    }
    
    .cat-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .cat-list li {
        border-bottom: 1px solid #eee;
        padding: 12px 0;
    }
    
    .cat-list li:last-child {
        border-bottom: none;
    }
    
    .cat-list li.active a {
        color: #d4a017;
        font-weight: 600;
    }
    
    .cat-list li a {
        color: #555;
        text-decoration: none;
        transition: all 0.3s ease;
        display: block;
    }
    
    .cat-list li a:hover {
        color: #d4a017;
        transform: translateX(5px);
    }
    
    .th-btn {
        /*background: #1a472a;*/
        color: #fff;
        border: none;
        padding: 12px 25px;
        border-radius: 5px;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s ease;
    }
    
    .th-btn:hover {
        background: #d4a017;
        color: #fff;
        transform: translateY(-2px);
    }
    
    .consult-widget {
        border: none;
    }
    
    .consult-widget .widget-icon {
        color: #d4a017;
    }
    
    .quick-form .form-control {
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 12px 15px;
        transition: all 0.3s ease;
    }
    
    .quick-form .form-control:focus {
        border-color: #d4a017;
        box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.25);
    }
    
    .service-contact-cta {
        border: 2px solid #d4a017;
    }
    
    
    
    .service-block:last-child,
    .service-block:nth-last-child(2):nth-child(odd) {
        margin-left: auto;
        margin-right: 400px;
    }
    
    .scroll-to-top {
        position: fixed;
        right: 15px;
        bottom: 20px;
        width: 65px;
        height: 65px;
        font-size: 18px;
        line-height: 61px;
        text-align: center;
        z-index: 100;
        cursor: pointer;
        border-radius: 50%;
        margin-left: -26px;
        display: none;
        -webkit-transition: all 300ms ease;
        -o-transition: all 300ms ease;
        transition: all 300ms ease;
        -webkit-transform: rotate(-90deg);
            -ms-transform: rotate(-90deg);
                transform: rotate(-90deg);
    }

/** ==============   MENU BAR   ==================== **/
    
    .th-menu-wrapper{position:fixed;top:0;left:-100%;width:100%;height:100vh;background:rgba(0,0,0,0.7);z-index:9999;transition:all 0.3s ease;overflow-y:auto;-webkit-overflow-scrolling:touch}
    .th-menu-wrapper.active{left:0}
    .th-menu-area{position:relative;width:85%;max-width:400px;height:100%;background:#fff;padding:20px;overflow-y:auto;-webkit-overflow-scrolling:touch}
    .th-menu-toggle{position:relative;z-index:100;background:none;border:none;font-size:24px;cursor:pointer;padding:10px;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
    .th-menu-area .closeButton,.th-menu-toggle i{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
    .th-mobile-menu{margin-top:30px}
    .th-mobile-menu ul{list-style:none;padding:0;margin:0}
    .th-mobile-menu li{position:relative;border-bottom:1px solid #eee}
    .th-mobile-menu li a{display:block;padding:12px 15px;color:#333;text-decoration:none;font-size:15px;font-weight:500;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:all 0.3s ease}
    .th-mobile-menu li a:active{background:#f5f5f5}
    
    .th-mobile-menu .sub-menu{display:none;max-height:0;overflow:hidden;transition:max-height 0.3s ease;background:#f9f9f9;padding-left:0}
    .th-mobile-menu .menu-item-has-children.active>.sub-menu{display:block}
    .th-mobile-menu .sub-menu li{border-bottom:1px solid #e5e5e5}
    .th-mobile-menu .sub-menu li:last-child{border-bottom:none}
    .th-mobile-menu .sub-menu a{padding-left:30px;font-size:14px}
    .th-mobile-menu .sub-menu .sub-menu a{padding-left:45px;font-size:13px}
    body.menu-open{overflow:hidden;position:fixed;width:100%;height:100%}
    .mobile-logo{padding:20px 0;text-align:center;border-bottom:1px solid #eee;margin-bottom:20px}
    .mobile-logo img{max-height:60px;width:auto}
    @media (max-width:991px){.th-mobile-menu li a{min-height:44px;display:flex;align-items:center}.th-mobile-menu a{pointer-events:auto!important;cursor:pointer!important}.th-menu-wrapper{z-index:99999!important}}
    button,.th-menu-toggle,.th-mobile-menu a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
    .th-mobile-menu li a:hover,.th-mobile-menu li a:focus{background:#f5f5f5;color:#000}
    
    .th-mobile-menu li a.active-menu {
        color: #f4c542 !important;
        font-weight: 600;
    }
    
    .main-menu ul li a.active-menu {
        color: #f4c542 !important;
    }
    
    .main-menu ul li a.active-menu::after {
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
    }
    
    .main-menu ul li.menu-item-has-children.has-active-child > a {
        color: #f4c542 !important;
    }
    
    .header-layout5 .main-menu > ul > li.menu-item-has-children {
        display: inline-flex !important;
        align-items: center !important;
    }
    
    .header-layout5 .main-menu > ul > li.menu-item-has-children > a {
        display: inline-flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
    
    .header-top .header-links {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .header-top .header-links a {
        display: inline-flex;
        align-items: center;
        padding: 5px 10px;
        border-radius: 4px;
        text-decoration: none;
    }
    
    .header-top .header-links a i {
        font-size: 18px;
        color: black;
    }
    
    .header-top .header-links ul {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 10px;
    }
    
    .header-top .header-links ul li a {
        display: flex;
        align-items: center;
        gap: 5px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        padding: 5px 8px;
    }
    
    /* Mobile Header Top Adjustments */
    @media (max-width: 768px) {
        .header-top {
            padding: 5px 0 !important;
        }
        
        .header-top .container {
            padding: 0 10px;
        }
        
        .header-top .header-links {
            gap: 8px !important;
        }
        
        .header-top .header-links a {
            padding: 3px 6px !important;
        }
        
        .header-top .header-links a i {
            font-size: 16px !important;
        }
        
        .header-top .header-links ul {
            gap: 5px !important;
        }
        
        .header-top .header-links ul li a {
            font-size: 12px !important;
            padding: 3px 5px !important;
            gap: 3px !important;
            white-space: nowrap;
        }
    }
    
    @media (max-width: 576px) {
        .header-top {
            padding: 3px 0 !important;
        }
        
        .header-top .container {
            padding: 0 5px;
        }
        
        .header-top .header-links {
            gap: 5px !important;
        }
        
        .header-top .header-links a {
            padding: 2px 4px !important;
        }
        
        .header-top .header-links a i {
            font-size: 14px !important;
        }
        
        .header-top .header-links ul li a {
            font-size: 10px !important;
            padding: 2px 4px !important;
            gap: 2px !important;
        }
    }
    
    @media (max-width: 400px) {
        .header-top .header-links {
            gap: 3px !important;
        }
        
        .header-top .header-links a {
            padding: 2px 3px !important;
        }
        
        .header-top .header-links a i {
            font-size: 13px !important;
        }
        
        .header-top .header-links ul li a {
            font-size: 9px !important;
            padding: 2px 3px !important;
        }
        
        .header-top .header-links ul li a span {
            display: none;
        }
        
        .header-top .header-links ul li a::after {
            content: attr(data-lang);
            font-size: 9px;
            font-weight: 600;
        }
    }
    
    /* Responsive Logo Text Styles */
    .header-logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .logo-text {
        margin-left: 15px;
        display: inline-block;
        vertical-align: middle;
        flex-shrink: 0;
    }
    
    .logo-text-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        line-height: 1.3;
        white-space: nowrap;
        display: block;
    }
    
    .logo-text-jawi {
        margin: 5px 0;
    }
    
    .logo-text-jawi img {
        height: 77px;
        width: auto;
        display: block;
    }
    
    .logo-text-slogan {
        font-size: 11px;
        color: #888;
        font-style: italic;
        white-space: nowrap;
        display: block;
    }
    
    /* Tablet and smaller screens */
    @media (max-width: 1919px) {
        .logo-text {
            margin-left: 10px;
        }
        
        .logo-text-title {
            font-size: 11px !important;
            white-space: nowrap !important;
        }
        
        .logo-text-jawi img {
            height: 53px !important;
        }
        
        .logo-text-slogan {
            font-size: 10px !important;
            white-space: nowrap !important;
        }
        
        .header-logo a img {
            height: 90px !important;
        }
    }
    
    /* Tablet and smaller screens */
    @media (max-width: 991px) {
        .logo-text {
            margin-left: 10px;
        }
        
        .logo-text-title {
            font-size: 14px !important;
            white-space: nowrap !important;
        }
        
        .logo-text-jawi img {
            height: 68px !important;
        }
        
        .logo-text-slogan {
            font-size: 10px !important;
            white-space: nowrap !important;
        }
        
        .header-logo a img {
            height: 110px !important;
        }
    }
    
    /* Small tablets */
    @media (max-width: 768px) {
        .logo-text {
            margin-left: 8px !important;
        }
        
        .logo-text-title {
            font-size: 12px !important;
            white-space: nowrap !important;
        }
        
        .logo-text-jawi img {
            height: 58px !important;
        }
        
        .logo-text-slogan {
            font-size: 9px !important;
            white-space: nowrap !important;
        }
        
        .header-logo a img {
            height: 100px !important;
        }
    }
    
    /* Mobile phones */
    @media (max-width: 576px) {
        .logo-text {
            margin-left: 5px !important;
        }
        
        .logo-text-title {
            font-size: 10px !important;
            line-height: 1.2 !important;
            white-space: nowrap !important;
        }
        
        .logo-text-jawi img {
            height: 48px !important;
        }
        
        .logo-text-slogan {
            font-size: 8px !important;
            white-space: nowrap !important;
        }
        
        .header-logo a img {
            height: 65px !important;
        }
        
        .header-logo {
            max-width: none;
        }
    }
    
    /* Very small screens */
    @media (max-width: 400px) {
        .logo-text {
            margin-left: 3px !important;
        }
        
        .logo-text-title {
            font-size: 9px !important;
            line-height: 1.1 !important;
            white-space: nowrap !important;
        }
        
        .logo-text-jawi img {
            height: 43px !important;
        }
        
        .logo-text-slogan {
            font-size: 7px !important;
            white-space: nowrap !important;
        }
        
        .header-logo a img {
            height: 55px !important;
        }
        
         .header-logo {
            max-width: none;
        }
    }
    
    /* Extra small screens */
    @media (max-width: 360px) {
        .logo-text {
            margin-left: 2px !important;
        }
        
        .logo-text-title {
            font-size: 8px !important;
            white-space: nowrap !important;
        }
        
        .logo-text-jawi img {
            height: 39px !important;
        }
        
        .logo-text-slogan {
            font-size: 6px !important;
            white-space: nowrap !important;
        }
        
        .header-logo a img {
            height: 66px !important;
        }
    }
    
    /* Remove background asal dari menu-area */
    .header-layout5 .menu-area {
        background: transparent !important;
        background-image: none !important;
        position: relative;
    }
    
    /* Pastikan container berada atas background biru baru */
    .header-layout5 .menu-area .container {
        position: relative;
        z-index: 1;
    }
    
    .header-layout5 .main-menu > ul > li > a {
        padding: 6.5px 0;
    }
    
    /* Add this to prevent the logo area from being compressed */
    .menu-area .container .row {
        flex-wrap: nowrap !important;
    }
    
    /* Add this to ensure proper spacing */
    .header-logo {
        min-width: 0;
    }
    
    .menu-blue-bg {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        background-color: #0c1d69;
        background-size: auto;
        background-repeat: repeat;
        clip-path: polygon(350px 0, 100% 0, 100% 100%, 312px 100%);
        z-index: 0;
    }
    
    /* Responsive dengan serong effect */
    @media (max-width: 2058px) {
        .menu-blue-bg {
            clip-path: polygon(296px 0, 100% 0, 100% 100%, 260px 100%);
            margin-left: 526px;
        }
    }
    
    @media (max-width: 1919px) {
        .menu-blue-bg {
            clip-path: polygon(296px 0, 100% 0, 100% 100%, 260px 100%);
            margin-left: 174px;
        }
    }
    
    @media (max-width: 1280px) {
        .menu-blue-bg {
            clip-path: polygon(296px 0, 100% 0, 100% 100%, 260px 100%);
            margin-left: 200px;
        }
        
        .header-layout5 .main-menu > ul > li {
            margin: 0px 9px;
        }
        .main-menu a {
            font-size: 13px;
        }
    }
    
    @media (max-width: 1199px) {
        .menu-blue-bg {
            clip-path: polygon(296px 0, 100% 0, 100% 100%, 260px 100%);
            margin-left: 188px;
        }
    }
    
    @media (max-width: 991px) {
        .menu-blue-bg {
            clip-path: polygon(235px 0, 100% 0, 100% 100%, 205px 100%);
            margin-left: 396px;
        }
    }
    
    @media (max-width: 768px) {
        .menu-blue-bg {
            clip-path: polygon(203px 0, 100% 0, 100% 100%, 175px 100%);
            margin-left: 280px;
        }
    }
    
    @media (max-width: 700px) {
        .menu-blue-bg {
            clip-path: polygon(203px 0, 100% 0, 100% 100%, 175px 100%);
            margin-left: 287px;
        }
    }
    
    @media (max-width: 576px) {
        .menu-blue-bg {
            clip-path: polygon(180px 0, 100% 0, 100% 100%, 148px 100%);
            margin-left: 157px;
        }
    }
    
    @media (max-width: 400px) {
        .menu-blue-bg {
            clip-path: polygon(151px 0, 100% 0, 100% 100%, 125px 100%);
            margin-left: 140px;
        }
    }
    

    
/** ==============   BANNER SLIDER   ==================== **/


    @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

    :root {
        --primary: #233b7e;
        --primary-light: #2d4a9e;
        --primary-dark: #1a2c5f;
        --secondary: #1e1e2d;
        --accent: #3a7bd5;
        --accent-light: #5a9bff;
        --light: #ffffff;
        --light-gray: #f8f9fc;
        --gray: #6c757d;
        --dark-gray: #495057;
        --shadow: 0 20px 50px rgba(35, 59, 126, 0.12);
        --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        --border-radius: 16px;
    }

    /* Banner main Section */
    .banner-main {
        padding: 0;
        position: relative;
        overflow: hidden;
        min-height: 600px;
        background: #fefefe;
    }

    .banner-main .swiper-slide {
        opacity: 0 !important;
        transition: opacity 0.8s ease;
    }

    .banner-main .swiper-slide-active {
        opacity: 1 !important;
    }

    .main-content {
        display: grid;
        grid-template-columns: 45% 55%;
        gap: 0;
        align-items: stretch;
        position: relative;
        z-index: 1;
        min-height: 600px;
    }

    .main-visual {
        position: relative;
        height: 100%;
        min-height: 600px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    .main-image-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 120%;
        height: 100%;
        overflow: hidden;
    }

    .main-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        /*clip-path: polygon(*/
        /*    0 0, */
        /*    70% 0, */
        /*    75% 100%, */
        /*    0 100%*/
        /*);*/
        mask-image: linear-gradient(145deg, 
            rgba(0,0,0,1) 0%, 
            rgba(0,0,0,1) 55%, 
            rgba(0,0,0,0.7) 70%, 
            rgba(0,0,0,0.3) 85%, 
            rgba(0,0,0,0) 100%);
        -webkit-mask-image: linear-gradient(to right, 
            rgba(0,0,0,1) 0%, 
            rgba(0,0,0,1) 55%, 
            rgba(0,0,0,0.7) 70%, 
            rgba(0,0,0,0.3) 85%, 
            rgba(0,0,0,0) 100%);
    }

    .main-image-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right, 
            rgba(255, 255, 255, 0) 0%, 
            rgba(255, 255, 255, 0.3) 50%, 
            rgba(255, 255, 255, 0.8) 75%,
            rgba(255, 255, 255, 1) 100%);
        z-index: 1;
        pointer-events: none;
    }

    .main-text {
        position: relative;
        z-index: 2;
        background: transparent;
        padding: 80px 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .main-text h2 {
        font-family: 'Outfit', sans-serif;
        font-size: 3.5rem;
        color: var(--primary);
        margin-bottom: 30px;
        line-height: 1.2;
        font-weight: 800;
    }

    .main-text p {
        color: var(--dark-gray);
        margin-bottom: 20px;
        font-size: 1.1rem;
        line-height: 1.8;
        font-family: 'Poppins', sans-serif;
    }

    .main-features {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 40px;
    }

    .main-feature {
        background: var(--light);
        padding: 15px 25px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
        color: var(--primary);
        border: 2px solid rgba(35, 59, 126, 0.15);
        transition: var(--transition);
        font-family: 'Poppins', sans-serif;
    }

    .main-feature:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(35, 59, 126, 0.2);
        border-color: var(--primary);
    }

    .main-feature i {
        font-size: 18px;
    }

    /* Slider Navigation */
    .banner-slider-nav {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 15px;
        z-index: 10;
    }

    .banner-nav-button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid rgba(35, 59, 126, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
        color: var(--primary);
        backdrop-filter: blur(10px);
    }

    .banner-nav-button:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        transform: scale(1.1);
    }

    .banner-nav-button i {
        font-size: 18px;
    }

    /* Responsive Design */
    @media (max-width: 992px) {
        .main-content {
            grid-template-columns: 1fr;
            min-height: auto;
        }

        .main-visual {
            min-height: 400px;
        }

        .main-image-wrapper {
            width: 100%;
            height: 120%;
            top: 0;
        }

        .main-image-wrapper img {
            /*clip-path: polygon(*/
            /*    0 0, */
            /*    100% 0, */
            /*    100% 75%, */
            /*    0 70%*/
            /*);*/
            mask-image: linear-gradient(to bottom, 
                rgba(0,0,0,1) 0%, 
                rgba(0,0,0,1) 55%, 
                rgba(0,0,0,0.7) 70%, 
                rgba(0,0,0,0.3) 85%, 
                rgba(0,0,0,0) 100%);
            -webkit-mask-image: linear-gradient(to bottom, 
                rgba(0,0,0,1) 0%, 
                rgba(0,0,0,1) 55%, 
                rgba(0,0,0,0.7) 70%, 
                rgba(0,0,0,0.3) 85%, 
                rgba(0,0,0,0) 100%);
        }

        .main-image-wrapper::before {
            background: linear-gradient(to bottom, 
                rgba(255, 255, 255, 0) 0%, 
                rgba(255, 255, 255, 0.3) 50%, 
                rgba(255, 255, 255, 0.8) 75%,
                rgba(255, 255, 255, 1) 100%);
        }

        .main-text {
            padding: 60px 40px;
        }

        .main-text h2 {
            font-size: 2.8rem;
        }

        .main-text p {
            font-size: 1rem;
        }
    }

    @media (max-width: 768px) {
        .main-visual {
            min-height: 350px;
        }

        .main-text {
            padding: 50px 30px;
        }

        .main-text h2 {
            font-size: 2.3rem;
        }

        .main-text p {
            font-size: 0.95rem;
        }

        .main-features {
            gap: 15px;
            margin-top: 30px;
        }

        .main-feature {
            font-size: 14px;
            padding: 12px 20px;
        }

        .banner-nav-button {
            width: 45px;
            height: 45px;
        }
    }

    @media (max-width: 576px) {
        .main-visual {
            min-height: 300px;
        }

        .main-text {
            padding: 40px 20px;
        }

        .main-text h2 {
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .main-text p {
            font-size: 0.9rem;
            margin-bottom: 15px;
        }

        .main-features {
            gap: 12px;
            margin-top: 25px;
        }

        .main-feature {
            font-size: 13px;
            padding: 10px 18px;
        }

        .banner-slider-nav {
            bottom: 20px;
            gap: 12px;
        }

        .banner-nav-button {
            width: 40px;
            height: 40px;
        }
    }

    /* Fade-in Animation */
    .fade-in {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }



/** ==============   BANNER SUB   ==================== **/

    .breadcumb-wrapper:before {
        content: "";
        position: absolute;
        inset: 0;
        background: none !important;
        z-index: -1;
    }

/** ==============   BANTUAN/FAQ   ==================== **/


    /* Remove any existing border styles */
    .faq-page-section * {
        border: none !important;
    }
    
    /* Custom styling to match template */
    .accordion-box.style-two {
        display: none; /* Hide the old accordion */
    }
    
    /* Style for the new template accordion */
    .accordion-card.style2 {
        background: #fff;
        border-radius: 10px;
        margin-bottom: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee !important;
        overflow: hidden;
    }
    
    .accordion-card.style2 .accordion-header {
        padding: 0;
        border: none;
    }
    
    .accordion-card.style2 .accordion-button {
        background: #fff;
        color: #333;
        font-weight: 600;
        font-size: 18px;
        padding: 25px 30px;
        width: 100%;
        text-align: left;
        border: none;
        position: relative;
        display: flex;
        align-items: center;
        gap: 15px;
        transition: all 0.3s ease;
    }
    
    /* Mobile responsive adjustments for accordion */
    @media (max-width: 767.98px) {
        .accordion-card.style2 .accordion-button {
            padding: 20px 15px;
            font-size: 16px;
            gap: 10px;
        }
        
        .accordion-card.style2 .accordion-button span {
            min-width: 25px;
        }
        
        .accordion-card.style2 .accordion-button::after {
            right: 15px;
            font-size: 14px;
        }
        
        .accordion-card.style2 .accordion-body {
            padding: 20px 15px 0px 15px;
        }
        
        .accordion-card.style2 .faq-text {
            font-size: 15px;
            line-height: 1.6;
            text-align: justify;
        }
    }
    
    .accordion-card.style2 .accordion-button:not(.collapsed) {
        background: #f9f9f9;
        color: #374868;
    }
    
    .accordion-card.style2 .accordion-button span {
        color: #374868;
        font-weight: 700;
        min-width: 30px;
    }
    
    .accordion-card.style2 .accordion-button::after {
        content: "\f078";
        font-family: "Font Awesome 6 Pro";
        font-weight: 900;
        position: absolute;
        right: 30px;
        background-image: none;
        transform: rotate(0deg);
        transition: transform 0.3s ease;
        color: #374868;
    }
    
    .accordion-card.style2 .accordion-button:not(.collapsed)::after {
        transform: rotate(180deg);
        color: #374868;
    }
    
    .accordion-card.style2 .accordion-collapse {
        border: none;
    }
    
    .accordion-card.style2 .accordion-body {
        padding: 25px 30px 0px 30px;
        /* background: #f9f9f9; */
    }
    
    .accordion-card.style2 .faq-text {
        color: #666;
        line-height: 1.8;
        margin: 0;
        font-size: 16px;
        text-align: justify;
    }
    
    /* Load More button styling */
    .load-more-btn {
        background: #374868;
        color: white;
        border: none;
        padding: 15px 40px;
        border-radius: 5px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    /* Mobile responsive for load more button */
    @media (max-width: 767.98px) {
        .load-more-btn {
            padding: 12px 30px;
            font-size: 15px;
        }
    }
    
    .load-more-btn:hover {
        background: #b3895b;
        color: white;
        transform: translateY(-2px);
    }
    
    /* Hide items beyond first 10 */
    .accordion-card.style2.d-none {
        display: none;
    }
    
    /* Consistent spacing for all screen sizes */
    .row.flex-row-reverse {
        --bs-gutter-x: 2rem; /* Consistent horizontal spacing */
    }
    
    /* Mobile responsive - stack columns */
    @media (max-width: 991.98px) {
        .row.flex-row-reverse {
            flex-direction: column-reverse !important; /* Stack on mobile */
            --bs-gutter-x: 1.5rem;
        }
        
        .row.flex-row-reverse > [class*="col-"] {
            width: 100%;
            max-width: 100%;
            flex: 0 0 100%;
        }
        
        .col-lg-8, .col-xl-8, .col-xxl-8,
        .col-lg-4, .col-xl-4, .col-xxl-4 {
            width: 100%;
            max-width: 100%;
            flex: 0 0 100%;
        }
        
        /* Adjust padding for mobile */
        #faq-sec {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }
        
        .auto-container {
            padding-left: 15px;
            padding-right: 15px;
        }
    }
    
    /* Tablet responsive (768px to 991px) */
    @media (min-width: 768px) and (max-width: 991.98px) {
        .row.flex-row-reverse {
            flex-direction: row-reverse !important;
            --bs-gutter-x: 1.5rem;
        }
        
        .col-lg-8 {
            max-width: 66.666667% !important;
            flex: 0 0 66.666667% !important;
        }
        
        .col-lg-4 {
            max-width: 33.333333% !important;
            flex: 0 0 33.333333% !important;
        }
    }
    
    /* Desktop and above (992px+) */
    @media (min-width: 992px) {
        .row.flex-row-reverse {
            flex-direction: row-reverse;
        }
        
        .col-lg-8 {
            max-width: 66.666667% !important;
            flex: 0 0 66.666667% !important;
        }
        
        .col-lg-4 {
            max-width: 33.333333% !important;
            flex: 0 0 33.333333% !important;
        }
    }
    
    /* Large desktop (1200px+) */
    @media (min-width: 1200px) {
        .col-xl-8 {
            max-width: 66.666667% !important;
            flex: 0 0 66.666667% !important;
        }
        
        .col-xl-4 {
            max-width: 33.333333% !important;
            flex: 0 0 33.333333% !important;
        }
    }
    
    /* Extra large desktop (1400px+) */
    @media (min-width: 1400px) {
        .col-xxl-8 {
            max-width: 66.666667% !important;
            flex: 0 0 66.666667% !important;
        }
        
        .col-xxl-4 {
            max-width: 33.333333% !important;
            flex: 0 0 33.333333% !important;
        }
    }
    
    .accordion-area.style2 {
        max-width: 1166px;
    }
    

/** ==============   DIRECTORY   ==================== **/

    .jpn-staff-directory-container {
        background-color: #ffffff;
        color: #333333;
        line-height: 1.6;
        width: 100%;
        max-width: calc(var(--main-container) + var(--container-gutters));
        margin: 0 auto;
        padding: 20px;
    }
    
    .jpn-directory-title {
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .jpn-directory-subtitle {
        font-size: 18px;
        opacity: 0.9;
        font-style: italic;
    }
    
    /* Search and filter section */
    .jpn-filter-section {
        background-color: #f8fafc;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 25px;
        border: 1px solid #e5e7eb;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        align-items: center;
    }
    
    .jpn-search-box {
        flex: 1;
        min-width: 250px;
        position: relative;
    }
    
    .jpn-search-input {
        width: 100%;
        padding: 12px 15px 12px 40px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        font-size: 15px;
        transition: all 0.3s;
    }
    
    .jpn-search-input:focus {
        border-color: #1e3a8a;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
        outline: none;
    }
    
    .jpn-search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #6b7280;
    }
    
    .jpn-filter-select {
        padding: 12px 15px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        font-size: 15px;
        background-color: white;
        color: #333;
        min-width: 200px;
        cursor: pointer;
    }
    
    .jpn-filter-select:focus {
        border-color: #1e3a8a;
        outline: none;
    }
    
    /* Staff table - FIXED FOR MOBILE SCROLLING */
    .jpn-staff-table-container {
        overflow-x: auto;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
        margin-bottom: 30px;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        touch-action: pan-y; /* Enable both horizontal and vertical panning */
    }
    
    /* Scrollbar styling for better UX */
    .jpn-staff-table-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .jpn-staff-table-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .jpn-staff-table-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .jpn-staff-table-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    .jpn-staff-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 800px;
    }
    
    .jpn-staff-table thead {
        background: #0c1d69 /*linear-gradient(to right, #1e3a8a, #3b82f6)*/;
    }
    
    .jpn-staff-table th {
        color: white;
        padding: 18px 15px;
        text-align: left;
        font-size: 16px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .jpn-staff-table th:last-child {
        border-right: none;
    }
    
    .jpn-staff-table tbody tr {
        border-bottom: 1px solid #e5e7eb;
        transition: all 0.3s;
    }
    
    .jpn-staff-table tbody tr:hover {
        background-color: #f0f9ff;
    }
    
    .jpn-staff-table td {
        padding: 16px 15px;
        font-size: 15px;
        color: #444;
        vertical-align: top;
    }
    
    .jpn-staff-table tbody tr:nth-child(even) {
        background-color: #f8fafc;
    }
    
    .jpn-staff-table tbody tr:nth-child(even):hover {
        background-color: #f0f9ff;
    }
    
    /* Column specific styling */
    .jpn-col-bil {
        width: 60px;
        text-align: center;
        font-weight: bold;
        color: #1e3a8a;
    }
    
    .jpn-col-nama {
        width: 200px;
        font-weight: bold;
        color: #1e3a8a;
    }
    
    .jpn-col-bahagian {
        width: 180px;
    }
    
    .jpn-col-jawatan {
        width: 180px;
    }
    
    .jpn-col-gred {
        width: 80px;
        text-align: center;
        font-weight: bold;
        color: #1e3a8a;
    }
    
    .jpn-col-email {
        width: 200px;
    }
    
    .jpn-col-ext {
        width: 80px;
        text-align: center;
    }
    
    /* Email styling */
    .jpn-email-link {
        color: #1e3a8a;
        text-decoration: none;
        word-break: break-all;
    }
    
    .jpn-email-link:hover {
        color: #f59e0b;
        text-decoration: underline;
    }
    
    /* Department badges */
    .jpn-bahagian-badge {
        display: inline-block;
        background-color: #f0f7ff;
        color: #1e3a8a;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 13px;
        border: 1px solid #dbeafe;
        white-space: nowrap;
    }
    
    /* Ext badge */
    .jpn-ext-badge {
        display: inline-block;
        background-color: #fef3c7;
        color: #92400e;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: bold;
        border: 1px solid #fcd34d;
    }
    
    /* No results message */
    .jpn-no-results {
        text-align: center;
        padding: 50px 20px;
        color: #6b7280;
        font-size: 16px;
    }
    
    .jpn-no-results-icon {
        font-size: 48px;
        color: #d1d5db;
        margin-bottom: 15px;
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        .jpn-staff-directory-container {
            padding: 15px;
        }
        
        .jpn-directory-header {
            padding: 25px 20px;
        }
        
        .jpn-directory-title {
            font-size: 24px;
        }
        
        .jpn-directory-subtitle {
            font-size: 16px;
        }
        
        .jpn-filter-section {
            flex-direction: column;
            align-items: stretch;
        }
        
        .jpn-search-box,
        .jpn-filter-select {
            min-width: 100%;
        }
        
        .jpn-staff-table th,
        .jpn-staff-table td {
            padding: 12px 10px;
            font-size: 14px;
        }
        
        /* Better mobile scrolling */
        .jpn-staff-table {
            min-width: 700px; /* Reduced from 800px for better mobile experience */
        }
        
        .jpn-bahagian-badge,
        .jpn-ext-badge {
            font-size: 12px;
            padding: 3px 8px;
        }
    }
    
    @media (max-width: 480px) {
        .jpn-staff-directory-container {
            padding: 10px;
        }
        
        .jpn-directory-title {
            font-size: 22px;
        }
        
        .jpn-directory-subtitle {
            font-size: 14px;
        }
        
        .jpn-staff-table th,
        .jpn-staff-table td {
            padding: 10px 8px;
            font-size: 13px;
        }
        
        .jpn-staff-table {
            min-width: 650px; /* Further reduced for very small screens */
        }
        
        .jpn-bahagian-badge,
        .jpn-ext-badge {
            font-size: 11px;
            padding: 2px 6px;
        }
        
        .jpn-col-bil {
            width: 50px;
        }
        
        .jpn-col-nama {
            width: 150px;
        }
        
        .jpn-col-bahagian {
            width: 140px;
        }
        
        .jpn-col-jawatan {
            width: 140px;
        }
    }
    
   /* Center the title section */
    .jpn-staff-directory-container section {
        text-align: center;
    }
    
    .jpn-staff-directory-container .title-area {
        display: inline-block;
    }


/** ==============   BORANG/DOCUMENTS   ==================== **/

    .surah-list:before {
        border-radius: 8px 8px 8px 8px;
        width: 100%;
    }
    
    .surah-list {
        margin-left: 5px;
    }
    
    .surah-list .box-content {
        padding: 36px 0px 36px 0px;
    }
    
    .surah-list {
        margin-left: 5px;
        padding: 4px 55px;
    }
    
    /* Search Box Inline */
    .search-box-inline {
        display: flex;
        background: white;
        border-radius: 50px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        max-width: 350px;
    }
    
    .search-box-inline input {
        flex: 1;
        border: none;
        padding: 12px 20px;
        font-size: 14px;
        outline: none;
    }
    
    .search-box-inline input::placeholder {
        color: #9ca3af;
    }
    
    .search-box-inline button {
        background: var(--theme-color);
        color: white;
        border: none;
        padding: 12px 24px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .search-box-inline button:hover {
        background: var(--theme-color2);
    }
    
    /* Surah List - Keep Original Styles */
    .surah-list {
        position: relative;
    }
    
    .surah-list .text {
        display: block;
        margin-bottom: 12px;
    }
    
    /* Keep original action-btn styling from theme */
    .surah-list .action-btn {
        margin-bottom: 5px;
    }
    
    /* Preview Box */
    .img-box3 {
        position: sticky;
        top: 100px;
    }
    
    .default-preview {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 400px;
        text-align: center;
        padding: 40px 20px;
    }
    
    .default-preview i {
        font-size: 80px;
        color: #e5e7eb;
        margin-bottom: 20px;
    }
    
    .default-preview h3 {
        font-size: 22px;
        color: #374151;
        margin-bottom: 10px;
    }
    
    .default-preview p {
        font-size: 14px;
        color: #9ca3af;
    }
    
    #pdfPreview iframe {
        width: 100%;
        height: 600px;
        border: none;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 40px 20px;
        background: white;
        border-radius: 12px;
    }
    
    .empty-state p {
        color: #9ca3af;
        font-size: 16px;
    }
    
    /* Responsive */
    @media (max-width: 1199px) {
        .img-box3 {
            position: relative;
            top: 0;
            margin-bottom: 30px;
        }
    }



/** ==============   ENAKMEN   ==================== **/

    .bg-theme {
        background-color: white !important;
    }
    
    .enakmen-item {
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .enakmen-item:hover {
        transform: translateY(-5px);
    }
    
    .enakmen-item.active {
        border: 2px solid var(--theme-color);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .enakmen-item .box-img {
        margin-bottom: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .enakmen-item .box-img img {
        width: 50%;
        height: auto;
        border-radius: 8px;
    }
    
    .enakmen-item .box-title {
        font-size: 1rem;
        margin: 0;
        padding-top: 15px;
        color: #333;
    }
    
    .enakmen-item .box-title a {
        text-decoration: none;
        color: inherit;
    }
    
    #enakmen-preview-container {
        position: sticky;
        top: 100px;
        height: fit-content;
    }
    
    #enakmen-fliphtml5-container h4 {
        font-size: 1.3rem;
    }
    
    #enakmen-fliphtml5-container p {
        font-size: 0.95rem;
    }
    
    @media (max-width: 1399px) {
        .rsvp-frame {
            padding: 53px;
        }
    }
    
    @media (min-width: 1200px) {
        .row.gy-4.gx-40 {
            display: flex;
            align-items: flex-start;
        }
    
        .row.gy-4.gx-40 > .col-xl-3:first-child {
            max-height: calc(200vh - 200px);
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 15px;
        }
    
        .row.gy-4.gx-40 > .col-xl-3:first-child::-webkit-scrollbar {
            width: 8px;
        }
    
        .row.gy-4.gx-40 > .col-xl-3:first-child::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }
    
        .row.gy-4.gx-40 > .col-xl-3:first-child::-webkit-scrollbar-thumb {
            background: var(--theme-color);
            border-radius: 10px;
        }
    
        .row.gy-4.gx-40 > .col-xl-3:first-child::-webkit-scrollbar-thumb:hover {
            background: var(--theme-color2);
        }
    }


/** ==============   FOOTERLINKS   ==================== **/


    .donation-area5 .donation-image .img1:before {
        display: none !important;
    }

    .donation-area5 {
        position: relative;
        z-index: 5;
        margin-top: 0px;      
        margin-bottom: -255px; 
    }
    
    .donation-area3 {
        padding: 60px 40px;
        border-radius: 30px;
        box-shadow: 0 25px 60px rgba(0,0,0,0.15);
        position: relative;
        z-index: 10;
    }
    
    .footer-layout3,
    section {
        position: relative;
        z-index: 1;
    }
    
    /* Fix alignment for LEFT column */
    .donation-area5 .col-xl-4:first-child .donation-image {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    
    /* Make both images fully responsive */
    .donation-image img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* Fix layout on mobile */
    @media (max-width: 991px) {
        .donation-image {
            max-width: 100% !important;
            margin: 0 auto !important;
        }
    }

    
    /* Desktop & Large screens */
    .about-layout-desktop {
        display: flex;
        gap: 20px;
        align-items: start;
    }
    
    .about-logo {
        flex-shrink: 0;
    }
    
    .about-logo img {
        width: 120px !important;
        height: auto;
    }
    
    .footer-contact-info {
        flex: 1;
        min-width: 0; /* Prevent overflow */
    }
    
    .contact-item {
        margin-bottom: 8px;
        font-size: 13px;
        word-wrap: break-word;
        gap: 3px;
    }
    
    .contact-item i {
        margin-right: 8px;
        color: #f9a825;
        font-size: 14px;
    }
    
    .contact-item a {
        color: inherit;
        text-decoration: none;
    }
    
    .contact-item a:hover {
        color: #f9a825;
    }
    
    /* Tablet (768px - 1199px) */
    @media (max-width: 1199px) and (min-width: 768px) {
        .about-layout-desktop {
            flex-direction: column;
            gap: 15px;
        }
        
        .about-logo img {
            width: 100px !important;
            margin: 0 auto;
            display: block;
        }
        
        .footer-contact-info {
            text-align: left;
        }
        
        .contact-item {
            font-size: 12px;
        }
    }
    
    /* Mobile (below 768px) */
    @media (max-width: 767px) {
        .about-layout-desktop {
            flex-direction: column;
            gap: 15px;
            text-align: center;
        }
        
        .about-logo img {
            width: 90px !important;
            margin: 0 auto;
            display: block;
        }
        
        .footer-contact-info {
            text-align: left;
        }
        
        .contact-item {
            font-size: 12px;
            display: block;
        }
        
        .contact-address {
            display: flex;
            align-items: start;
        }
    }
    
    /* Extra small screens */
    @media (max-width: 480px) {
        .about-logo img {
            width: 80px !important;
        }
        
        .contact-item {
            font-size: 11px;
        }
    }



/** ==============   MEDIA   ==================== **/

    .article-gallery-carousel {
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }
    
    .article-gallery-carousel .carousel-inner {
        position: relative;
        width: 100%;
    }
    
    .article-gallery-carousel .carousel-item {
        display: none;
        position: relative;
        transition: transform 0.6s ease-in-out;
    }
    
    .article-gallery-carousel .carousel-item.active {
        display: block;
    }
    
    .article-gallery-carousel .carousel-item img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .carousel-control {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgb(0 0 0 / 0%);
        color: #ffd54f;
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        z-index: 10;
        font-size: 25px;
        transition: background 0.3s;
        border-radius: 4px;
    }
    
    /*.carousel-control:hover {*/
    /*    background: rgba(0, 0, 0, 0.8);*/
    /*}*/
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-indicators {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 10;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: 2px solid white;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        padding: 0;
        transition: background 0.3s;
    }
    
    .carousel-indicators button.active {
        background: white;
    }
    
    .carousel-image-counter {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 12px;
        border-radius: 15px;
        font-size: 12px;
        z-index: 10;
    }
    
    .carousel-image-counter i {
        margin-right: 5px;
    }
    
    .fullscreen-icon {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 14px;
        z-index: 10;
        cursor: pointer;
        transition: background 0.3s;
    }
    
    .fullscreen-icon:hover {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .article-thumbnails {
        display: flex;
        gap: 10px;
        margin-top: 15px;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .article-thumb {
        flex: 0 0 100px;
        height: 80px;
        cursor: pointer;
        border: 3px solid transparent;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s;
        position: relative;
    }
    
    .article-thumb:hover {
        border-color: #007bff;
        transform: translateY(-3px);
    }
    
    .article-thumb.active {
        border-color: #007bff;
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    }
    
    .article-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Lightbox Styles */
    .lightbox-modal {
        display: none;
        position: fixed;
        z-index: 99999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        overflow: hidden;
    }
    
    .lightbox-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .lightbox-content {
        position: relative;
        max-width: 90%;
        max-height: 90%;
        margin: auto;
        z-index: 100000;
    }
    
    .lightbox-content img {
        width: 100%;
        height: auto;
        max-height: 90vh;
        object-fit: contain;
        display: block;
        pointer-events: none;
    }
    
    .lightbox-close {
        position: fixed;
        top: 20px;
        right: 35px;
        color: #fff;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        z-index: 100001;
        background: rgba(0, 0, 0, 0.5);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        transition: background 0.3s;
        border: none;
    }
    
    .lightbox-close:hover {
        background: rgba(255, 0, 0, 0.8);
    }
    
    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        color: white;
        font-size: 30px;
        padding: 15px 20px;
        cursor: pointer;
        background: rgba(0, 0, 0, 0.5);
        border: none;
        border-radius: 4px;
        transition: background 0.3s;
        z-index: 100001;
    }
    
    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-counter {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        background: rgba(0, 0, 0, 0.7);
        padding: 8px 20px;
        border-radius: 20px;
        font-size: 14px;
        z-index: 100001;
    }
    
    .lightbox-title {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        background: rgba(0, 0, 0, 0.7);
        padding: 10px 25px;
        border-radius: 5px;
        font-size: 16px;
        max-width: 80%;
        text-align: center;
        z-index: 100001;
    }

    .blog-box.style2 {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .blog-box.style2 .blog-img {
        height: 350px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
    }
    
    .blog-box.style2 .blog-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .blog-box.style2 .blog-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .blog-box.style2 .blog-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .blog-box.style2 .box-title {
        flex: 1;
        margin-bottom: 20px;
    }
    
    /* Ensure swiper slides are equal height */
    #mediaSlider3 .swiper-slide {
        height: auto;
    }

/** ==============   PAUTAN PANTAS   ==================== **/

    .brand-card {
        height: 150px; /* same height */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: #f5f5f5;
        border-radius: 8px;
    }
    .brand-img {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .brand-img a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    .brand-img img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain; 
    }
    
    /* Background positioning styles */
    .section-background {
        background-image: url('/../../cdn/Background/4.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: bottom center; /* Change this value */
    }


/** ==============   RESOURCES   ==================== **/


    .widget_title:before {
        left: 100px;
        width: 136px;
    }


    /* Make tabs match the box width and styling */
    #categoryTabs {
        border-bottom: 2px solid #e5e7eb;
        display: flex;
        flex-wrap: wrap;
    }
    
    #categoryTabs .nav-item {
        flex: 1 1 auto;
        text-align: center;
    }
    
    #categoryTabs .nav-link {
        border: none;
        border-bottom: 3px solid transparent;
        color: #6b7280;
        font-weight: 500;
        padding: 12px 20px;
        transition: all 0.3s ease;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    #categoryTabs .nav-link:hover {
        border-bottom-color: #d1d5db;
        color: #111827;
    }
    
    #categoryTabs .nav-link.active {
        border-bottom-color: #3b82f6;
        color: #3b82f6;
        background-color: transparent;
    }
    
    .tab-content {
        padding-top: 30px;
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        #categoryTabs .nav-item {
            flex: 1 1 100%;
        }
    }



/** ==============   PENGUMUMAN/TESTIMONIALS   ==================== **/

    .cta-area:before, .cta-area:after {
        background-image: url(../../../../cdn/Background/Homepage_1v2.png);
        background-position: center -595px;
        background-color: #ffffff;
    }
    
    /* Small screen laptops + small PCs */
    @media only screen and (min-width: 1024px) and (max-width: 1920px) {
        .cta-area:before,
        .cta-area:after {
            background-position: center -503px !important; 
        }
    }
    
    /* Custom styles for side navigation arrows */
    .testimonial-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        gap: 20px;
        max-width: 100%;
    }
    
    .slider-arrow-side {
        flex-shrink: 0;
        width: 70px;
        height: 70px;
        background: #4a5a7a;
        border: none;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 999 !important;
        position: relative;
    }
    
    .slider-arrow-side:hover {
        background: #5a6a8a;
        transform: scale(1.05);
    }
    
    .slider-arrow-side:active {
        transform: scale(0.95);
    }
    
    .slider-arrow-side i {
        font-size: 28px;
        color: white;
        font-weight: 600;
        pointer-events: none;
    }
    
    .slider-content-wrapper {
        flex: 1;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }
    
    /* Fix untuk sama size kotak putih */
    .testi-box {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .swiper-slide {
        height: auto;
    }
    
    .testiSlide2 .swiper-wrapper {
        align-items: stretch;
    }
    
    .testi-box .box-text {
        flex: 1;
    }
    
    /* Ensure swiper doesn't overflow */
    #testiSlide2 {
        overflow: visible !important;
    }
    
    /* Hide arrows on mobile */
    @media only screen and (max-width: 991px) {
        .slider-arrow-side {
            display: none;
        }
        
        .testimonial-wrapper {
            gap: 0;
        }
    }

    .team-box.style2:hover:before {
        background-image: url (../assets/img/shape/team-shape-hover2.png);
        background-color: #ffd44f;
        color: black;
    }
        
    .team-box.style2:hover .team-desig {
        color: black;
    }
    
    .team-box.style2:hover .box-title {
        color: black;
    }


/** ==============   WAKTU SOLAT   ==================== **/

    .prayer-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 1rem;
    }
    
    .prayer-meta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        font-size: 1.1rem;
        color: #666;
    }
    
    .prayer-meta .lokasi {
        font-weight: 600;
        color: #667eea;
    }
    
    .prayer-meta .separator {
        color: #ddd;
    }
    
    .prayer-meta .tarikh {
        color: #555;
    }
    
    /* Pillar Box Enhanced */
    .pillar-box {
        background: white;
        border-radius: 16px;
        padding: 30px 20px;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
    }
    
    .pillar-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .pillar-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    }
    
    .pillar-box:hover::before {
        opacity: 1;
    }
    
    /* Active State - Simple highlight only */
    .pillar-box.active {
        border-color: #667eea;
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
        transform: scale(1.05);
    }
    
    .pillar-box.active::before {
        opacity: 1;
    }
    
    .pillar-box.active::after {
        content: '✓ Waktu Semasa';
        position: absolute;
        top: 10px;
        right: 10px;
        background: #667eea;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        color: white;
    }
    
    /* Box Icon */
    .box-icon {
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .box-icon img {
        width: 50px;
        height: 50px;
        transition: transform 0.3s ease;
    }
    
    .pillar-box:hover .box-icon img {
        transform: scale(1.1) rotate(10deg);
    }
    
    .pillar-box.active .box-icon img {
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }
    
    /* Box Title */
    .box-title {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: #2c3e50;
    }
    
    .box-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .box-title a:hover {
        color: #667eea;
    }
    
    /* Time Display */
    .titme {
        display: block;
        font-size: 2rem;
        font-weight: 800;
        color: #667eea;
        margin: 15px 0;
        font-family: 'Arial', sans-serif;
        letter-spacing: 1px;
    }
    
    /* Box Text */
    .box-text {
        font-size: 0.9rem;
        color: #888;
        margin: 0;
    }
    
    /* Loading State */
    .loading-state {
        opacity: 0.6;
        pointer-events: none;
    }
    
    .loading-state .box-icon img {
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .prayer-title {
            font-size: 1.8rem;
        }
        
        .prayer-meta {
            flex-direction: column;
            gap: 8px;
        }
        
        .prayer-meta .separator {
            display: none;
        }
        
        .pillar-box {
            padding: 25px 15px;
        }
        
        .titme {
            font-size: 1.5rem;
        }
    }
    
    /* Swiper Customization */
    .pillarSlide2 {
        padding: 20px 0;
    }
    
    .pillarSlide2 .swiper-slide {
        height: auto;
    }
    
