﻿/* Base Typography & Layout */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
    background-color: #e0f2fe; /* Light blue fallback */
    overflow-x: hidden;
    position: relative;
}

.global-wave-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.global-waves {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


h1, h2, h3, h4, h5 {
    font-weight: 600;
}

/* Navbar Styling (White Background, Black Text) */
.navbar {
    background: #ffffff;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.custom-navbar {
    background-color: #ffffff !important;
    color: #212529;
    padding: 6px;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: #212529 !important;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: #0d6efd !important;
    }

/* Dropdown submenu */
.dropdown-submenu .dropdown-menu {
    left: 100%;
    top: 0;
    margin-top: 0;
}

/* Make submenu show on mobile click */
.dropdown-menu.show {
    display: block !important;
}

/* Responsive submenu for small screens */
@media (max-width: 991px) {
    .dropdown-submenu .dropdown-menu {
        position: static;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    min-width: 200px;
}

.dropdown-item {
    color: #212529;
    padding: 0.5rem 1rem;
    transition: background 0.2s;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #0d6efd;
    }

/* Buttons */
.btn {
    border-radius: 0.4rem;
    font-weight: 500;
}

/* Cards */
.card {
    /*border: none;
    border-radius: 0.75rem;*/
    border-radius: 1rem; /* bigger rounding */
    overflow: hidden; /* ensures images follow the same curve */
}

.card-header {
    font-weight: 600;
    font-size: 1.05rem;
}

.custom-card {
    background-color: #f9fafb;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

    .custom-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

.card-top-bar {
    height: 5px;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    background: linear-gradient(90deg, #3b82f6, #4f46e5);
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1e3a8a;
}

.card-text {
    font-size: 0.95rem;
    color: #374151;
    text-align: justify;
}

.text-justify {
    text-align: justify;
}
/* Footer */
footer {
    background-color: #003366;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

/* Marquee Scroll Box */
.scroll-marquee {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border-radius: 0.5rem;
}

.marquee-list {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
    animation: scrollUp 20s linear infinite;
}

    .marquee-list li {
        padding: 6px 0;
        font-size: 0.95rem;
        border-bottom: 1px solid #f1f1f1;
    }

.scroll-marquee:hover .marquee-list {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Utility */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.bg-gradient-primary {
    background: #fff;
    color: white;
}

/* Responsive Enhancements */

/* Fix carousel image height on small devices */
@media (max-width: 768px) {
    .carousel-item img {
        height: 250px !important;
        object-fit: cover;
    }
}

/* Navbar brand logo for all devices */
.navbar-brand img.school-logo {
    height: 70px; /* default height for desktop */
    width: auto; /* maintain aspect ratio */
    transition: all 0.3s ease-in-out; /* smooth resizing */
}

/* Smaller logo on mobile devices */
@media (max-width: 576px) {
    .navbar-brand img.school-logo {
        height: 35px; /* smaller height for mobile */
        max-width: 80%; /* ensure it doesn't overflow */
    }
}
section {
    border-radius: 1rem; /* 16px rounded corners */
    overflow: hidden; /* ensures child content also follows the rounding */
    margin-top: 2rem;
    margin-bottom: 2rem
}

/* Carousel Container */
.modern-carousel {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    margin-top: 2rem;
}

/* Banner Images */
.banner-img {
    max-height: 400px;  /*earlier it was height:500px*/
    object-fit: cover;
    transition: transform 0.5s ease;
}

    .banner-img:hover {
        transform: scale(1.02);
    }

/* Overlay for text contrast (optional) */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
    pointer-events: none;
}

/* Custom Arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 70%;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}

/* Adjust arrow background hover */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0,0,0,0.2);
    border-radius: 50%;
    transition: background 0.3s ease;
}

/* Adjust text alignment in leadership cards on small devices */
@media (max-width: 768px) {
    #leadership .card-body p.card-text {
        text-align: center !important;
    }
}

/* Adjust hero section button spacing */
@media (max-width: 768px) {
    #hero-combined .btn {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Align vision/mission/objectives text properly on smaller screens */
@media (max-width: 768px) {
    .custom-card .card-text {
        text-align: center !important;
    }
}

/* Footer text scaling */
@media (max-width: 576px) {
    footer .container {
        font-size: 0.85rem;
    }
}

.org-image-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

    .org-image-wrapper img {
        max-width: 100%;
        height: auto;
        border: 1px solid #dee2e6;
        background-color: #fff;
    }

.fixed-width-table {
    table-layout: fixed;
    width: 100%;
}

    .fixed-width-table th,
    .fixed-width-table td {
        word-wrap: break-word;
    }

/* --- Dock Scroll Container --- */
.dock-gallery {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 1rem;
    touch-action: pan-x;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

    .dock-gallery::-webkit-scrollbar {
        display: none;
    }

.dock-item {
    position: relative;
    overflow: visible;
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
    padding-bottom: 2rem; /* Ensure room for download button */
}

.dock-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
    -webkit-user-drag: none;
    user-select: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Zoom on hover — Desktop only */
@media (min-width: 768px) {
    .dock-gallery {
        overflow: visible;
    }

    .dock-item {
        z-index: 1;
    }

        .dock-item:hover {
            z-index: 10;
        }

            .dock-item:hover .dock-img {
                transform: scale(1.1);
                transform-origin: center bottom;
            }
}

/* Disable zoom on mobile */
@media (max-width: 767.98px) {
    .dock-item:hover .dock-img {
        transform: none !important;
    }
}

/* Dragging Cursor */
.dock-gallery.dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
    user-select: none;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .scroll-btn.left {
        left: -10px;
    }

    .scroll-btn.right {
        right: -10px;
    }

    .scroll-btn:hover {
        background: #f1f1f1;
    }

/* Download link below image */
.download-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #0d6efd;
    margin-top: 0.4rem;
    text-decoration: none;
}

    .download-link:hover {
        text-decoration: underline;
    }


.gallery-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover; /* ensures crop without distortion */
    border-radius: 8px;
    cursor: pointer;
}

/* Enable dropdown-submenus */
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    position: absolute;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu {
    position: relative;
}

.admin-card {
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .admin-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.1);
    }

.icon-wrapper {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .card-title {
        font-size: 0.9rem;
    }

    .small {
        display: none; /* hides text on very small screens for cleaner look */
    }
}

.footer-school {
    position: fixed; /* Stick to viewport */
    left: 0;
    bottom: 0; /* Align bottom edge */
    width: 100%; /* Full width */
    background-color: #eaf3f8;
    text-align: center;
    padding: 0.5rem 0;
    overflow: hidden;
    color: #000;
    z-index: 1000; /* Ensure it’s on top of content */
}

.animated-bus {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px; /* Bus size */
    animation: drive 12s linear infinite;
}

@keyframes drive {
    0% {
        left: -60px; /* Fully off-screen left */
    }

    100% {
        left: 100%; /* Fully off-screen right */
    }
}

.footer-text {
    position: relative;
    z-index: 1; /* Keeps text visible over the bus */
    font-size: 12px;
}

.privacy-link {
    color: #0056b3;
    text-decoration: underline;
    margin-left: 0.5rem;
}

h1.mb-4 {
    font-size: 2rem; /* Bigger, but not too big */
    font-weight: 700; /* Bold for emphasis */
    color: #0d6efd; /* Bootstrap primary blue */
    display: inline-block;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid #0d6efd; /* Underline accent */
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    h1.mb-4 {
        font-size: 2.5rem;
    }
}


/* Heading style */
.contact-heading {
    font-size: 2.2rem;
    font-weight: 800;
    position: relative;
    color: #0d3b66;
}

.accent-line {
    display: block;
    width: 50px;
    height: 4px;
    background: #0d6efd;
    border-radius: 2px;
    margin-top: 8px;
}

/* Glass effect cards */
.glass-effect {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .glass-effect:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

/* Icon styling */
.contact-icon {
    font-size: 1.5rem;
    color: #0d6efd;
    flex-shrink: 0;
}

/* Link hover effects */
.contact-link {
    color: #0d3b66;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .contact-link:hover {
        color: #0d6efd;
    }

/* Keep map responsive */
.map-card iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
}

/* Make it square on desktop */
@media (min-width: 992px) {
    .map-card {
        aspect-ratio: 1 / 1; /* Perfect square */
        height: auto; /* Height is handled by aspect-ratio */
    }
}

.social-bookmark {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #fbbf24; /* Matching your wave fill color */
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    z-index: 1050;
    font-family: 'Poppins', sans-serif;
    user-select: none;
}

    .social-bookmark ul {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 45px; /* Collapsed width */
        transition: width 0.3s ease;
        overflow: hidden;
    }

    .social-bookmark:hover ul {
        width: 180px; /* Expanded width */
    }

    .social-bookmark ul li {
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

        .social-bookmark ul li:last-child {
            border-bottom: none;
        }

        .social-bookmark ul li a {
            display: flex;
            align-items: center;
            color: #212529;
            text-decoration: none;
            padding: 12px 10px;
            white-space: nowrap;
            font-weight: 600;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

            .social-bookmark ul li a i {
                font-size: 20px;
                width: 25px;
                text-align: center;
                margin-right: 8px;
                color: #212529;
            }

            .social-bookmark ul li a:hover {
                background-color: #212529;
                color: #fbbf24;
            }

                .social-bookmark ul li a:hover i {
                    color: #fbbf24;
                }

#btnGoTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none; /* Hidden by default */
    background-color: #fbbf24; /* matching your theme */
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #212529;
    transition: background-color 0.3s ease;
    z-index: 1100;
}

    #btnGoTop:hover {
        background-color: #212529;
        color: #fbbf24;
    }

/* Highlight active accordion header */
.accordion-header.active > .accordion-button {
    background-color: #ffc107; /* Bootstrap warning color */
    color: #212529;
}
/*START OF MODERN CARD ON HOME PAGE*/
.modern-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Image wrapper to fix aspect ratio */
.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 65%; /* ~3:2 aspect ratio */
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps proportions while filling space */
    transition: transform 0.4s ease;
}

/* Hover zoom effect */
.modern-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* Card link styling */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.hero-text-bg {
    background-color: rgba(255, 255, 255, 0.8); /* white with 80% opacity */
    padding: 20px;
    border-radius: 10px;
}
/*END OF MODERN CARD ON HOME PAGE*/


.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* space between cards */
    padding-bottom: 50px; /* adds space at the bottom */
}

.alumni-card {
    perspective: 1000px;
    cursor: pointer;
}

.alumni-card-inner {
    position: relative;
    width: 100%;
    height: 320px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Flip on click (works everywhere) */
.alumni-card.flipped .alumni-card-inner {
    transform: rotateY(180deg);
}

/* Optional: flip on hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .alumni-card:hover .alumni-card-inner {
        transform: rotateY(180deg);
    }
}

.alumni-card-front,
.alumni-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #fff;
    padding: 20px;
}

    .alumni-card-front img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin-bottom: 15px;
    }

    .alumni-card-front h3 {
        margin: 5px 0;
        color: #333;
    }

    .alumni-card-front p {
        color: #777;
    }

.alumni-card-back {
    background: #004080;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-style: italic;
}

/* ---------------------------- */
/* Left Side Bookmark Container */
/* ---------------------------- */
#left-achievers-bookmark {
    position: fixed;
    top: 20%;
    left: 0;
    width: 40px; /* collapsed width */
    background: #004080;
    border-radius: 0 10px 10px 0;
    overflow: hidden;
    z-index: 9999;
    transition: width 0.3s;
    cursor: pointer;
    max-height: 60vh; /* prevents overlapping footer */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    /* ---------------------------- */
    /* Expand on Hover              */
    /* ---------------------------- */
    #left-achievers-bookmark:hover {
        width: 220px; /* expanded width */
    }

    /* Label */
    #left-achievers-bookmark .bookmark-label {
        color: #fff;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        text-align: center;
        font-weight: bold;
        padding: 10px 0;
        font-size: 0.85rem;
    }

    /* Content (Initially hidden) */
    #left-achievers-bookmark .bookmark-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        gap: 15px;
        opacity: 0;
        transition: opacity 0.3s;
        overflow-y: auto; /* scroll if content exceeds height */
    }

    /* Show content on hover */
    #left-achievers-bookmark:hover .bookmark-content {
        opacity: 1;
    }

    /* Achiever Cards */
    #left-achievers-bookmark .achiever {
        background: #fff;
        padding: 8px;
        border-radius: 8px;
        text-align: center;
        width: 180px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
        transition: transform 0.3s;
    }

        #left-achievers-bookmark .achiever:hover {
            transform: translateY(-3px);
        }

        /* Images */
        #left-achievers-bookmark .achiever img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 5px;
        }

        /* Text */
        #left-achievers-bookmark .achiever p {
            margin: 0;
            font-size: 0.7rem;
        }

        /* See More Button */
        #left-achievers-bookmark .achiever.see-more a {
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            gap: 3px;
        }

    /* Hide Scrollbar (Webkit) */
    #left-achievers-bookmark .bookmark-content::-webkit-scrollbar {
        width: 4px;
    }

    #left-achievers-bookmark .bookmark-content::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 2px;
    }

/* Responsive: hide on mobile */
@media (max-width: 768px) {
    #left-achievers-bookmark {
        display: none;
    }
}

/* ===============================
   Transfer Certificates Page CSS
   =============================== */

/* Table general */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

    .table th,
    .table td {
        vertical-align: middle;
        text-align: center;
        padding: 10px;
        border: 1px solid #dee2e6;
    }

    /* Table header */
    .table thead th {
        background-color: #0d47a1; /* Deep navy */
        color: #fff;
        font-weight: 600;
    }

/* Hover effect */
.table-hover tbody tr:hover {
    background-color: #f1f1f1;
}

/* Action buttons */
.btn-danger {
    background-color: #b71c1c;
    border: none;
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
}

    .btn-danger:hover {
        background-color: #880e0e;
    }

/* DataTables controls alignment */
#tcTable_length,
#tcTable_filter {
    margin: 5px 0;
}

/* Search input styling */
.dataTables_filter input {
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid #ccc;
    width: 220px;
    outline: none;
}

/* Pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 4px;
    padding: 4px 10px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #0d47a1 !important;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background: #0d47a1 !important;
        color: #fff !important;
        border: 1px solid #0d47a1;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    #tcTable_length,
    #tcTable_filter {
        width: 100%;
        text-align: center;
    }

    .dataTables_filter input {
        width: 100%;
        max-width: 280px;
        margin-top: 5px;
    }
}

.fixed-thumb {
    height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem; /* optional, for rounded look */
}

.leadership-img {
    width: 100%;
    height: 280px; /* default for mobile (<576px) */
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Small devices (≥576px, bigger phones) */
@media (min-width: 576px) {
    .leadership-img {
        height: 320px;
    }
}

/* Medium devices (≥768px, tablets) */
@media (min-width: 768px) {
    .leadership-img {
        height: 420px;
    }
}

/* Large devices (≥992px, desktops) */
@media (min-width: 992px) {
    .leadership-img {
        height: 540px;
    }
}
