/**
 * Marondera High School - Custom Styles
 * Version: 1.0
 * Developer: bguvava (bguvava.com)
 * 
 * This stylesheet contains custom styles that override Bootstrap 5
 * and implement the school's branding guidelines.
 */

/* ============================================================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================================================ */
:root {
    /* Primary Colors */
    --primary-green: #228B22;
    --primary-green-dark: #1a6b1a;
    --primary-green-light: #2ea52e;
    --primary-blue: #1E3A8A;
    --primary-blue-dark: #162d6e;
    --primary-blue-light: #2547a3;
    
    /* Status Colors */
    --success: #16A34A;
    --warning: #EAB308;
    --danger: #DC2626;
    
    /* Neutral Colors */
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-green);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-green-dark);
}

/* ============================================================================
   BACKGROUND COLOR UTILITIES
   ============================================================================ */
.bg-primary-green {
    background-color: var(--primary-green) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.bg-light-custom {
    background-color: var(--light-bg) !important;
}

/* ============================================================================
   TEXT COLOR UTILITIES
   ============================================================================ */
.text-primary-green {
    color: var(--primary-green) !important;
}

.text-primary-blue {
    color: var(--primary-blue) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* ============================================================================
   BUTTON STYLES
   ============================================================================ */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Primary Green Button */
.btn-primary-green {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.btn-primary-green:hover,
.btn-primary-green:focus {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-green:active {
    transform: translateY(0);
}

/* Outline Primary Green */
.btn-outline-primary-green {
    background-color: transparent;
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.btn-outline-primary-green:hover,
.btn-outline-primary-green:focus {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* Primary Blue Button */
.btn-primary-blue {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary-blue:hover,
.btn-primary-blue:focus {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Outline Primary Blue */
.btn-outline-primary-blue {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline-primary-blue:hover,
.btn-outline-primary-blue:focus {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================================================
   TOP BAR
   ============================================================================ */
.top-bar {
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1031;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.top-bar a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.top-bar i {
    opacity: 0.9;
}

/* Top bar on scroll - hide on mobile for more space */
@media (max-width: 767.98px) {
    .top-bar {
        display: none !important;
    }
}

/* Mobile contact info in navbar */
.mobile-contact-bar {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.8rem;
    text-align: center;
}

.mobile-contact-bar a {
    color: var(--white);
}

.mobile-contact-bar a:hover {
    opacity: 0.9;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.navbar {
    padding: 0.75rem 0;
    transition: all var(--transition-normal);
    background-color: var(--white);
    z-index: 1030;
}

/* Navbar scrolled state - adds shadow and reduces padding */
.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
}

.navbar-brand img {
    transition: transform var(--transition-normal);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Navigation Links */
.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green) !important;
    background-color: rgba(34, 139, 34, 0.1);
}

/* Active link indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.nav-link i {
    font-size: 0.875rem;
}

/* Hamburger menu custom styling */
.navbar-toggler {
    border: 2px solid var(--primary-green);
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all var(--transition-fast);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.25);
}

.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='%23228B22' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Animated hamburger to X */
.navbar-toggler[aria-expanded="true"] .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='%23228B22' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e");
}

/* System access buttons in navbar */
.navbar .btn-primary-green,
.navbar .btn-primary-blue {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    min-width: 100px;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
        background-color: var(--white);
        border-top: 1px solid var(--border-color);
        margin-top: 0.75rem;
    }
    
    /* Smooth collapse animation */
    .navbar-collapse.collapsing {
        transition: height 0.35s ease;
    }
    
    .nav-link {
        padding: 0.875rem 1rem !important;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Remove active indicator on mobile */
    .nav-link.active::after {
        display: none;
    }
    
    /* Mobile system buttons */
    .navbar .d-flex.gap-2 {
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }
    
    .navbar .btn-primary-green,
    .navbar .btn-primary-blue {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand img {
        height: 45px;
    }
}

/* Desktop navigation hover effects */
@media (min-width: 992px) {
    .nav-link {
        margin: 0 0.125rem;
    }
    
    .nav-link:hover {
        transform: translateY(-2px);
    }
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero/hero-main.jpg') center center / cover no-repeat;
    opacity: 0.2;
}

/* Decorative pattern overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* Floating shapes decoration */
.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.min-vh-75 {
    min-height: 75vh;
}

.min-vh-80 {
    min-height: 80vh;
}

.z-1 {
    z-index: 1;
}

/* Hero Content */
.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 600px;
}

/* Hero Buttons */
.hero-section .btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: var(--text-primary);
    font-weight: 600;
}

.hero-section .btn-warning:hover {
    background-color: #d4a006;
    border-color: #d4a006;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Animations */
.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-section .lead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ============================================================================
   QUICK INFO CARDS SECTION
   ============================================================================ */
.quick-info-section {
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

.quick-info-section .card {
    border: none;
    border-radius: 1rem;
}

/* ============================================================================
   CARDS
   ============================================================================ */
.card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition-normal);
    background-color: var(--white);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-title {
    color: var(--text-primary);
    font-size: 1.125rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Card Image Top */
.card-img-top {
    position: relative;
    overflow: hidden;
}

.card-img-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

/* Icon Circle */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.card-hover:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

/* Card Footer */
.card-footer {
    padding: 1rem 1.25rem;
}

/* News Card Specific */
.card .btn-link {
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.card .btn-link:hover {
    transform: translateX(5px);
}

/* ============================================================================
   ABOUT PREVIEW SECTION
   ============================================================================ */
.about-preview-section {
    position: relative;
}

.about-preview-section .position-relative img {
    transition: transform var(--transition-normal);
}

.about-preview-section:hover .position-relative img {
    transform: scale(1.02);
}

/* Years badge */
.years-badge {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    padding: 1rem 1.5rem;
    border-radius: 0 1rem 1rem 0;
    box-shadow: var(--shadow-lg);
}

/* Check list items */
.check-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
}

.check-list li i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* ============================================================================
   STATS SECTION
   ============================================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
}

.stat-item {
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 1;
}

.stat-item h2 {
    color: var(--white);
    font-size: 3rem;
    line-height: 1;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.stat-item .display-6 {
    font-size: 1.5rem;
    vertical-align: top;
}

.counter {
    display: inline-block;
}

/* Stats dividers */
@media (min-width: 768px) {
    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 50%;
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Stats responsive */
@media (max-width: 767.98px) {
    .stat-item h2 {
        font-size: 2.25rem;
    }
    
    .stat-item p {
        font-size: 0.875rem;
    }
}

/* ============================================================================
   NEWS SECTION
   ============================================================================ */
.news-section {
    background-color: var(--light-bg);
}

.news-section .section-header {
    margin-bottom: 3rem;
}

/* News card date */
.news-date {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ============================================================================
   CALL TO ACTION SECTION
   ============================================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    left: -200px;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2rem;
}

.cta-section .btn-warning {
    font-weight: 600;
    padding: 0.875rem 2rem;
}

.cta-section .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
    .cta-section {
        text-align: center;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
    background-color: #111827 !important;
}

.hover-link {
    transition: all var(--transition-fast);
}

.hover-link:hover {
    color: var(--primary-green) !important;
    padding-left: 5px;
}

footer .btn-outline-light:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* ============================================================================
   BACK TO TOP BUTTON
   ============================================================================ */
#backToTop {
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================================
   BADGE STYLES
   ============================================================================ */
.badge {
    font-weight: 500;
    padding: 0.5em 1em;
    border-radius: 0.375rem;
}

.badge.bg-primary-green {
    background-color: var(--primary-green) !important;
}

.badge.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */
@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 575.98px) {
    .btn {
        width: 100%;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
}

/* ============================================================================
   ANIMATION UTILITIES
   ============================================================================ */
.fade-in {
    animation: fadeIn var(--transition-slow) forwards;
}

.slide-up {
    animation: slideUp var(--transition-slow) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   LOADING SPINNER
   ============================================================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   FORM STYLES
   ============================================================================ */
.form-control,
.form-select {
    border-radius: 0.375rem;
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ============================================================================
   PAGE HEADER (for inner pages)
   ============================================================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    padding: 4rem 0;
    color: var(--white);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center center / cover no-repeat;
    opacity: 0.1;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================================
   TEAM CARDS (Leadership Section)
   ============================================================================ */
.team-card {
    transition: all var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-card .team-image {
    position: relative;
}

.team-card .team-image::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    opacity: 0;
    transition: all var(--transition-normal);
}

.team-card:hover .team-image::after {
    opacity: 1;
    inset: -10px;
}

/* ============================================================================
   DEPARTMENT CARDS (Academic Departments)
   ============================================================================ */
.department-card {
    transition: all var(--transition-normal);
    border-left: 4px solid transparent !important;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-green) !important;
}

.department-card .icon-circle {
    width: 60px;
    height: 60px;
}

/* ============================================================================
   CONTENT PAGE UTILITIES
   ============================================================================ */
.bg-light-green {
    background-color: rgba(34, 139, 34, 0.1);
}

.bg-light-blue {
    background-color: rgba(30, 58, 138, 0.1);
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   PROCESS CARDS (Admissions Steps)
   ============================================================================ */
.process-card {
    transition: all var(--transition-normal);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ============================================================================
   SPORT CARDS
   ============================================================================ */
.sport-card {
    transition: all var(--transition-normal);
}

.sport-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.sport-card .card-img-top {
    transition: transform var(--transition-slow);
}

.sport-card:hover .card-img-top {
    transform: scale(1.05);
}

.sport-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ============================================================================
   TABLE STYLES
   ============================================================================ */
.table-hover tbody tr {
    transition: background-color var(--transition-fast);
}

.table-hover tbody tr:hover {
    background-color: rgba(34, 139, 34, 0.05);
}

/* ============================================================================
   NEWS PAGE STYLES
   ============================================================================ */
.news-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-card .category-badge {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-card .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.75rem 0;
    line-height: 1.4;
}

.news-card .card-title:hover {
    color: var(--primary-green);
}

.news-card .card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.news-card .news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.news-sidebar .widget {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.news-sidebar .widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-green);
}

.news-sidebar .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar .category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.news-sidebar .category-list li:last-child {
    border-bottom: none;
}

.news-sidebar .category-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
}

.news-sidebar .category-list a:hover {
    color: var(--primary-green);
}

.news-sidebar .category-list .count {
    background: var(--light-bg);
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.featured-post {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.featured-post:last-child {
    border-bottom: none;
}

.featured-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.featured-post .post-info h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.featured-post .post-info h6 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.featured-post .post-info h6 a:hover {
    color: var(--primary-green);
}

.featured-post .post-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
}

.newsletter-widget .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.newsletter-widget .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
}

.newsletter-widget .btn {
    background: var(--primary-blue);
    border: none;
}

.newsletter-widget .btn:hover {
    background: var(--secondary-blue);
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.pagination .page-item.active .page-link {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
}

/* ============================================================================
   CONTACT PAGE STYLES
   ============================================================================ */
.contact-info-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card .icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.contact-info-card .icon-circle i {
    font-size: 1.75rem;
    color: var(--white);
}

.contact-info-card h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.contact-info-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-info-card a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper .form-control,
.contact-form-wrapper .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.contact-form-wrapper .form-control:focus,
.contact-form-wrapper .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 34, 0.15);
}

.contact-form-wrapper textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    display: block;
}

.office-hours-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.office-hours-card h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.office-hours-card .hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.office-hours-card .hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.office-hours-card .hours-list li:last-child {
    border-bottom: none;
}

.office-hours-card .hours-list .day {
    font-weight: 500;
}

.office-hours-card .hours-list .time {
    opacity: 0.9;
}

.faq-contact-section {
    background: var(--light-bg);
}

.faq-contact-section .accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--white);
}

.faq-contact-section .accordion-button:not(.collapsed) {
    background: rgba(34, 139, 34, 0.05);
    color: var(--primary-green);
}

.faq-contact-section .accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-green);
}

.faq-contact-section .accordion-body {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */
@media print {
    .navbar,
    .top-bar,
    footer,
    #backToTop,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
