﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F5F5DC;
    transition: background 0.3s, color 0.3s;
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.no-container-gutter {
    --bs-gutter-x: 0 !important;
}


/*********************************** Theme ******************************/

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

    .theme-toggle-btn:hover {
        transform: scale(1.2);
    }

/*********************************** TOP BAR #0F0E47 ******************************/

.top-bar {
    background: #001C32;
    color: var(--bs-light);
    font-size: 12px;
    padding: 3px 0;
}

    .top-bar a {
        color: #fff;
        margin-right: 12px;
        text-decoration: none;
        transition: 0.3s;
    }

        .top-bar a:hover {
            text-decoration: underline;
        }


.social-icons a {
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

    /* Hover colors */
    .social-icons a:hover {
        transform: translateY(-2px) scale(1.1);
    }

    /* Individual hover colors */
    .social-icons a:nth-child(1):hover {
        background: #1877f2;
    }
    /* Facebook */
    .social-icons a:nth-child(2):hover {
        background: #000;
    }
    /* X */
    .social-icons a:nth-child(3):hover {
        background: #ff0000;
    }
    /* YouTube */
    .social-icons a:nth-child(4):hover {
        background: #e4405f;
    }
/* Instagram */


/****************************** HEADER *******************************/
.header-section {
    background: #F5F5DC;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.college-title {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    color: #6b1d1d;
    letter-spacing: 1px;
}

.sub-title {
    font-size: 20px;
    color: #444;
    letter-spacing: 1px;
}

.header-section img {
    transition: transform 0.3s;
}

    .header-section img:hover {
        transform: scale(1.05);
    }



/******************************* NAVBAR ************************************/
.main-navbar {
    background: #9B1313;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding:2px 0px !important;
}

/* NAV LINK */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 400;
    /* padding: 12px 15px; */
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

/* ✅ FIX ARROW POSITION */
.navbar-nav .dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
}

/* ❌ REMOVE CONFLICTING UNDERLINE FROM ::after */
/* instead use border */
.navbar-nav .nav-link {
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

    .navbar-nav .nav-link:hover {
        border-bottom: 2px solid #ffd700;
    }

/* DROPDOWN */
.dropdown-menu {
    border-radius: 6px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;

}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    display: block;
}

/* Prevent flicker */
.navbar-nav .dropdown-menu {
    top: 100%;
    left: 0;
}

.header-section {
    text-align: center;
}

@media (max-width: 768px) {
    .college-title {
        font-size: 18px;
        text-align: center;
    }
}


/************************************ Slider ********************************/
/* Slider image */

.slider {
    padding: 0px 0px !important;
}

.slider-img {
    height: 400px;
    object-fit: cover;
}

/* Caption styling */
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
}

    .carousel-caption h2 {
        font-size: 32px;
        font-weight: bold;
    }

    .carousel-caption p {
        font-size: 16px;
    }

/* Responsive */
@media (max-width: 768px) {
    .slider-img {
        height: 250px;
    }

    .carousel-caption h2 {
        font-size: 18px;
    }
}


/********************************************Bulletin********************************/

/* Wrapper */
.bulletin-wrapper {
    background: #2f4b52;
    margin-top: -20px;
    position: relative;
    z-index: 10;
    margin: 0px 0px !important;
}

/* Flex container */
.bulletin-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* ✅ KEY FIX */
}

/* Ribbon */
.bulletin-label {
    /*background: #a61d2d;
    color: #fff;
    padding: 14px 20px;
    font-weight: 600;
    position: relative;*/

    position: relative;
    background: linear-gradient(135deg, #c3263a, #8e1425);
    color: #fff;
    font-weight: 600;
    padding: 14px 45px 14px 25px;
    font-size: 16px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    /* Glow animation */
    animation: glowPulse 2s infinite;
}

/* Glow effect */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(255,0,0,0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(255,0,0,0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(255,0,0,0.3);
    }
}

/* .bulletin-label::after {
        content: '';
        position: absolute;
        right: -24px;
        top: 0;
        border-top: 26px solid transparent;
        border-bottom: 26px solid transparent;
        border-left: 24px solid #a61d2d;
    }*/

.bulletin-label::after {
    content: "";
    position: absolute;
    top: 0;
    right: -24px;
    border-top: 26px solid transparent;
    border-bottom: 26px solid transparent;
    border-left: 24px solid #8e1425;
}

.bulletin-label::before {
    content: "";
    position: absolute;
    top: 0;
    right: -24px;
    border-top: 26px solid transparent;
    border-bottom: 26px solid transparent;
    border-left: 24px solid #1f3b42;
}

/* 🔔 ICON ANIMATION */
.bulletin-label i {
    animation: pulseIcon 1.5s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Slider */
.bulletin-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 15px 30px;
    min-height: 50px; /* ✅ flexible height */
}


/* Items */
.bulletin-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word; /* ✅ prevent overflow */
}

    .bulletin-item.active {
        opacity: 1;
        transform: translateY(0);
        position: relative;
    }

/* Controls */
.bulletin-controls {
    display: flex;
    gap: 8px;
    padding: 10px;
}


/* Buttons */
.btn-nav {
    background: linear-gradient(135deg, #c3263a, #8e1425);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

    /*.btn-nav:hover {
        background: #7f1521;
    }*/
    .btn-nav:hover {
        transform: scale(1.1);
    }

@media (max-width: 768px) {

    .bulletin-wrapper {
        margin-top: 0;
    }

    .bulletin-container {
        flex-direction: column; /* ✅ stack layout */
        align-items: stretch;
    }

    .bulletin-label {
        width: 100%;
        text-align: center;
    }

        .bulletin-label::after {
            display: none; /* cleaner on mobile */
        }

    .bulletin-slider {
        padding: 10px;
        text-align: center;
    }

    .bulletin-controls {
        justify-content: center;
    }

    .bulletin-item {
        font-size: 14px;
    }
}


/********************************************Notice Section********************************/

/* Card */
.custom-card {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 100%;
}

/* Header */
.card-header-title {
    background: #2f4b52;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-weight: 700;
    font-size: 16px;
}

/* Tabs */
.card-tabs {
    background: #e0e0e0;
    text-align: center;
    padding: 6px;
    font-size: 14px;
}

    .card-tabs span {
        margin: 0 5px;
        cursor: pointer;
    }

    .card-tabs .active {
        color: #a61d2d;
        font-weight: bold;
    }

/* Body */
.card-body {
    padding: 8px;
    font-size:10px;
}

/* Notice Item */
.notice-item {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

/* Date box */
.date-box {
    background: #e6d3bf;
    padding: 5px;
    text-align: center;
    border-radius: 6px;
    min-width: 60px;
}

    .date-box span {
        font-size: 10px;
        display: block;
    }

    .date-box strong {
        font-size: 12px;
        color: #a66a00;
    }


/* Text */
.notice-item p {
    margin: 0;
    font-size: 14px;
}

/* Simple list (middle card) */
.simple-list p {
    margin: 10px 0;
    font-size: 14px;
    padding:0px 10px;
}

/* Footer button */
.card-footer-btn {
    padding: 15px;
    text-align: left;
}

.btn-read {
    background: #2f4b52;
    color: #fff;
    border-radius: 6px;
    padding: 8px 20px;
}

    .btn-read:hover {
        background: #1f3338;
    }


/* Responsive */
@media (max-width: 991px) {
    .notice-item {
        flex-direction: row;
    }
}

@media (max-width: 576px) {
    .notice-item {
        flex-direction: column;
    }

    .date-box {
        width: fit-content;
    }
}

/* Scrollable area */
.scroll-area {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

    /* Custom scrollbar */
    .scroll-area::-webkit-scrollbar {
        width: 5px;
    }

    .scroll-area::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

/* Tabs */
.tab {
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
}

    .tab.active {
        color: #a61d2d;
        font-weight: bold;
    }

/* Tab content */
.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* Notice hover animation */
.notice-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .notice-item:hover {
        background: #f0f0f0;
        transform: translateX(5px);
    }

/* NEW badge */
.badge-new {
    background: #a61d2d;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 5px;
    border-radius: 4px;
}

/* PDF link */
.pdf-link {
    font-size: 12px;
    color: #2f4b52;
    text-decoration: none;
}

    .pdf-link:hover {
        text-decoration: underline;
    }



/********************************************Gallery Section********************************/

.gallery{
    background-color:#d0edda;
}

/* Title */
.gallery-title {
    font-weight: 600;
    letter-spacing: 1px;
}

/* Card */
.gallery-card {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

    /* Image */
    .gallery-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
        transition: transform 0.4s ease;
    }

    /* Hover effect */
    .gallery-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

        .gallery-card:hover img {
            transform: scale(1.05);
        }

.gallery-img {
    cursor: pointer;
    transition: 0.3s;
}

    .gallery-img:hover {
        opacity: 0.9;
        transform: scale(1.02);
    }

/* Responsive tweaks */
@media (max-width: 768px) {
    .gallery-card img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .gallery-card img {
        height: 160px;
    }
}



/********************************************Gallery Section********************************/

/* Footer background */
.footer-section {
    background: #022b4c;
    color: #fff;
}

/* Title */
.footer-title {
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

        .footer-links li::before {
            content: "- ";
            color: #ccc;
        }

    .footer-links a {
        color: #ddd;
        text-decoration: none;
        transition: 0.3s;
    }

        .footer-links a:hover {
            color: #fff;
            padding-left: 5px;
        }

.footer-map {
    border-radius: 8px;
    overflow: hidden;
}

.map-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(47, 75, 82, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}
/* Map */
.footer-map iframe {
    border-radius: 8px;
}

/* Bottom bar */
.footer-bottom {
    background: #001C32;
    padding: 12px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-title {
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }
}