/* ============================================
   ACCESS SOLAR - MAIN STYLESHEET
   Theme Color: #720708 (Dark Red)
   Accent Color: #8b1c43 (Burgundy)
   Highlight: #ffc107 (Yellow)
   ============================================ */

:root {
    --primary: #720708;
    --secondary: #FFFFFF;
    --accent: #8b1c43;
    --highlight: #ffc107;
    --dark: #1a1a1a;
    --light: #f8f9fa;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

a { transition: all 0.3s; }
a:hover { opacity: 0.85; }

/* ========== VIDEO BACKGROUND ========== */
.video-bg-container {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.video-bg-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 0;
}

.video-content {
    position: relative;
    z-index: 1;
}

/* ========== BUTTONS ========== */
.btn-primary-custom {
    background: #720708;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: #5a0506;
    color: white;
}

.btn-accent {
    background: #8b1c43;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-accent:hover {
    background: #6b1533;
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: #1a1a1a;
}

/* Override Bootstrap Success Colors */
.btn-success,
.bg-success {
    background-color: #8b1c43 !important;
    border-color: #8b1c43 !important;
    color: white !important;
}

.btn-success:hover {
    background-color: #6b1533 !important;
    border-color: #6b1533 !important;
}

.btn-outline-success {
    color: #8b1c43 !important;
    border-color: #8b1c43 !important;
}

.btn-outline-success:hover {
    background-color: #8b1c43 !important;
    color: white !important;
}

/* ========== SECTIONS ========== */
.section-padding { padding: 80px 0; }

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #720708;
}

.section-subtitle {
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* ========== CARDS ========== */
.card-hover {
    transition: all 0.3s;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-box {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-box i {
    font-size: 2.5rem;
    color: #720708;
    margin-bottom: 20px;
}

.feature-box h4 {
    margin-bottom: 15px;
    color: #720708;
}

/* ========== STATS ========== */
.stats-container { display: flex; gap: 40px; flex-wrap: wrap; }

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffc107;
}

.stat-label {
    font-size: 1rem;
    color: white;
    opacity: 0.9;
}

/* ========== COUNTER ANIMATION ========== */
.counter {
    font-weight: 800;
    transition: all 0.3s;
}

/* ========== BADGES ========== */
.badge-custom {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    background: #8b1c43 !important;
    color: white !important;
}

.badge.bg-success {
    background: #8b1c43 !important;
    color: white !important;
}

/* ========== ALERTS ========== */
.alert-success {
    background-color: #fdf2f5 !important;
    border-color: #8b1c43 !important;
    color: #8b1c43 !important;
}

/* ========== PROGRESS BARS ========== */
.progress-bar.bg-success,
.progress-bar-success {
    background-color: #8b1c43 !important;
}

/* ========== TABLES ========== */
.table thead.table-dark th {
    background-color: #720708 !important;
    border-color: #720708 !important;
}

.table .badge {
    font-weight: 500;
}

/* ========== PAGINATION ========== */
.pagination .page-item.active .page-link {
    background-color: #720708;
    border-color: #720708;
    color: white;
}

.pagination .page-link {
    color: #720708;
}

.pagination .page-link:hover {
    color: #5a0506;
}

/* ========== MODALS ========== */
.modal-header-custom {
    background: #720708;
    color: white;
}

.modal-header-edit {
    background: #ffc107;
    color: #333;
}

/* ========== TEXT COLORS ========== */
.text-primary { color: #720708 !important; }
.text-accent { color: #8b1c43 !important; }
.text-success { color: #8b1c43 !important; }
.text-highlight { color: #ffc107 !important; }
.text-white { color: white !important; }
.text-dark { color: #1a1a1a !important; }
.text-muted { color: #666 !important; }

/* ========== BACKGROUNDS ========== */
.bg-primary { background: #720708 !important; }
.bg-accent { background: #8b1c43 !important; }
.bg-light { background: #f8f9fa !important; }
.bg-white { background: white !important; }
.bg-dark { background: #1a1a1a !important; }

/* ========== BORDERS ========== */
.border-primary { border-color: #720708 !important; }
.border-accent { border-color: #8b1c43 !important; }

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-align: center;
    line-height: 55px;
    font-size: 26px;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ========== FOOTER ========== */
footer {
    background: #720708;
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

footer h5 {
    color: #ffc107;
    margin-bottom: 15px;
}

footer a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffc107;
}

/* ========== MAP ========== */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
    margin: 10px 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.leaflet-popup-content strong {
    color: #720708;
    font-size: 14px;
}

.leaflet-popup-content p {
    margin: 3px 0;
    font-size: 12px;
    color: #666;
}

/* ========== LIGHTBOX ========== */
.lb-data .lb-caption {
    font-size: 14px;
    font-weight: 600;
    color: #ffc107;
}

/* ========== FORM ELEMENTS ========== */
.form-control:focus {
    border-color: #720708;
    box-shadow: 0 0 0 0.2rem rgba(114,7,8,0.2);
}

.form-select:focus {
    border-color: #720708;
    box-shadow: 0 0 0 0.2rem rgba(114,7,8,0.2);
}

/* ========== NAV TABS ========== */
.nav-tabs .nav-link.active {
    border-color: #720708;
    color: #720708;
    font-weight: 600;
}

/* ========== ACCORDION ========== */
.accordion-button:not(.collapsed) {
    background-color: #fdf2f2;
    color: #720708;
}

.accordion-button:focus {
    border-color: #720708;
    box-shadow: 0 0 0 0.2rem rgba(114,7,8,0.2);
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('../images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ========== PARTNER LOGOS ========== */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ========== GALLERY CARD ========== */
.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.gallery-card .card-info {
    padding: 15px;
}

/* ========== PROJECT CARD ========== */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card .card-body {
    padding: 20px;
}

/* ========== SERVICE CARD ========== */
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 25px;
}

/* ========== NEWS CARD ========== */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* ========== TIMELINE ========== */
.timeline-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #720708;
    margin-bottom: 20px;
}

.timeline-year {
    min-width: 80px;
    text-align: center;
    margin-right: 25px;
}

.timeline-year h2 {
    color: #720708;
    font-weight: 800;
    margin: 0;
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background: #720708;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    z-index: 998;
    cursor: pointer;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.scroll-top:hover {
    background: #5a0506;
    transform: translateY(-3px);
}

/* ========== LOADING SPINNER ========== */
.spinner-border.text-primary {
    color: #720708 !important;
}

/* ========== CUSTOM CHECKBOX ========== */
.form-check-input:checked {
    background-color: #8b1c43;
    border-color: #8b1c43;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .section-title { font-size: 2rem; }
    .hero-section h1 { font-size: 2.8rem; }
}

@media (max-width: 992px) {
    .section-padding { padding: 60px 0; }
    .hero-section { padding: 80px 0; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section { padding: 60px 0; }
    .page-header { padding: 60px 0; }
    .page-header h2 { font-size: 2rem; }
    .stat-number { font-size: 2rem; }
    .counter { font-size: 2rem !important; }
}

@media (max-width: 576px) {
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }
    .btn-primary-custom,
    .btn-accent,
    .btn-outline-light {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .sidebar,
    .whatsapp-float,
    .scroll-top,
    .navbar {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    body {
        background: white !important;
    }
}

.sidebar {
    background: #8b1c43;
    color: white;
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 13px 25px;
    display: block;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.sidebar .nav-link i {
    width: 22px;
    text-align: center;
    margin-right: 8px;
}

.sidebar .nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.08);
    border-left-color: #F3E5AB;
}

.sidebar .nav-link.active {
    background: rgba(255,255,255,0.15);
    color: #F3E5AB;
    border-left-color: #F3E5AB;
    font-weight: 600;
}

.main-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
}

/* Feature card with background image */
.feature-card-bg {
    position: relative;
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    border-top: 4px solid #8b1c43;
    transition: all 0.3s;
    overflow: hidden;
}

.feature-card-bg:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-card-bg .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.feature-card-bg:hover .bg-image {
    opacity: 0.12;
}

.feature-card-bg .card-content {
    position: relative;
    z-index: 1;
}

.hidden {
  display: none !important;
}