/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.hindi-text {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

.english-text {
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 100%;
    max-width: 1300px; /* Increased width */
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header */
.top-header {
    background-color: #1a3a6c;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.header-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.header-info i {
    color: #e63946;
}

.language-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn.active {
    background: #e63946;
    border-color: #e63946;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Header - Logo Left Aligned */
.main-header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 400px;
    justify-content: flex-start; /* Left align logo */
}

/* Bigger Logo */
.logo-img {
    width: 100px; /* Increased from 80px */
    height: 100px; /* Increased from 80px */
    background: #1a3a6c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #e63946; /* Thicker border */
    flex-shrink: 0;
    background-image: url('../images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 0; /* Remove any left margin */
}

.logo-text-container {
    text-align: left;
    flex-grow: 1;
}

/* Bigger text for logo */
.logo-text-container h1 {
    font-size: 1.8rem; /* Increased from 1.6rem */
    color: #1a3a6c;
    line-height: 1.3;
    margin-bottom: 5px;
}

.tagline {
    color: #e63946;
    font-weight: 600;
    font-size: 1rem; /* Slightly increased */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto; /* Push to the right */
}

.ifsc-code {
    background: linear-gradient(135deg, #f0f5ff, #e8efff);
    padding: 10px 20px;
    border-radius: 8px;
    border-left: 4px solid #e63946;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a3a6c;
    box-shadow: 0 4px 8px rgba(26, 58, 108, 0.1);
}

.ifsc-code strong {
    color: #e63946;
    margin-right: 5px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1a3a6c;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background-color: #f0f5ff;
}

/* Navigation - Left Aligned Menu */
.main-nav {
    background: linear-gradient(to right, #1a3a6c, #2a4a7c);
    position: relative;
    z-index: 999;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start; /* Left align menu items */
    width: 100%;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: white;
    text-decoration: none;
    padding: 18px 18px; /* Adjusted padding */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: #e63946;
}

.nav-menu > li > a.active {
    background: #e63946;
    border-bottom-color: white;
}

.nav-menu > li > a i {
    font-size: 1.1rem;
}

/* Dropdown Menu - Left aligned */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dropdown-menu a:hover {
    background: #f0f5ff;
    color: #1a3a6c;
    padding-left: 25px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #e63946, #ff5a6e);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a3a6c, #2a4a7c);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 58, 108, 0.4);
}

/* Quick Access */
.quick-access {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #eef2f7);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: #1a3a6c;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, #1a3a6c, #e63946);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.access-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-top: 5px solid #1a3a6c;
}

.access-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-top-color: #e63946;
    color: #1a3a6c;
}

.access-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8efff, #d4e1ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s;
}

.access-card:hover .access-icon {
    background: linear-gradient(135deg, #e63946, #ff5a6e);
    transform: scale(1.1);
}

.access-icon i {
    font-size: 2.2rem;
    color: #1a3a6c;
    transition: all 0.3s;
}

.access-card:hover .access-icon i {
    color: white;
}

.access-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #1a3a6c;
}

.access-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Announcements */
.announcements {
    padding: 80px 0;
    background: white;
}

.announcements-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.notice-board, .loan-products {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.notice-header, .loan-header {
    background: linear-gradient(to right, #1a3a6c, #2a4a7c);
    color: white;
    padding: 20px 30px;
}

.notice-header h3, .loan-header h3 {
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-header i, .loan-header i {
    font-size: 1.3rem;
}

.notice-content {
    padding: 20px 30px;
}

.notice-item {
    padding: 25px 0;
    border-bottom: 1px solid #e8e8e8;
}

.notice-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notice-date {
    background: #e8efff;
    color: #1a3a6c;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.notice-item h4 {
    color: #1a3a6c;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.notice-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.loan-list {
    padding: 20px;
}

.loan-item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s;
    border-radius: 8px;
    margin-bottom: 5px;
}

.loan-item:hover {
    background: #e8efff;
    color: #1a3a6c;
    transform: translateX(5px);
    border-bottom-color: transparent;
}

.loan-item i {
    color: #1a3a6c;
    margin-right: 15px;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.loan-item span {
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Services */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #eef2f7);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-top: 5px solid #1a3a6c;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-top-color: #e63946;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #e8efff, #d4e1ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #e63946, #ff5a6e);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2.5rem;
    color: #1a3a6c;
    transition: all 0.3s;
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #1a3a6c;
    font-size: 1.4rem;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 60px;
}

.service-link {
    color: #e63946;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.service-link:hover {
    color: #1a3a6c;
    gap: 12px;
}

/* Footer */
.main-footer {
    background: linear-gradient(to bottom, #1a3a6c, #0a2a5c);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h4 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e63946;
    font-size: 1.3rem;
    color: white;
}

.footer-logo h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
    line-height: 1.4;
}

.footer-info {
    margin-top: 20px;
}

.footer-info p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.footer-info i {
    margin-right: 12px;
    margin-top: 5px;
    color: #e63946;
    min-width: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    font-size: 0.95rem;
    padding: 8px 0;
    border-left: 3px solid transparent;
    padding-left: 10px;
}

.footer-section ul li a:hover {
    color: white;
    border-left-color: #e63946;
    padding-left: 15px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background: #e63946;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e63946;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    border: none;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1a3a6c;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(26, 58, 108, 0.4);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .announcements-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .top-header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-info {
        justify-content: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 180px;
        left: 0;
        width: 100%;
        background: #1a3a6c;
        flex-direction: column;
        display: none;
        z-index: 1000;
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li > a {
        padding: 18px 25px;
        border-left: 4px solid transparent;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu > li > a.active {
        border-left-color: #e63946;
        border-bottom-color: rgba(255,255,255,0.1);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        border-radius: 0;
    }
    
    .dropdown-menu a {
        padding-left: 40px;
        color: rgba(255,255,255,0.9);
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .logo-container {
        flex: 1 1 100%;
        margin-bottom: 15px;
        justify-content: center;
        text-align: center;
        min-width: 100%;
    }
    
    .logo-img {
        width: 90px;
        height: 90px;
        margin: 0 auto;
    }
    
    .logo-text-container h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .ifsc-code {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .header-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .access-grid {
        grid-template-columns: 1fr;
    }
    
    .access-card, .service-card {
        padding: 25px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .logo-text-container h1 {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
    
    .logo-img {
        width: 80px;
        height: 80px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Print Styles */
@media print {
    .top-header, .main-nav, .mobile-menu-btn, .back-to-top {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.loading-spinner.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f0f5ff;
    border-top: 5px solid #1a3a6c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Menu bar left alignment fix */
.main-nav .container {
    padding-left: 0;
    padding-right: 0;
}

.nav-menu {
    padding-left: 10px;
}

/* Ensure logo stays left on desktop */
@media (min-width: 769px) {
    .logo-container {
        justify-content: flex-start;
        margin-left: 0;
    }
    
    .nav-menu {
        justify-content: flex-start;
        padding-left: 0;
    }
}
/* Header Right Stack Layout */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.email-login {
    background: linear-gradient(135deg, #f0f5ff, #e8efff);
    padding: 8px 15px;
    border-radius: 8px;
    border-left: 4px solid #e63946;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a3a6c;
    box-shadow: 0 4px 8px rgba(26, 58, 108, 0.1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.email-login:hover {
    background: linear-gradient(135deg, #1a3a6c, #2a4a7c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 108, 0.4);
}

.email-login:hover strong,
.email-login:hover i {
    color: white;
}

.email-login strong {
    color: #e63946;
    transition: all 0.3s;
}

.email-login i {
    font-size: 1rem;
    color: #e63946;
    transition: all 0.3s;
}

.ifsc-code {
    background: linear-gradient(135deg, #f0f5ff, #e8efff);
    padding: 6px 15px;
    border-radius: 8px;
    border-left: 4px solid #1a3a6c;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a3a6c;
    box-shadow: 0 4px 8px rgba(26, 58, 108, 0.1);
    text-align: center;
    white-space: nowrap;
}

.ifsc-code strong {
    color: #e63946;
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-right-stack {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 15px;
    }
    
    .header-right-stack {
        gap: 5px;
    }
    
    .email-login {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .ifsc-code {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .header-right-stack {
        display: none; /* Hide both on very small screens */
    }
    
    .header-right-stack.mobile-visible {
        display: flex;
        position: absolute;
        top: 100%;
        right: 15px;
        background: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 1000;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}
/* For better mobile visibility */
@media (max-width: 480px) {
    .header-right-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .email-login {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .ifsc-code {
        padding: 4px 10px;
        font-size: 0.75rem;
        display: block !important;
    }
    
    .email-login span,
    .ifsc-code span {
        display: inline-block;
    }
}
