/* Custom Font */
body {
    font-family: "Inter", sans-serif;
}

.parallax {
    position: relative;
    transform: translateY(0);
    transition: transform 0.1s linear;
}

.sdc-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .sdc-container {
        padding: 0 32px;
    }
}

@media screen and (max-width: 640px) {
    .sdc-container {
        padding: 0 16px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

th,
td {
    padding: 10px;
    text-align: left;
    border: none;
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

a:focus {
    outline: none !important;
}

.strategic-objectives {
    background-color: #1a1a1a;
    /* dark background */
    padding: 40px;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.strategic-objectives h2 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 16px;
    border-bottom: 3px solid #ad0000;
    display: inline-block;
    padding-bottom: 4px;
}

.custom-tick-list {
    list-style: none;
    /* remove default bullets */
    padding: 0;
    margin: 0;
    column-count: 2;
    /* two columns */
    column-gap: 40px;
    /* space between columns */
}

.custom-tick-list li {
    position: relative;
    padding-left: 30px;
    /* space for tick */
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.custom-tick-list li::before {
    font-family: "Font Awesome 5 Free";
    content: "\f058";
    color: #ad0000;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-10px) translateX(-10px);
    }

    75% {
        transform: translateY(-15px) translateX(5px);
    }
}

@keyframes float-delayed {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(15px) translateX(-10px);
    }

    50% {
        transform: translateY(5px) translateX(10px);
    }

    75% {
        transform: translateY(10px) translateX(-5px);
    }
}

/* Pulse Animation for Icons */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Expand Animation for Lines */
@keyframes expand {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Icon Bounce on Hover */
@keyframes icon-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Apply Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

.animate-expand {
    animation: expand 0.5s ease-out forwards;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
}

/* Icon Container Effects */
.icon-pulse {
    transition: all 0.3s ease;
}

.icon-bounce:hover {
    animation: icon-bounce 0.6s ease-in-out;
}

/* Gradient Background on Hover */
.card-hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.card-hover:hover::before {
    opacity: 1;
}

/* Shimmer on Hover */
.card-shimmer {
    position: relative;
    overflow: hidden;
}

.card-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card-shimmer:hover::after {
    transform: translateX(100%);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
}

/* Staggered Animation Delays */
.fade-in-up:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in-up:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in-up:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in-up:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-in-up:nth-child(5) {
    animation-delay: 0.5s;
}

.fade-in-up:nth-child(6) {
    animation-delay: 0.6s;
}

/* Intersection Observer Animation State */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }
}

/* Utility Classes for Custom Colors */
.text-background {
    color: #003366;
}

.bg-background {
    background-color: #003366;
}

.text-primary {
    color: #0066cc;
}

.bg-primary {
    background-color: #0066cc;
}

.text-accent {
    color: #850000;
}

.bg-accent {
    background-color: #850000;
}

/* Ensure images load properly */
img {
    max-width: 100%;
    height: auto;
}

/* Card Hover Effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Transition for all interactive elements */
button,
a {
    transition: all 0.3s ease;
}

/* Mobile Menu Adjustments */
@media (max-width: 1024px) {
    .lg\:sticky {
        position: static;
        height: auto;
    }
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

/* ----------------- Fade-in Animation ----------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ----------------- Gallery Section ----------------- */
/* ----------------- Gallery Section ----------------- */
img {
    display: block;
    width: 100%;
    height: auto;
}

/* Gallery Section */
.gallery-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-header h2 {
    font-size: 2rem;
    color: #053757;
    margin-bottom: 0.5rem;
}

.gallery-header .underline {
    width: 4rem;
    height: 0.25rem;
    background: #053757;
    margin: 0.5rem auto;
}

.gallery-header p {
    color: #334155;
    margin-top: 0.5rem;
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay h3 {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.gallery-item .overlay p {
    font-size: 0.875rem;
}

/* Lightbox CSS */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0.5rem;
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    max-width: 600px;
}

.lightbox-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.lightbox-desc {
    font-size: 1rem;
    color: #ccc;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
    position: absolute;
    color: #fff;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
    user-select: none;
    transition: background 0.3s;
    font-weight: bold;
}

.lightbox .close:hover,
.lightbox .prev:hover,
.lightbox .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox .close {
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
}

.lightbox .prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox .next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Thumbnail row */
.thumbnail-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
    max-width: 90vw;
}

.thumbnail {
    min-width: 80px;
    height: 60px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    opacity: 1;
    border-color: #fff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----------------- Masonry Section ----------------- */
.masonry-text h2 {
    font-size: 2rem;
    color: #053757;
    margin-bottom: 1rem;
}

.masonry-text p {
    font-size: 1rem;
    color: #334155;
    line-height: 1.6;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    grid-auto-rows: 180px;
}

.masonry-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    transition:
        transform 0.4s,
        box-shadow 0.4s;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.masonry-item:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.masonry-tall {
    grid-row: span 2;
}

.masonry-short {
    grid-row: span 1;
}

.masonry-full {
    grid-column: span 2;
}

/* Responsive Masonry */
@media (max-width: 1024px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .masonry-full {
        grid-column: span 1;
    }
}

.swiper-section .swiper {
    width: 100%;
    padding: 1rem 0;
}

.swiper-slide {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.swiper-slide .gallery {
    height: 300px;
}

.swiper-slide img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

/* Tablets */
@media (max-width: 1024px) {
    .swiper-slide img {
        height: 250px;
    }
}

/* Small Tablets / Large Phones */
@media (max-width: 768px) {
    .swiper-slide img {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .swiper-slide img {
        height: 180px;
    }
}


/* ================= CAMPUS GALLERY ================= */

.campus-gallery-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 1rem;
}

.campus-gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.campus-gallery-item {
    position: relative;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.campus-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
}

.campus-gallery-item:hover .campus-gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.campus-gallery-item img:first-child {
    transition: transform 0.4s ease;
}

.campus-gallery-item:hover img:first-child {
    transform: scale(1.08);
}

.campus-gallery-item img:not(:first-child) {
    display: none;
}

/* ================= LIGHTBOX ================= */
.campus-lightbox-container {
    display: flex;
    justify-content: center;
}

.campus-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(23, 22, 22, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.campus-lightbox.active {
    display: flex;
}

.campus-lightbox-img {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 8px;
}

.campus-caption {
    color: white;
    margin-top: 1rem;
    text-align: center;
}

.campus-close,
.campus-prev,
.campus-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 8px;
}

.campus-close {
    top: 20px;
    right: 20px;
}

.campus-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.campus-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}