/*--------------------------------------------------------------
# Home Hero Section
--------------------------------------------------------------*/
.home-hero {
    padding: 0 !important;
    margin: 0 !important;
}

.home-hero.section {
    padding: 0 !important;
}


/* Carousel Styling */
#heroCarousel {
    position: relative;
    overflow: hidden;
    max-height: 500px;
    height: 500px;
    background: transparent;
}

#heroCarousel .carousel-inner {
    position: relative;
    background: transparent;
}

#heroCarousel .carousel-item {
    position: relative;
}

#heroCarousel .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    opacity: 1;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    z-index: 15;
    position: absolute;
    border: none;
    outline: none;
}

#heroCarousel .carousel-control-prev:focus,
#heroCarousel .carousel-control-next:focus {
    outline: none;
    box-shadow: none;
}

#heroCarousel .carousel-control-prev {
    left: 20px;
}

#heroCarousel .carousel-control-next {
    right: 20px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: rgba(0,0,0,0.7) !important;
}

/* Ensure carousel controls don't create overlay effect */
#heroCarousel .carousel-control-prev::before,
#heroCarousel .carousel-control-next::before {
    content: none;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    background-color: transparent;
    width: 20px;
    height: 20px;
}

#heroCarousel .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
}

#heroCarousel .carousel-indicators button.active {
    background: #bf3903 !important;
    border-color: #bf3903 !important;
}

/* Carousel Caption */
#heroCarousel .carousel-caption {
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 5;
}

#heroCarousel .carousel-caption h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#heroCarousel .carousel-caption p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#heroCarousel .carousel-caption .btn {
    background: #bf3903 !important;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
}

#heroCarousel .carousel-caption .btn:hover {
    background: #bf3903 !important;
    color: white;
}

#heroCarousel .carousel-caption .text-orange {
    color: #bf3903 !important;
}

#heroCarousel .carousel-caption .hero-btn {
    background: #bf3903 !important;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
}

/* Officials Section - Blended Mixed Tricolor Background (Indian Flag) */
.officials-tricolor-bg {
    background: #f8f9fa !important;
    position: relative;
    overflow: hidden;
    max-height: 500px;
    height: 500px;
    padding: 20px;
}

/* Ensure container doesn't hide content */
#home-hero .container-fluid {
    overflow: visible;
}

#home-hero .row {
    overflow: visible;
}

/* Base gradient - diagonal blend */
.officials-tricolor-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    right: -20%;
    bottom: -50%;
    background: 
        radial-gradient(ellipse at top left, rgba(255, 153, 51, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(255, 153, 51, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at bottom left, rgba(19, 136, 8, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at bottom right, rgba(19, 136, 8, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
    animation: subtleShift 20s ease-in-out infinite;
}

/* Additional overlay for more blending */
.officials-tricolor-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(255, 153, 51, 0.08) 0%, transparent 30%, transparent 70%, rgba(19, 136, 8, 0.08) 100%),
        linear-gradient(-45deg, rgba(255, 153, 51, 0.06) 0%, transparent 40%, transparent 60%, rgba(19, 136, 8, 0.06) 100%),
        radial-gradient(circle at 30% 40%, rgba(255, 153, 51, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(19, 136, 8, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
    opacity: 0.7;
}

/* Subtle animation for dynamic effect */
@keyframes subtleShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(2%, 1%) scale(1.02);
    }
}

.officials-tricolor-bg > * {
    position: relative;
    z-index: 1;
}

.officials-content-wrapper {
    position: relative;
    z-index: 2;
}

.officials-grid {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
}

/* Ensure 2 columns on all devices */
.officials-grid .col-6,
.officials-grid .col-sm-6,
.officials-grid .col-xs-6 {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
}

/* Officials Section Styling - 2x2 Grid */
.official-card {
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
    padding: 10px;
}

.official-card:hover {
    transform: translateY(-5px);
}

.official-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.official-card:hover .official-image-wrapper {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
}

.official-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.official-card h5 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.official-card p {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

/* Ensure equal height for grid items */
#home-hero .col-lg-4 .row > .col-6 {
    display: flex;
    flex: 0 0 50%;
    max-width: 50%;
}

#home-hero .col-lg-4 .row > .col-6 > .official-card {
    width: 100%;
}

/* Force 2-column layout on all screen sizes */
#home-hero .col-lg-4 .row {
    display: flex;
    flex-wrap: wrap;
}

#home-hero .col-lg-4 .row > .col-6,
#home-hero .col-lg-4 .row > .col-sm-6,
#home-hero .col-lg-4 .row > .col-xs-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

/* Ensure all official cards are visible */
.official-card {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure download button is visible */
.download-btn-col {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.download-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/*--------------------------------------------------------------
# App Download Section
--------------------------------------------------------------*/
.app-download-section {
    background: linear-gradient(135deg, #1a3a5f 0%, #2d5a87 100%);
    padding: 0;
    height: 100px;
    max-height: 100px;
    overflow: hidden;
}

.app-download-section .container-fluid {
    overflow: visible;
}

.download-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.85) 0%, rgba(45, 90, 135, 0.75) 100%);
    z-index: 0;
}

.download-bg-pattern {
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.85) 0%, rgba(45, 90, 135, 0.75) 100%), url('../new/odishadistrict.png') center/cover;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.download-content-col {
    padding: 0;
    overflow: hidden;
}

.download-content-overlay {
    z-index: 2;
    padding: 0 30px;
}

.app-download-section h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.app-download-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    line-height: 1.3;
}

.download-btn {
    background: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-width: 180px;
    justify-content: center;
    min-height: 50px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        #34a853 0%, 
        #34a853 25%,
        #fbbc04 25%,
        #fbbc04 50%,
        #ea4335 50%,
        #ea4335 75%,
        #4285f4 75%,
        #4285f4 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.download-btn:hover::before {
    opacity: 0.1;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    background: #f8f9fa !important;
    color: #333;
    border-color: #34a853;
}

.download-btn .google-play-icon {
    /* width: 24px;
    height: 24px; */
    object-fit: contain;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.download-btn .text-start {
    line-height: 1.1;
}

.download-btn .text-start span:first-child {
    font-size: 9px;
    color: #666;
    display: block;
}

.download-btn .text-start span:last-child {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    display: block;
}

.download-label {
    font-size: 9px;
    color: #666;
    display: block;
}

.download-text {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    display: block;
}

.app-download-section .col-lg-4 {
    padding: 0 20px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    #home-hero .col-lg-8 {
        max-height: 400px;
        height: 400px;
    }
    
    #heroCarousel {
        max-height: 400px;
        height: 400px;
    }
    
    #home-hero .col-lg-4 {
        max-height: none !important;
        height: auto !important;
        min-height: 400px;
        overflow: visible !important;
    }
    
    .officials-tricolor-bg {
        max-height: none !important;
        height: auto !important;
        min-height: 400px;
        overflow: visible !important;
        padding: 20px !important;
    }
    
    .officials-content-wrapper {
        overflow: visible !important;
        min-height: auto;
    }
    
    /* Ensure 2 columns on tablets */
    .officials-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }
    
    .officials-grid .col-6,
    .officials-grid .col-sm-6,
    .officials-grid .col-xs-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: flex !important;
    }
    
    #home-hero .col-lg-4 .row {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }
    
    #home-hero .col-lg-4 .row > .col-6,
    #home-hero .col-lg-4 .row > .col-sm-6,
    #home-hero .col-lg-4 .row > .col-xs-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: flex !important;
    }
    
    .official-image-wrapper {
        width: 90px !important;
        height: 90px !important;
    }
    
    .official-card {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #heroCarousel .carousel-caption {
        padding: 20px !important;
        display: block !important;
    }
    
    #heroCarousel .carousel-caption h1 {
        font-size: 36px !important;
        margin-bottom: 12px !important;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 17px !important;
        margin-bottom: 18px !important;
    }
    
    #heroCarousel .carousel-caption .btn {
        padding: 11px 25px !important;
        font-size: 15px !important;
    }
    
    .official-card h5 {
        font-size: 12px !important;
    }
    
    .official-card p {
        font-size: 10px !important;
    }
    
    .app-download-section {
        height: auto !important;
        max-height: none !important;
        min-height: 150px;
        padding: 20px 0 !important;
        overflow: visible !important;
    }
    
    .app-download-section .row {
        flex-direction: row;
    }
    
    .app-download-section .col-lg-8,
    .app-download-section .col-lg-4 {
        min-height: 100px;
    }
    
    .app-download-section h3 {
        font-size: 20px !important;
    }
    
    .app-download-section p {
        font-size: 12px !important;
    }
    
    .download-btn-col {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .download-btn {
        padding: 6px 12px !important;
        min-width: 160px !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .download-btn .google-play-icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    .download-btn .text-start span:first-child {
        font-size: 8px !important;
    }
    
    .download-btn .text-start span:last-child {
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    #home-hero .col-lg-8 {
        max-height: 350px;
        height: 350px;
    }
    
    #heroCarousel {
        max-height: 350px;
        height: 350px;
    }
    
    #home-hero .col-lg-4 {
        max-height: none !important;
        height: auto !important;
        min-height: 350px;
    }
    
    .officials-tricolor-bg {
        max-height: none !important;
        height: auto !important;
        min-height: 350px;
        padding: 20px !important;
        overflow: visible !important;
    }
    
    .officials-content-wrapper {
        min-height: auto;
        padding: 10px 0;
    }
    
    .officials-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }
    
    .officials-grid .col-6,
    .officials-grid .col-sm-6,
    .officials-grid .col-xs-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: flex !important;
    }
    
    #home-hero .col-lg-4 .row {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }
    
    #home-hero .col-lg-4 .row > .col-6,
    #home-hero .col-lg-4 .row > .col-sm-6,
    #home-hero .col-lg-4 .row > .col-xs-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: flex !important;
    }
    
    .official-image-wrapper {
        width: 80px !important;
        height: 80px !important;
    }
    
    #heroCarousel .carousel-caption {
        padding: 15px !important;
        display: block !important;
    }
    
    #heroCarousel .carousel-caption h1 {
        font-size: 32px !important;
        margin-bottom: 10px !important;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }
    
    #heroCarousel .carousel-caption .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .official-card h5 {
        font-size: 11px !important;
    }
    
    .official-card p {
        font-size: 9px !important;
    }
    
    .app-download-section {
        height: auto !important;
        max-height: none !important;
        min-height: 150px;
        padding: 20px 0 !important;
        overflow: visible !important;
    }
    
    .app-download-section .row {
        flex-direction: column;
    }
    
    .app-download-section .col-lg-8,
    .app-download-section .col-lg-4 {
        min-height: 100px;
        padding: 15px !important;
    }
    
    .download-content-overlay {
        padding: 15px !important;
    }
    
    .app-download-section h3 {
        font-size: 18px !important;
    }
    
    .app-download-section p {
        font-size: 11px !important;
    }
    
    .download-btn-col {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .download-btn {
        padding: 8px 14px !important;
        min-width: 160px !important;
        width: auto !important;
        display: inline-flex !important;
    }
    
    .download-btn .google-play-icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    .download-btn .text-start span:first-child {
        font-size: 8px !important;
    }
    
    .download-btn .text-start span:last-child {
        font-size: 12px !important;
    }
}

@media (max-width: 576px) {
    #home-hero .row {
        flex-direction: column;
    }
    
    #home-hero .col-lg-8 {
        max-height: 300px;
        height: 300px;
    }
    
    #heroCarousel {
        max-height: 300px;
        height: 300px;
    }
    
    #home-hero .col-lg-4 {
        max-height: none !important;
        height: auto !important;
        padding: 20px !important;
        overflow: visible !important;
    }
    
    .officials-tricolor-bg {
        max-height: none !important;
        height: auto !important;
        padding: 20px !important;
        overflow: visible !important;
    }
    
    .officials-content-wrapper {
        overflow: visible !important;
    }
    
    /* Keep 2x2 grid on mobile - 2 photos per row */
    .officials-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        margin: 0;
    }
    
    .officials-grid .col-6,
    .officials-grid .col-sm-6,
    .officials-grid .col-xs-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: flex !important;
        padding: 8px;
    }
    
    #home-hero .col-lg-4 .row {
        margin: 0;
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }
    
    #home-hero .col-lg-4 .row > .col-6,
    #home-hero .col-lg-4 .row > .col-sm-6,
    #home-hero .col-lg-4 .row > .col-xs-6 {
        padding: 8px;
        display: flex !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .official-card {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .official-image-wrapper {
        width: 70px !important;
        height: 70px !important;
    }
    
    #heroCarousel .carousel-caption {
        padding: 10px !important;
        display: block !important;
    }
    
    #heroCarousel .carousel-caption h1 {
        font-size: 24px !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 14px !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
    }
    
    #heroCarousel .carousel-caption .btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
    
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 40px !important;
        height: 40px !important;
    }
    
    #heroCarousel .carousel-control-prev {
        left: 10px !important;
    }
    
    #heroCarousel .carousel-control-next {
        right: 10px !important;
    }
    
    .official-card h5 {
        font-size: 10px !important;
    }
    
    .official-card p {
        font-size: 8px !important;
    }
    
    .app-download-section {
        height: auto !important;
        max-height: none !important;
        padding: 20px 0 !important;
        overflow: visible !important;
    }
    
    .app-download-section .row {
        flex-direction: column;
        margin: 0;
    }
    
    .app-download-section .col-lg-8,
    .app-download-section .col-lg-4 {
        min-height: 100px;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .app-download-section .col-lg-8 {
        padding: 20px 15px !important;
    }
    
    .app-download-section .col-lg-4 {
        padding: 15px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .download-btn-col {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .download-btn {
        min-width: 180px !important;
        width: auto !important;
        display: inline-flex !important;
        margin: 0 auto;
    }
    
    .download-content-overlay {
        padding: 15px !important;
    }
}

/* Extra small devices - maintain 2 columns */
@media (max-width: 400px) {
    /* Keep 2x2 grid even on very small screens */
    .officials-grid .col-6,
    .officials-grid .col-sm-6,
    .officials-grid .col-xs-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: flex !important;
        padding: 5px !important;
    }
    
    #home-hero .col-lg-4 .row > .col-6,
    #home-hero .col-lg-4 .row > .col-sm-6,
    #home-hero .col-lg-4 .row > .col-xs-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 5px !important;
    }
    
    .official-image-wrapper {
        width: 60px !important;
        height: 60px !important;
    }
    
    .official-card h5 {
        font-size: 9px !important;
    }
    
    .official-card p {
        font-size: 7px !important;
    }
}
