@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Montserrat:wght@500;700;800&display=swap');


body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: #4C5768;
    background-color: #F8F9FA;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; 
    color: #0A192F;
    margin-bottom: 0.5em;
    font-weight: 700;
}

p {
    margin-bottom: 1.5em;
    color: #4C5768;
    font-weight: 300;
}

a {
    color: #0A192F;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FDC43E;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

.text-center { text-align: center; }


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0A192F;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.preloader-container {
    position: relative; 
}

.preloader-logo {
    width: 120px;
    height: 120px;
    z-index: 10;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    border-radius: 50%;
}

.preloader-circle {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    border: 8px solid rgba(253, 196, 62, 0.2); 
    border-top: 8px solid #FDC43E; 
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

header {
    background: #FFFFFF;
    padding: 10px 0;
    border-bottom: 3px solid #FDC43E;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

header .logo img {
    height: 55px; 
    filter: none; 
}

.navbar {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar li a {
    color: #0A192F;
    text-transform: uppercase;
    font-weight: 500;
    padding: 15px 18px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.navbar li a:hover,
.navbar li a.active {
    color: #0A192F;
    background-color: #FDC43E;
}

.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #0A192F;
    transition: all 0.3s ease-in-out;
}


.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('hero.webp') no-repeat center center/cover;
    height: 80vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.hero-content {
    z-index: 1;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 0.3em;
    color: #FFFFFF;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 1.8em;
    margin-top: 0.5em;
    font-weight: 500;
    color: #FDC43E; 
}

.hero-content p {
    font-size: 1.1em;
    margin-top: 1.5em;
    color: #D8E3E8;
}

.btn {
    display: inline-block;
    background: #FDC43E;
    color: #0A192F;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 30px;
    font-size: 1.1em;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(253, 196, 62, 0.4);
    text-transform: uppercase;
}


.btn:hover {
    background-color: #aeb1b5;
    transform: translateY(-1px);
        }

section {
    padding: 80px 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #EAEAEA;
}

section:nth-of-type(even) {
    background-color: #F8F9FA;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    position: relative;
    font-weight: 800;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: #FDC43E;
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2em;
}

.service-item {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #0A192F;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top-color: #FDC43E;
}

.service-item h3 {
    color: #0A192F;
    margin-bottom: 10px;
    font-size: 1.6em;
    font-weight: 700;
}

.service-item p {
    color: #4C5768;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.8);
    color: #FFFFFF;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 500;
}


.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 450px; 
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    color: #FFFFFF;
    padding: 15px;
    text-align: center;
    font-size: 1em;
    font-weight: 500;
}


.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(253, 196, 62, 0.8); 
    color: #0A192F;
}


.carousel-indicators {
    text-align: center;
    padding: 10px 0;
    background-color: #0A192F;
}
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #4C5768;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
    background-color: #FDC43E;
}


.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}
.contact-form-container, .contact-info-container {
    flex: 1;
    min-width: 300px;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #FDC43E;
}
.contact-form-container:hover, .contact-info-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    color: #0A192F;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}
.contact-form input, .contact-form textarea, .contact-form select { /* Added select */
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #D8E3E8;
    background: #F8F9FA; 
    color: #0A192F;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none;
    border-color: #FDC43E;
    box-shadow: 0 0 0 2px rgba(253, 196, 62, 0.2);
}
.contact-form button {
    width: 100%;
}
.contact-info-container h3 {
    color: #0A192F;
    font-size: 1.8em;
    margin-bottom: 20px;
}
.contact-info-container p {
    margin-bottom: 15px;
    color: #4C5768;
    font-size: 1em;
    display: flex;
    align-items: flex-start;
}
.contact-info-container p strong {
    color: #0A192F;
    margin-right: 5px;
}
.contact-info-container p .icon {
    font-size: 1.4em;
    color: #FDC43E;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}
.status-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease;
}
.status-message.success { 
    background-color: #d4edda; 
    color: #155724; 
    border-color: #c3e6cb; 
}
.status-message.error { 
    background-color: #f8d7da; 
    color: #721c24; 
    border-color: #f5c6cb; 
}
.status-message.visible {
    opacity: 1;
}

/* --- ADMIN DASHBOARD & VERIFICATION STYLES --- */

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 70vh;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: flex-start;
}

.admin-panel {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #0A192F;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.member-card {
    background: #F8F9FA;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #FDC43E;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-card h4 {
    margin: 0;
    font-size: 1.1em;
    color: #0A192F;
}

.member-card h5 {
    margin: 0;
    font-size: 1em;
    color: #0A192F;
}

.member-card p {
    margin: 0;
    font-size: 0.9em;
    color: #4C5768;
}

.member-actions button {
    padding: 8px 15px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.approve-btn {
    background-color: #1aae6b;
    color: white;
}
.approve-btn:hover {
    background-color: #14804d;
}

.reject-btn {
    background-color: #dc3545;
    color: white;
}
.reject-btn:hover {
    background-color: #a71d2a;
}

/* Verification Form */
#verification-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid;
    display: none;
}

#verification-result.found {
    border-color: #1aae6b;
    background-color: #e6f7ee;
    color: #155724;
}

#verification-result.not-found {
    border-color: #dc3545;
    background-color: #fcebeb;
    color: #721c24;
}

/* --- ORGANOGRAM STYLES (Simple CSS Tree) --- */
.organogram-page-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow-x: auto; 
    padding: 20px 0;
}


.organogram-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 50px;
    /*transform-origin: top center; */
    width: 100%;
    padding-bottom: 20px;
}



.node {
    padding: 15px 25px;
    margin: 10px 0;
    background: #FFFFFF;
    border: 2px solid #0A192F;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.node.top {
    background: #FDC43E;
    color: #0A192F;
    border-color: #e6b335;
    margin-bottom: 40px;
}

.node h4 {
    margin: 0;
    font-size: 1.2em;
    color: inherit;
}

.node h5 {
    margin: 0;
    font-size: 1em;
    color: inherit;
}

.node p {
    margin: 0;
    font-size: 0.9em;
    color: #4C5768;
}
.node.top p {
    color: #0A192F;
}

.line {
    width: 2px;
    height: 30px;
    background: #0A192F;
    margin: 0 auto;
    position: relative;
}


.branch {

    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 30px;
    position: relative;
    width: max-content; 
    min-width: 100%; 

}



.branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #0A192F;
    z-index: 1;
}


.branch > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.branch > div::before {
    content: '';
    position: absolute;
    
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px; 
    background: #0A192F;
    z-index: 2;
}


@media (max-width: 992px) {
    .container {
        width: 95%; 
    }
    
    
    header {
        padding: 8px 0;
    }
    header .logo img {
        height: 40px;
    }
    header .container {
        padding: 0 15px;
        align-items: center;
    }

    
    section h2 {
        font-size: 2em;
    }
    .service-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .service-item, .contact-form-container, .contact-info-container {
        padding: 25px;
    }

    .menu-toggle {
        display: block; 
    }
    .navbar ul {
        display: flex;
        flex-direction: column;
        width: 80vw;
        max-width: 300px;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        padding-top: 56px;
        margin-top: 0;
        background-color: #0A192F;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.4);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
    }
    .navbar ul.active {
        transform: translateX(0);
    }
    .navbar li a {
        color: #FFFFFF;
        padding: 15px 20px; 
        text-align: left;
        border-bottom: 1px solid rgba(253, 196, 62, 0.1);
    }
    .navbar li a:hover {
        background-color: #FDC43E;
        color: #0A192F;
    }
    

    
 .organogram-chart {
    width: 100%;
    min-width: unset;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.branch {
    flex-direction: column;
    gap: 0;
    padding-top: 0;
    width: 100%;
    min-width: unset;
    align-items: center; 
}

.branch::before {
    display: none;
}
.branch > div::before {
    display: none;
}


.line {
    width: 2px;
    height: 30px;
    background: #0A192F;
    margin: 0 auto;
    position: relative;
}

.node {
    
    min-width: 180px; 
    max-width: 90%;
    margin: 5px auto;
    text-align: center;
}


.branch > div {
        width: 100%;
        padding-bottom: 20px; 
    }
    
.branch > div .node {
    margin: 0;
    min-width: auto;
}

.branch > div::before {
        content: none;
    }
    
.node {
    margin: 0 auto;
    }
    
.line {
    height: 20px;
    }

 
.branch > div:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 20px;
        background: #0A192F;
        z-index: 1;
    }


.branch > div:last-child {
    padding-bottom: 0;
    }

.branch > div:last-child::after {
    content: none;
    }
    
}

.branch > div {
    position: relative;
    padding-bottom: 20px;
}


@media (max-width: 576px) {
    .hero {
        height: 55vh;
        padding: 20px;
    }
    .hero-content h1 {
        
        font-size: 1.5em; 
        line-height: 1.2;
    }
    .hero-content h2 {
        font-size: 1.1em;
    }
    .btn {
        padding: 10px 25px;
        font-size: 1em;
    }
    .hidden-on-mobile {
        display: none; 
    }
}

.member-form-section {
            padding: 40px 20px;
            background-color: #F8F9FA;
            min-height: calc(100vh - 150px);
        }
        .auth-card {
            background-color: #ffffff;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            max-width: 650px; /* Wider for better field alignment */
            margin: 0 auto;
            text-align: center;
            border-top: 5px solid #0A192F;
        }
        .auth-card p {
            color: #4C5768;
            margin-bottom: 30px;
        }
        /* Input Layout Grid (New for Registration page) */
        .form-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px 30px;
            margin-top: 20px;
        }
        @media (min-width: 600px) {
            .form-grid {
                grid-template-columns: 1fr 1fr;
            }
            /* Span the password fields on one column */
            .input-group.full-width {
                grid-column: 1 / span 2;
            }
        }
        
.input-group {
    position: relative;
    text-align: left;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0A192F;
    font-size: 0.95em;
}

.input-wrapper {
  position: relative; /* parent for absolute positioning */
}

.input-icon {
  position: absolute;
  top: 50%;             /* middle of input */
  left: 15px;           /* horizontal padding */
  color: #FDC43E;
  font-size: 1.1em;
  transform: translateY(-50%); /* adjust vertically */
  pointer-events: none;        /* prevents icon blocking clicks */
}

.input-with-icon {
  padding-left: 40px; /* make space for icon */
  height: 40px;       /* ensure consistent height */
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Added padding-left for icon clearance */
    border: 1px solid #D8E3E8;
    background: #F8F9FA;
    color: #0A192F;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}   
        
.input-group input:focus {
    outline: none;
    border-color: #FDC43E;
    box-shadow: 0 0 0 2px rgba(253, 196, 62, 0.2);
    }
    
.auth-card .btn {
    width: 100%;
    margin-top: 30px;
    }
    
.form-footer {
    margin-top: 25px;
    font-size: 0.9em;
    }
    
.form-footer a {
    color: #4C5768;
    }
    
.form-footer a:hover {
    color: #FDC43E;
    }

/* --- FOOTER STYLES (New Enhancements) --- */

/* Base Footer (Kept from your original CSS, ensuring colors are fine) */
footer {
    text-align: center;
    padding: 30px 0;
    background: #0A192F; /* Navy Blue */
    color: #D8E3E8;
    font-size: 0.9em;
}

/* New Grid for Footer Content */
.footer-grid {
    display: grid;
    grid-template-columns: 3fr 1fr; 
    gap: 40px;
    text-align: left;
}

/* Style for column titles */
.footer-col h4 {
    color: #FDC43E; /* Gold/Yellow accent */
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Style for footer links */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li a {
    color: #D8E3E8; /* Light gray text */
    padding: 5px 0;
    display: block;
    font-weight: 300;
}

.footer-col ul li a:hover {
    color: #FDC43E; /* Gold/Yellow on hover */
}

/* Social Icons */
.social-icons a {
    color: #D8E3E8;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #FDC43E;
}

/* Ensure copyright column text uses the light color */
.copyright-col p {
    color: #D8E3E8; 
    font-weight: 300;
}

/* Responsive adjustment for footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns vertically on mobile */
        text-align: center;
    }
    .footer-col {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(253, 196, 62, 0.1); /* Subtle divider */
    }
    .social-col {
        border-bottom: none; /* Remove border from the last column */
    }
    .social-icons {
        text-align: center;
        margin-top: 10px;
    }
    .social-icons a {
        margin: 0 10px;
    }
}