/* Custom Styles for College Website */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
}

/* Body and Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    padding: 4rem 0;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Page Banner Section */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.85) 0%, rgba(0, 86, 179, 0.85) 100%);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    margin-bottom: 0;
}

.page-banner p {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Fallback for pages without banner image */
.page-banner.no-image {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

.page-banner.no-image::before {
    display: none;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.hover-card {
    cursor: pointer;
}

.hover-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

.hover-card:hover img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.hover-card img {
    transition: transform 0.3s ease;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.top-bar a {
    transition: opacity 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.9;
}

/* Header and Navigation */
header {
    /* position: sticky; removed */
    /* top: 0; removed */
    /* z-index: 1000; removed */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-nav {
    text-align: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

.navbar-nav .nav-link.active {
    font-weight: 600;
    color: rgba(255, 255, 255, 1) !important;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
}

@media (max-width: 991px) {
    .top-bar {
        font-size: 0.8rem;
    }
    
    .top-bar .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav {
        text-align: left;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    header h4 {
        font-size: 1.4rem !important;
    }
}

/* Footer */
footer {
    margin-top: auto;
}

/* WhatsApp Contact Button */
.whatsapp-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-contact:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-contact:active {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .whatsapp-contact {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
}

.back-to-top.show {
    display: flex;
    opacity: 1;
}

.back-to-top:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Page Headers */
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Icons */
.bi {
    vertical-align: -0.125em;
}

/* Spacing */
section {
    min-height: 50vh;
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .page-banner {
        min-height: 250px;
        padding: 2.5rem 0;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
}

