/* UPDATED LAYOUT 70 / 30 */


.custom-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.left-panel {
    flex: 0 0 70%;
    max-width: 70%;
}

.right-panel {
    flex: 0 0 30%;
    max-width: 30%;
}

.new-badge {
    background: red;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}


/* ============================= */
/* ACCORDION */
/* ============================= */

.accordion-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.acc-item {
    border-bottom: 1px solid #eee;
}

.acc-header {
    display: flex;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    background: #f7f7f7;
    font-weight: 600;
    transition: 0.3s;
}

.acc-item.active .acc-header {
    background: #1b365d;
    color: #fff;
}

/* ACCORDION CONTENT */

.acc-content {
    height: 0;
    overflow: hidden;
    transition: height .4s ease;
    background: #fafafa;
}

/* PARAGRAPH JUSTIFIED */

.content-inner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

.acc-item.active .acc-content {
    max-height: 1000px;
}

.content-inner {
    display: flex;
    gap: 15px;
    padding: 20px;
    align-items: center;
}

.content-inner img {
    width: 120px;
    border-radius: 4px;
}


/* ============================= */
/* NOTICE / UPDATE BOX */
/* ============================= */

.updates-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 20px;
    height: 350px;
}

.sub-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}


/* ============================= */
/* TAB BUTTONS */
/* ============================= */

.updates-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #f3f3f3;
    cursor: pointer;
    font-weight: 600;
    transition: .3s;
}

.tab-btn.active {
    background: #1b365d;
    color: #fff;
}


/* ============================= */
/* TAB CONTENT */
/* ============================= */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* ============================= */
/* SCROLL AREA */
/* ============================= */

.scroll-wrapper {
    position: relative;
}

.scroll-box {
    height: 230px;
    overflow-y: auto;
    scroll-behavior: smooth;
}


/* ============================= */
/* SCROLLBAR */
/* ============================= */

.scroll-box::-webkit-scrollbar {
    width: 5px;
}

.scroll-box::-webkit-scrollbar-thumb {
    background: #1b365d;
    border-radius: 4px;
}

.scroll-box::-webkit-scrollbar-track {
    background: #eee;
}


/* ============================= */
/* PROGRESS BAR */
/* ============================= */

.scroll-progress {
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #eee;
}

.scroll-progress .bar {
    width: 100%;
    height: 0%;
    background: #1b365d;
}


/* ============================= */
/* LIST */
/* ============================= */

.scroll-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scroll-box li {
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
}

.scroll-box a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}


/* ============================= */
/* ICONS */
/* ============================= */

.icon {
    color: #1b365d;
    font-size: 14px;
}


/* ============================= */
/* DATE BADGE */
/* ============================= */

.date {
    background: #1b365d;
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    min-width: 45px;
    text-align: center;
}


/* ============================= */
/* VIEW MORE */
/* ============================= */

.view-more {
    text-align: right;
    margin-top: 10px;
}

.view-more a {
    font-size: 13px;
    font-weight: 600;
    color: #1b365d;
    text-decoration: none;
}

.view-more a:hover {
    text-decoration: underline;
}


/* ============================= */
/* MOBILE RESPONSIVE */
/* ============================= */

@media (max-width:992px) {

    .custom-layout {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        flex: 0 0 100%;
        max-width: 100%;
    }

}

/* LEFT PANEL */

.left-panel {
    flex: 0 0 70%;
    max-width: 70%;
}


/* ACCORDION BOX */

.accordion-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}


/* EACH TAB */

.acc-item {
    border-bottom: 1px solid #eee;
}


/* HEADER */

.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    background: #f7f7f7;
    font-weight: 600;
    transition: 0.3s;
}

.acc-header:hover {
    background: #eaeaea;
}


/* ACTIVE TAB */

.acc-item.active .acc-header {
    background: #1b365d;
    color: #fff;
}


/* ACCORDION CONTENT */

.acc-content {
    height: 0;
    overflow: hidden;
    transition: height .5s ease;
    background: #fafafa;
}

/* INNER CONTENT */

.content-inner {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

/* IMAGE */

.content-inner img {
    width: 120px;
    border-radius: 5px;
    object-fit: cover;
}

/* PARAGRAPH */

.content-inner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}


/* ======================================= */
/* MOBILE RESPONSIVE EDIT (ONLY 992px & DOWN) */
/* ======================================= */

@media (max-width:992px) {

    .custom-layout {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Hide the image in the about section on mobile */
    .content-inner img {
        display: none !important;
    }

    /* Remove flex gap/layout to let text fill the space */
    .content-inner {
        display: block;
        padding: 15px;
    }

    /* Ensure text remains justified */
    .content-inner p {
        text-align: justify;
        font-size: 14px;
        width: 100%;
    }

    /* Increase max-height so text isn't cut off when narrow */
    .acc-item.active .acc-content {
        max-height: 1200px;
        height: auto;
    }

    .acc-header {
        padding: 15px 20px;
    }
}


#about{
  background-image: url('../images/background/6938858_3387682.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 750px;
}

/* ======================================= */
/* ✅ MOBILE-ONLY REORDERING (991px & DOWN) */
/* ======================================= */

@media (max-width: 991px) {

    /* 1. Force the main container to stack vertically */
    .custom-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 1. Reduce the main section's top padding to allow the header to move up */
    .tca-about-section {
        padding-top: 10px !important;
        /* Tightens the space at the very start of the section */
    }

    /* 2. THE HEADING: Use negative margin to physically pull it UP */
    .section-header {
        order: 1 !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        /* Reduced space below header */
        margin-top: 0px !important;
        /* Increased negative margin to pull it closer to the hero/divider */
        position: relative !important;
        z-index: 5 !important;
    }

    /* 3. Adjust the heading text itself if needed */
    .section-header h2 {
        font-size: 22px !important;
        /* Slightly smaller to save vertical space */
        line-height: 1.2 !important;
        margin-bottom: 5px !important;
    }

    /* 3. THE LEFT PANEL (Contains Video and Text) */
    .left-panel {
        order: 2 !important;
        /* Positions this block after the heading */
        display: flex !important;
        flex-direction: column !important;
        /* Allows internal reordering */
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* --- REORDERING INSIDE THE LEFT PANEL --- */

    /* THE VIDEO ANIMATION (Moved to top of left panel) */
    .edu_intro_flex {
        display: flex !important;
        flex-direction: column !important;
        /* Stacks video and text */
        gap: 15px !important;
    }

    .edu_intro_video {
        order: 1 !important;
        /* Keeps video above text */
        flex: 0 0 auto !important;

        /* MINIMIZED SIZE */
        width: 180px !important;
        /* Further reduced from 260px */
        height: 160px !important;
        /* Explicitly reduced height */

        max-width: 100% !important;
        min-height: unset !important;
        margin: 0 auto 15px auto !important;
        /* Centered with a small gap below */

        /* Optional: Keeps the video crisp within the smaller box */
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .edu_intro_video video {
        width: 100%;
        height: 100% !important;
        object-fit: cover !important;
        /* Ensures animation fills the small square/rectangle */
        display: block;
    }

    /* THE TEXT PARAGRAPHS (Moved below video) */
    .edu_intro_text {
        order: 2 !important;
        /* Text comes second */
    }



    /* Target paragraphs inside the left panel to tighten vertical spacing */
    .edu_intro_text p,
    .edu_intro_footer p {
        margin-bottom: 8px !important;
        /* Reduced from 15px/20px */
    }

    /* Target the gap between the two separate text blocks */
    .edu_intro_footer {
        margin-top: -10px !important;
        /* Remove any top margin on the second block */
    }

    /* 4. THE RIGHT PANEL (Noticeboard) */
    .right-panel {
        order: 3 !important;
        /* Positions noticeboard at the very bottom */
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-top: 30px !important;
    }

    /* --- TEXT CLEANUP --- */
    .left-panel p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: justify !important;
        color: #ffffff !important;
    }

    /* 1. LOCK THE OUTER BOX SIZE */
    /* This ensures the white background doesn't jump or shrink */
    .updates-box {
        display: block !important;
        flex-direction: column !important;
        min-height: 400px !important;
        /* Forces the box to stay large */
        height: 400px !important;
        padding: 15px !important;
        justify-content: flex-start !important;
    }

    /* 2. LOCK THE INTERNAL SCROLL AREA */
    /* By giving both tabs the same fixed height, the box won't squeeze */
    .scroll-box {
        height: 260px !important;
        /* Fixed height for the list area */
        min-height: 240px !important;
        display: block !important;
        overflow-y: auto !important;
    }

    /* 3. PREVENT TAB CONTENT FROM COLLAPSING */
    .tab-content {
        display: none;
        /* Default hidden state */
        height: 100% !important;
        /* Fixed height for the content wrapper */
    }

    .tab-content.active {
        display: block !important;
        flex-direction: column !important;
    }



    /* 5. FIX LIST ITEM TEXT (Prevents horizontal squeezing) */
    .scroll-box li a {
        white-space: normal !important;
        /* Allows text to wrap if it's long */
        display: flex !important;
        align-items: flex-start !important;
        font-size: 13px !important;
    }

    /* 4. PUSH 'VIEW MORE' TO THE BOTTOM */
    /* This keeps the link at the exact same spot for both tabs */
    .view-more {
        margin-top: auto !important;
        padding-top: 10px !important;
    }


    /* 1. THE GRID CONTAINER */
    .trust-badges {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Force exact 50/50 split */
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 30px auto !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* 2. THE BADGE: Restoring Desktop Animation & Style */
    .badge {
        /* FIXED DIMENSIONS */
        width: 100% !important;
        min-height: 90px !important; 
        height: 90px !important;
        box-sizing: border-box !important;

        /* RE-APPLYING DESKTOP ANIMATION LOGIC */
        --c: #FF8C00 !important; /* Brand Orange */
        --g: 5px !important;    /* Gap for smaller box */
        --b: 3px !important;    /* Border thickness */
        
        padding: calc(var(--g) + var(--b)) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        position: relative !important;
        z-index: 1 !important;
        border-radius: 10px !important;
        cursor: pointer !important;

        /* THE ANIMATED BORDER SHORTHAND */
        --_c: #0000 0 25%, var(--c) 0 50%;
        --_g1: repeating-linear-gradient(90deg, var(--_c)) repeat-x;
        --_g2: repeating-linear-gradient(180deg, var(--_c)) repeat-y;
        
        background:
            var(--_g1) var(--_p, 25%) 0,
            var(--_g2) 0 var(--_p, 125%),
            var(--_g1) var(--_p, 125%) 100%,
            var(--_g2) 100% var(--_p, 25%),
            #ffffff !important; /* Solid White Interior */

        background-size: 200% var(--b), var(--b) 200%, 200% var(--b), var(--b) 200%, auto !important;
        background-origin: border-box !important;
        background-clip: padding-box, padding-box, padding-box, padding-box, border-box !important;
        
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.3s ease !important;
    }

    /* 3. TEXT STYLING */
    .badge strong {
        display: block !important;
        font-size: 13px !important;
        color: #0A1F36 !important; /* Navy Blue */
        margin-bottom: 3px !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
    }

    .badge span {
        display: block !important;
        font-size: 9px !important;
        color: #0A1F36 !important;
        line-height: 1.2 !important;
        font-weight: 400 !important;
    }

   /* 4. HOVER/TOUCH INTERACTION - FIXING THE BORDER CRAWL */
    .badge:hover, 
    .badge:active {
        /* This changes the percentage to move the background gradients */
        --_p: 75% !important; 
        
        /* Force the background positions to re-calculate using the new --_p */
        background-position: 
            var(--_p) 0, 
            0 var(--_p), 
            var(--_p) 100%, 
            100% var(--_p) !important;

        transform: translateY(-3px) !important;
        box-shadow: 0 10px 20px rgba(255, 140, 0, 0.2) !important;
    }

    #about{
  background-image: url('../images/background/6938858_3387682.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 1350px;
}
}




/* --- Hide Footer Intro on Mobile Only --- */
@media (max-width: 768px) {
    .edu_intro_footer {
        display: none !important;
    }
}


@media (max-width: 768px) {

  /* 🔥 REMOVE TOP GAP FROM SECTION ABOVE */
  .right-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 10px !important;   /* 👈 reduce gap */
    padding-top: 0 !important;
  }

  /* 🔥 REMOVE ROW SIDE-BY-SIDE ISSUE */
  .row {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 🔥 MAIN NOTICE BOX */
  .updates-box {
    width: 100% !important;
    margin-top: 0 !important;      /* 👈 remove extra gap */
    padding: 15px !important;
    border-radius: 10px;
  }

  /* 🔥 REMOVE GAP FROM TITLE AREA */
  .updates-box .head {
    margin-top: 0 !important;
    padding-top: 5px !important;
  }

  .updates-box .title {
    margin: 0 !important;
    font-size: 18px !important;
  }

  /* 🔥 FIX SCROLL AREA */
  .scroll-box {
    max-height: 250px !important;
    overflow-y: auto !important;
  }

  /* 🔥 FIX TABS */
  .updates-tabs {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }

  .tab-btn {
    flex: 1;
    font-size: 14px;
    padding: 8px;
  }

  /* 🔥 REMOVE EXTRA SPACE FROM PREVIOUS SECTION */
  .left-panel,
  .hero,
  .content,
  section {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
  }

}