/* CIEEEN Portal Custom Styles */

:root {
    --primary-color: #2d5016;
    --primary-light: #4a7c29;
    --secondary-color: #FF6B00;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Global Styles */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c29 100%);
    color: white;
    padding: 100px 0 80px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.4;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.hero-section p.lead {
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero-image-wrapper {
    position: relative;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c29 100%);
    padding: 80px 0 60px;
    margin-top: 0;
}

/* Stats Section */
.stats-section {
    background: #f8f9fa;
    color: var(--primary-color);
    padding: 40px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border-bottom: 3px solid #e9ecef;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    color: #6c757d;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 40px;
}

/* Cards */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c29 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

/* Gradient Background */
.bg-gradient-primary {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c29 100%) !important;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    background-color: #ffffff !important;
    z-index: 1030;
    position: relative;
}

.navbar.sticky-top {
    background-color: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    margin-top: 0 !important;
    top: 0 !important;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    padding: 0.4rem 0.9rem !important;
    transition: color 0.3s ease;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 0;
    font-size: 0.825rem;
    position: relative;
    z-index: 1020;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,51,102,0.3);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,51,102,0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,51,102,0.25);
}

/* News Cards */
.news-card {
    height: 100%;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

.news-date {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Member Cards */
.member-card {
    transition: all 0.3s ease;
    height: 100%;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.member-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c29 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    border-radius: 50%;
}

/* Value Icons */
.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c29 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto;
}

/* Contact Icons */
.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c29 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.standards-image-placeholder {
    width: 100%;
    height: 140px;
    border: 2px dashed #c8d3c2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #5c6b55;
    background: #f4f8f2;
    font-size: 0.95rem;
}

.landscape-image-placeholder {
    width: 100%;
    min-height: 280px;
    border: 2px dashed #c8d3c2;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f7faf5 0%, #edf4e9 100%);
    color: #4d5f45;
    font-size: 1.1rem;
    font-weight: 600;
}

.standards-logo {
    width: 100%;
    height: 130px;
    object-fit: contain;
    background: #fff;
}

.standards-title {
    min-height: 72px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.35;
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    .standards-title {
        min-height: auto;
    }
}

/* Grade Cards */
.grade-card {
    padding: 30px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.grade-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.grade-badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 60px 0 20px;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Dashboard Sidebar */
.sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar .nav-link {
    color: #333;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(0,51,102,0.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.shadow {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Education Entry Styling */
.education-entry,
.professional-entry {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.education-entry:hover,
.professional-entry:hover {
    background-color: #e9ecef;
}

/* Modal Styles */
.modal-header.bg-success,
.modal-header.bg-danger {
    border-bottom: none;
}

/* Sticky Sidebar */
.sticky-top {
    position: sticky;
    top: 20px;
}
