/* assets/css/main.css */
/* ============================================
   MAIN CSS - INSTITUT SHANTI BHUANA
   ============================================ */

/* 1. CSS VARIABLES */
:root {
    /* Colors */
    --color-primary: #1a237e;
    --color-primary-dark: #0d1538;
    --color-primary-light: #534bae;
    --color-secondary: #ff9800;
    --color-accent: #00bcd4;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-light: #f8f9fa;
    --color-dark: #212529;
    --color-white: #ffffff;
    --color-gray: #6c757d;
    
    /* Typography */
    --font-primary: 'Poppins', 'Segoe UI', sans-serif;
    --font-secondary: 'Arial', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* 2. IMPORTS */
@import url('components/navbar.css');
@import url('components/footer.css');
@import url('components/cards.css');
@import url('components/buttons.css');
@import url('components/typography.css');

/* 3. RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* 4. UTILITY CLASSES */
.container {
    max-width: 1200px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 3rem;
}

/* 5. HERO SECTION */
.hero-section {
    position: relative;
    margin-top: -80px;
}

.hero-section .carousel {
    height: 85vh;
    min-height: 600px;
    max-height: 800px;
}

.hero-section .carousel-item {
    height: 100%;
}

.hero-section .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-section .carousel-caption {
    bottom: 30%;
    text-align: left;
    left: 10%;
    right: 10%;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.5rem;
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* 6. QUICK INFO */
.quick-info {
    background: var(--color-white);
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.info-card {
    padding: 2rem 1rem;
    transition: var(--transition-base);
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1rem 0;
}

.info-card p {
    color: var(--color-gray);
    font-weight: 500;
}

/* 7. ABOUT SECTION */
.about-section {
    position: relative;
}

.about-image img {
    transition: var(--transition-base);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* 8. PROGRAM SECTION */
.program-section {
    background: var(--color-white);
}

.program-card {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.program-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.program-card h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.program-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    color: var(--color-gray);
    font-size: 0.9rem;
}

.program-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.program-link:hover {
    color: var(--color-primary-dark);
    gap: 1rem;
}

/* 9. NEWS SECTION */
.news-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-gray);
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.news-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-link:hover {
    gap: 1rem;
}

/* 10. FACILITY SECTION */
.facility-card {
    padding: 2rem 1rem;
    transition: var(--transition-base);
}

.facility-card:hover {
    transform: translateY(-10px);
}

.facility-icon {
    width: 80px;
    height: 80px;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
    font-size: 2rem;
    transition: var(--transition-base);
}

.facility-card:hover .facility-icon {
    background: var(--color-primary);
    color: white;
}

.facility-card h4 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* 11. CALENDAR SECTION */
.calendar-events {
    margin-top: 2rem;
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.calendar-event:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.event-date {
    min-width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-details h5 {
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

/* 12. RECTOR SECTION */
.rector-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.rector-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
}

.rector-quote {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--color-primary);
}

.rector-quote p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-dark);
}

/* 13. CTA SECTION */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"><path fill="rgba(255,255,255,0.1)" d="M0,50 Q250,0 500,50 T1000,50 V100 H0 Z"/></svg>');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: bottom;
}

/* 14. RESPONSIVE */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .info-card h3 {
        font-size: 2rem;
    }
    
    .program-card {
        padding: 1.5rem;
    }
    
    .rector-section .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .navbar-brand .brand-text small {
        display: block !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .carousel-caption {
        bottom: 20%;
        left: 5%;
        right: 5%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .info-card {
        padding: 1rem;
    }
}

/* 15. ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}