﻿body {
    font-family: 'Roboto', sans-serif;
}

.top-header {
    background: linear-gradient(45deg, #004d00, #009933);
    color: #fff;
    padding: 0.5rem 0;
    font-size: 14px;
}

.top_nav li, .top_nav1 li {
    list-style: none;
    display: inline;
    margin: 0 10px;
}

.top_nav a, .top_nav1 a {
    color: #fff;
    text-decoration: none;
}

.google-translate-container {
    text-align: right;
}

.header img {
    max-height: 100px;
}

.carousel-item img {
    max-height: 500px;
    object-fit: cover;
}

.navbar-nav .nav-link {
    color: #ffffff;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 16px;
}

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1); /* optional hover effect */
        border-radius: 5px;
    }

.dropdown-menu .dropdown-item {
    font-weight: 500;
    padding: 10px 20px;
}

    .dropdown-menu .dropdown-item:hover {
        background-color: #198754;
        color: #fff;
    }

.div-head {
    font-size: 20px;
    font-weight: 700;
    background-color: #1e7e34;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

.apply-loan-section {
    background: linear-gradient(135deg, #2f9e44, #007114);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#spiderweb-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.apply-loan-section .container {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.25rem;
}

.leader-card img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    margin-right: 15px;
}

.leader-card {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

footer {
    background-color: #003300;
    color: #fff;
    padding-top: 2rem;
}

    footer a {
        color: #ccc;
        text-decoration: none;
    }

        footer a:hover {
            color: #fff;
        }

#google_translate_element select {
    color: #000;
}

.hex-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

.hex-row {
    display: flex;
    justify-content: center;
    margin: -20px 0;
}

.hex {
    width: 160px;
    height: 160px;
    background-color: #0b5b20;
    margin: 10px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    position: relative;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

    .hex:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .hex img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        clip-path: inherit;
    }

.hex-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 62, 7, 0.6);
    color: white;
    font-size: 1rem;
    text-align: center;
    padding: 2px 4px;
    display: flex;
    justify-content: center;
}

.hex-centre-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    font-weight: bold;
    color: white;
    pointer-events: none;
    font-size: 1.2rem;
}

.active-tab {
    outline: 3px solid #ffd700;
    z-index: 2;
}

.tab-content > .tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

    .tab-content > .tab-pane.active {
        display: block;
        opacity: 1;
        animation: fadeInUp 0.6s ease;
    }

.sector-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1e7e34;
}

.sector-header i {
    color: #1e7e34;
}

.sector-content {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.content-box {
    border-left: 4px solid #1e7e34;
    padding-left: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease;
}

    .content-box i {
        color: #1e7e34;
    }

    .content-box p {
        margin-bottom: 5px;
    }

.btn-custom {
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #e6f9f7;
}

    .btn-custom:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        background-color: #d0f0e8;
    }

.card-thirukkural {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 128, 96, 0.2);
}

.alert-success {
    border-left: 5px solid #0b5b20;
}

.widgetheading {
    font-weight: bold;
    margin-bottom: 15px;
    color: #93ffaf;
}

.link-list li a {
    text-decoration: none;
    color: #444;
    transition: color 0.3s;
}

    .link-list li a:hover {
        color: #0b5b20;
    }

.icred {
    color: #0b5b20;
    margin-right: 5px;
}

.custom-table th {
    background-color: #0f5e00;
    color: white;
    vertical-align: middle;
}

.custom-table td {
    vertical-align: middle;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hex-row {
        flex-direction: column;
        align-items: center;
    }

    .hex-grid {
        width: 100%;
    }

    .hex {
        margin: 15px auto;
    }
}

.page-banner-section {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

.page-banner-background-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/ASSETS/WEBSITE/images/bg_page_header.png') no-repeat center center/cover;
    animation: zoomAnimation 10s infinite alternate ease-in-out;
    z-index: 1;
}

@keyframes zoomAnimation {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #498003;
    padding: 20px;
}

    .page-banner-content h1 {
        font-size: 2rem;
        padding: 10px 30px;
        border-radius: 10px;
        display: inline-block;
    }

@media (max-width: 768px) {
    .page-banner-content h1 {
        font-size: 2rem;
    }
}