body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5 {
    color: #077cc0;
    font-weight: bold;
}
p{
    font-size: large;
}

/* Custom Navbar */
header {
    background: #077cc0;
    color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo img {
    height: 40px;
    margin-right: 10px;
}


.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #fff;
}

/* Drawer menu */
.drawer {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100%;
    background: #077cc0;
    padding-top: 60px;
    transition: right 0.3s ease;
    z-index: 2000;
}

.drawer.active {
    right: 0;
}

.drawer-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
}

.drawer ul li a {
    color: #fff;
    font-size: 1.2em;
}

.drawer ul hr {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.drawer ul hr:hover {
    border-top: 1px solid #00bfff;
}

/* Hero Slider */
.slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.slide {
    position: absolute;
    top: 0;
    left: 100%; /* Start off-screen */
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: all 1s ease;
    z-index: 0;
}

/* Active Slide */
.slide.active {
    left: 0; /* Slide into view */
    opacity: 1;
    z-index: 1;
}

/* Previous Slide (for smooth exit to left) */
.slide.prev {
    left: -100%;
    opacity: 0;
    z-index: 0;
}

/* Text Styling */
.slide .text {
    position: absolute;
    bottom: 15%;
    left: 8%;
    color: #fff;
    max-width: 650px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease forwards;
}
.headline {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}
.subtext {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    padding: 12px;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    user-select: none;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
}
.arrow:hover { background: rgba(0,0,0,0.6); transform: scale(1.1); }
.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

/* Blurry gradient edges */
.fade-left,
.fade-right {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}
.fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.5), transparent);
}
.fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.5), transparent);
}

/* Dots */
.dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
}
.dots span.active {
    background: #fff;
    transform: scale(1.3);
}

/* Animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .headline { font-size: 2.5rem; }
    .subtext { font-size: 1rem; }
}

/**************KEY FIGURES
*********************************/
#key-figures h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #077cc0;
}

#key-figures .card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
}

#key-figures .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


/* Project Container */
/* Projects */
/*.project img {*/
/*    width: 100%;*/
/*    height: 300px; !* same fixed height for all *!*/
/*    object-fit: cover; !* ensures images fill without distortion *!*/
/*    border-radius: 8px;*/
/*    transition: transform 0.3s;*/
/*}*/

/*!* Keep overlay in sync with the fixed size *!*/
/*.project {*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*    height: 300px; !* force all divs to same height *!*/
/*}*/


/*!* Overlay *!*/
/*.project .overlay {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: rgba(0, 0, 0, 0.6); !* darker translucent *!*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    opacity: 0;*/
/*    transition: opacity 0.3s ease;*/
/*    border-radius: 8px;*/
/*}*/

/*!* Text inside overlay *!*/
/*.project .overlay-text {*/
/*    color: #fff;*/
/*    font-size: 1.5rem;*/
/*    font-weight: bold;*/
/*    text-align: center;*/
/*}*/

/*.project .overlay-text i {*/
/*    margin-left: 8px;*/
/*    font-size: 1.8rem;*/
/*    vertical-align: middle;*/
/*}*/

/*!* Hover Effect *!*/
/*.project-link:hover .overlay {*/
/*    opacity: 1;*/
/*}*/
/*.project-link .overlay {*/
/*    pointer-events: none; !* allows clicks to reach parent container *!*/
/*}*/

/*.project-link .overlay .overlay-text {*/
/*    pointer-events: auto; !* text can still be selectable/clickable if needed *!*/
/*}*/



.project-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.project-card-body {
    padding: 1.5rem;
}

.project-card-body h5 {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-card-body p {
    font-size: 0.95rem;
    color: #495057;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-weight: 700;
    color: #0d6efd;
}


/* Board Members Home Page */
.board-container {
    overflow: hidden;
}

/* Chairperson larger */
.chairperson-member {
    flex: 0 0 200px;
}

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

/* Board members styling */
.board-marquee {
    overflow: hidden;
    position: relative;
}

.board-track {
    width: 100%;
    display: flex;
    gap: 20px;
    animation: scrollInfinite 20s linear infinite;
}

.member {
    flex: 0 0 120px;
    text-align: center;
}

.member img {
    width: 100%;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s;
}

.member img:hover {
    transform: scale(1.05);
}

/* Infinite scroll animation */
@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-70%); } /* Half because we duplicated the items */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chairperson-member {
        flex: 0 0 200px;
    }
    .chairperson-member img {
        height: 150px;
        flex: 1 1 100%; /* full width on mobile */
        max-width: 100%;
    }

    .member {
        flex: 0 0 90px;
    }
    .member img {
        height: 90px;
    }

    .board-track {
        gap: 15px;
    }
}

/* Ensure same size cards on mobile */
.hierarchy .level {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hierarchy .card {
    flex: 1 1 200px; /* default size */
    max-width: 220px;
}

@media (max-width: 768px) {
    .hierarchy .card {
        flex: 1 1 100%; /* full width on mobile */
        max-width: 100%;
    }
}

/* News section */
.news-featured img, .news-grid .news-item img {
    transition: transform 0.3s;
}

.news-featured:hover img, .news-grid .news-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    fill-opacity: 50%;
    background: black;
    color: #ffffff;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    min-height: 100px !important;
}

/* Footer */
/* Footer */
footer {
    background: #077cc0;
    color: #fff;
}
footer h6 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
}
footer p,
footer li {
    margin: 0 0 5px;
    font-size: 0.95rem;
}
footer .social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
footer .social-links a:hover {
    color: #ffd700; /* gold hover effect */
}


/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .menu-toggle {
        display: block;
        color: #fff;
    }
}


/***************
TEAM PAGE
*******************/

/* Hierarchy triangle layout */
.hierarchy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hierarchy .level {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Make cards circular */
.team-card img {
    border-radius: 50% !important;
    width: 150px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto;
}

/* Keep card body clean */
.team-card {
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    width: 200px;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    width: auto;
}

.modal-content {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: none;
}

.modal-header {
    border: none;
}

.modal-body img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/***************
CSR PAGE
*******************/

.csr-hero {
    /*background: url('https://images.unsplash.com/photo-1529070538774-1843cb3265df?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;*/
    background: linear-gradient(135deg,#84dc6c, #84dc6c);
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.csr-gallery img {
    cursor: pointer;
    transition: transform 0.3s;
}

.csr-gallery img:hover {
    transform: scale(1.05);
}

.csr-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
}

/***************
NEWS OVERLAY
*******************/
.news-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.news-item,
.news-featured {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.news-item .overlay,
.news-featured .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Darker translucent overlay */
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3));
    color: white;
    padding: 15px;
    border-radius: 0 0 8px 8px;
}


.news-date {
    font-size: 0.8rem;
    color: #ddd;
    font-weight: 500;
    display: block;
}

.clamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    margin-top: 5px;
    color: #f1f1f1;
}

.news-featured h4 {
    font-size: 1.3rem;
    font-weight: 600;
}

.news-item h5 {
    font-size: 1rem;
    margin-top: 5px;
}

/* Power Generation Page section */
.core-hero {
    position: relative;
    /*background: url("https://images.unsplash.com/photo-1509395403111-3fef366f1658") center/cover no-repeat;*/

    background: linear-gradient(135deg,#84dc6c, #84dc6c);
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.core-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    /*background: rgba(0, 0, 0, 0.6);*/
}
.core-hero .content {
    position: relative;
    z-index: 2;
}
.core-hero h1 {
    font-size: 3rem;
    font-weight: bold;
}

/* Content sections */
.section-alt {
    background-color: #f7f9fc;
}
.icon-box {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}
.icon-box:hover {
    transform: translateY(-10px);
}
.icon-box i {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
}

/* Highlight card */
.highlight-card {
    /*background: linear-gradient(135deg, #003366, #0055aa);*/
    background: linear-gradient(135deg,#84dc6c, #84dc6c);
    color: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}
.highlight-card h2 {
    margin-bottom: 15px;
    font-weight: bold;
}


/* NEWS PAGE */
/*.news-hero {*/
/*    background: linear-gradient(135deg,#84dc6c, #84dc6c);*/
/*    color: #fff;*/
/*    padding: 6rem 1rem;*/
/*    text-align: center;*/
/*    position: relative;*/
/*}*/
/*.news-hero::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0; left: 0;*/
/*    width: 100%; height: 100%;*/
/*    !*background: rgba(0, 0, 0, 0.5);*!*/
/*}*/
/*.news-hero h1 {*/
/*    position: relative;*/
/*    z-index: 1;*/
/*    font-weight: 700;*/
/*    letter-spacing: 1px;*/
/*}*/

/*!* Featured News *!*/
/*.featured img {*/
/*    border-radius: 0.5rem;*/
/*}*/

/*!* News Grid Cards *!*/
/*.news-card {*/
/*    border: none;*/
/*    transition: transform 0.2s ease, box-shadow 0.2s ease;*/
/*}*/
/*.news-card:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);*/
/*}*/
/*.news-card img {*/
/*    height: 200px;*/
/*    object-fit: cover;*/
/*}*/
/*.news-card .card-body {*/
/*    min-height: 200px;*/
/*}*/
.news-hero {
    background: linear-gradient(135deg,#84dc6c, #84dc6c);
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

/* News Cards */
.news-card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e5e5;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
}
.news-card h5 {
    font-weight: bold;
    margin-bottom: 8px;
}
.news-meta {
    font-size: 0.9rem;
    color: #666;
}

/* Filters */
.filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}
/* Modals */
.news-modal-content {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/********************************
CAREERS PAGE
 *******************/

.careers-hero {
    background: linear-gradient(135deg,#84dc6c, #84dc6c);
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

/* Job Cards */
.job-card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e5e5;
}
.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
}
.job-card h5 {
    font-weight: bold;
    margin-bottom: 8px;
}
.job-meta {
    font-size: 0.9rem;
    color: #666;
}

/* Filters */
.filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}


/**************GALLERY PAGE
*******************/
/* Gallery Grid */
.gallery-img {
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    height: 250px;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.gallery-lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}


 .tagline-section {
     position: relative;
     background: url("{{asset('storage/tagline-bg.jpg')}}") center/cover no-repeat;
     min-height: 300px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

.tagline-section .overlay {
    background: rgba(0, 0, 0, 0.6); /* darker translucent overlay */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tagline-section h2 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.tagline-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}
