/* ========================================
   COLLEGE WEBSITE - PROFESSIONAL THEME
   Color: Navy Blue + Royal Blue + White
   ======================================== */

:root {
    --primary: #1a2a4a;
    --secondary: #2563eb;
    --accent: #1e40af;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --text-dark: #333333;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

a { text-decoration: none; transition: all 0.3s ease; }

/* ---- TOP BAR ---- */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar span { color: rgba(255,255,255,0.8); }
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--white); }

/* ---- NAVIGATION ---- */
.main-nav {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 12px 0;
    z-index: 1000;
}
.main-nav .navbar-brand {
    color: var(--primary) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}
.brand-text {
    font-size: 1rem;
    line-height: 1.2;
    max-width: 220px;
    white-space: pre-wrap;
}
.main-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    font-size: 0.95rem;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--secondary) !important;
}
.main-nav .navbar-toggler {
    border-color: var(--primary);
}
.main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a2a4a' stroke-linecap='round' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}
.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--secondary);
}

/* ---- CAROUSEL ---- */
.hero-carousel .carousel-item img {
    height: 500px;
    object-fit: cover;
    filter: brightness(0.7);
}
.hero-carousel .carousel-caption {
    background: rgba(26,42,74,0.7);
    padding: 20px 30px;
    border-radius: var(--radius);
    bottom: 40px;
}
.hero-carousel .carousel-caption h5 {
    color: var(--white);
    font-size: 1.5rem;
}

/* ---- SECTIONS ---- */
.section-padding {
    padding: 70px 0;
}
.section-light {
    background: var(--light-bg);
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 12px auto 0;
    border-radius: 2px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ---- CARDS ---- */
.custom-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}
.custom-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.custom-card .card-img {
    height: 200px;
    object-fit: cover;
}
.custom-card .card-body {
    padding: 20px;
}
.custom-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.custom-card .card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- BUTTONS ---- */
.btn-primary-custom {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.btn-outline-custom {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    background: transparent;
}
.btn-outline-custom:hover {
    background: var(--secondary);
    color: var(--white);
}

/* ---- NEWS TICKER / MARQUEE ---- */
.news-bar {
    background: var(--primary);
    padding: 10px 0;
}
.news-bar .badge {
    background: var(--secondary);
    font-size: 0.85rem;
    padding: 6px 14px;
}
.news-bar .marquee-text {
    color: var(--white);
    font-size: 0.9rem;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}
.news-bar .marquee-text a {
    color: rgba(255,255,255,0.9);
    margin-right: 40px;
}
.news-bar .marquee-text a:hover {
    color: var(--white);
}

/* ---- ABOUT PAGE ---- */
.about-content {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.principal-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary);
}
.vision-mission-card {
    text-align: center;
    padding: 40px 30px;
}
.vision-mission-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* ---- EVENTS ---- */
.event-date-badge {
    background: var(--secondary);
    color: var(--white);
    padding: 12px 15px;
    text-align: center;
    border-radius: var(--radius) 0 0 var(--radius);
    min-width: 70px;
    max-width: 70px;
}
.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}
.event-date-badge .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ---- CONTACT ---- */
.contact-info-box {
    text-align: center;
    padding: 30px 20px;
}
.contact-info-box i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}
.contact-form .form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.95rem;
}
.contact-form .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ---- STUDENT SECTION ---- */
.quick-link-card {
    text-align: center;
    padding: 25px 15px;
    transition: all 0.3s ease;
}
.quick-link-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}
.quick-link-card:hover {
    background: var(--secondary);
}
.quick-link-card:hover i,
.quick-link-card:hover h6 {
    color: var(--white);
}

/* ---- GALLERY ---- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26,42,74,0.8));
    padding: 20px 15px 15px;
    color: var(--white);
    font-size: 0.9rem;
}

/* ---- PAGE BANNER ---- */
.page-banner {
    background: var(--primary);
    padding: 50px 0;
    text-align: center;
}
.page-banner h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 5px;
}
.page-banner .breadcrumb {
    justify-content: center;
    margin: 0;
}
.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.page-banner .breadcrumb-item.active {
    color: var(--white);
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 20px;
}
.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--secondary);
    margin-top: 10px;
}
.footer-text {
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}
.footer-divider {
    border-color: rgba(255,255,255,0.15);
    margin: 30px 0 15px;
}
.footer-copyright {
    font-size: 0.85rem;
    margin: 0;
}

/* ---- NOTICE LIST ---- */
.notice-item {
    display: flex;
    align-items: start;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}
.notice-item:last-child { border-bottom: none; }
.event-item:last-child { border-bottom: none !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }
.notice-item .notice-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    margin-right: 15px;
    min-width: 80px;
}
.notice-item .notice-title a {
    color: var(--text-dark);
    font-weight: 500;
}
.notice-item .notice-title a:hover {
    color: var(--secondary);
}
.notice-new {
    background: #dc2626;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ---- STUDENT LOGIN ---- */
.login-box {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.login-box h3 {
    text-align: center;
    margin-bottom: 30px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .top-bar .top-contacts { display: none; }
    .hero-carousel .carousel-item img { height: 300px; }
    .section-padding { padding: 40px 0; }
    .section-title h2 { font-size: 1.5rem; }
    .brand-text { font-size: 0.9rem; max-width: 200px; }
    .page-banner { padding: 30px 0; }
    .page-banner h1 { font-size: 1.5rem; }
}

/* ---- UTILITY ---- */
.text-primary-custom { color: var(--secondary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.table-status-active { color: #16a34a; font-weight: 600; }
.table-status-inactive { color: #dc2626; font-weight: 600; }
.no-data { text-align: center; padding: 40px; color: var(--text-muted); }
.no-data i { font-size: 2.5rem; margin-bottom: 10px; display: block; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }