/* Custom CSS for Maratha Arakshan Website */

/* Font and Typography */
body {
    font-family: 'Noto Sans Devanagari', 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Custom color scheme */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --orange-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --saffron-color: #ff9933;
    --white-color: #ffffff;
    --green-color: #138808;
}

/* Custom Bootstrap overrides */
.bg-primary {
    background: var(--orange-gradient) !important;
}

.btn-primary {
    background: var(--orange-gradient);
    border-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #de7f1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: var(--orange-gradient);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

/* Shivaji Photo Styling */
.shivaji-photo-container {
    position: relative;
    display: inline-block;
}

.shivaji-photo {
    max-width: 150px;
    max-height: 180px;
    border-radius: 15px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.shivaji-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 1);
}

.shivaji-title {
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: var(--orange-gradient) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

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

.card-header {
    border-radius: 15px 15px 0 0 !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Dropdown improvements */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.navbar-nav .dropdown-item {
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Mobile specific dropdown fixes */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0.125rem;
        background-color: rgba(255, 255, 255, 0.95);
        border: none;
        box-shadow: none;
    }
    
    .navbar-nav .dropdown-item {
        color: #333 !important;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-nav .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: var(--primary-color);
        color: white !important;
    }
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Statistics Cards */
.card-body i {
    transition: transform 0.3s ease;
}

.card:hover .card-body i {
    transform: scale(1.1);
}

/* Search Form */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: var(--orange-gradient);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(255, 107, 53, 0.05);
}

/* Badges */
.badge {
    border-radius: 20px;
    padding: 8px 12px;
    font-weight: 500;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 15px;
    border-left: 5px solid;
}

.alert-info {
    border-left-color: var(--info-color);
    background-color: rgba(23, 162, 184, 0.1);
}

.alert-success {
    border-left-color: var(--success-color);
    background-color: rgba(40, 167, 69, 0.1);
}

.alert-danger {
    border-left-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

footer h5 {
    color: var(--saffron-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Shivaji photo mobile responsive */
    .shivaji-photo {
        max-width: 100px !important;
        max-height: 120px !important;
    }
    
    .shivaji-title {
        font-size: 0.8rem;
    }
    
    .col-md-4.text-center {
        margin-top: 20px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    border-radius: 8px;
    margin: 0 3px;
}

.pagination .page-link:hover {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--orange-gradient);
    border-color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--primary-color);
    font-weight: bold;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Special Effects */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(255, 107, 53, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(255, 107, 53, 0.15) !important;
}

/* News Cards */
.news-card {
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.news-card:hover {
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
}

/* Indian Flag Colors */
.flag-orange {
    background-color: var(--saffron-color);
}

.flag-white {
    background-color: var(--white-color);
}

.flag-green {
    background-color: var(--green-color);
}

/* Horizontal Scrollable Cards */
.feature-cards-container {
    position: relative;
}

.feature-cards {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.feature-cards::-webkit-scrollbar {
    height: 8px;
}

.feature-cards::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.feature-cards::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.feature-cards::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card .card-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.feature-card .card-img-top {
    transition: transform 0.3s ease;
}

.feature-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Phase indicators */
.phase-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--orange-gradient);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Eligibility checker specific styles */
.eligibility-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
}

.eligibility-question {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.eligibility-result {
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    font-weight: 600;
}

.eligibility-result.eligible {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.eligibility-result.not-eligible {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border: 2px solid #dc3545;
}

/* Flowchart styles */
.flowchart-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.flowchart-step {
    background: var(--orange-gradient);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 10px 0;
    position: relative;
    text-align: center;
    font-weight: 600;
}

.flowchart-step::after {
    content: '↓';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.flowchart-step:last-child::after {
    display: none;
}

.flowchart-decision {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
    border-radius: 50px;
}

.flowchart-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.flowchart-failure {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* Document gallery */
.document-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.document-icon {
    width: 60px;
    height: 60px;
    background: var(--orange-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

/* Contact page styles */
.contact-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--orange-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* FAQ styles */
.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
    background: var(--orange-gradient);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 20px;
    display: none;
}

.faq-answer.show {
    display: block;
}

/* Language switcher */
.language-switcher {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    padding: 5px;
}

.language-btn {
    padding: 8px 15px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-btn.active {
    background: var(--orange-gradient);
    color: white;
}

/* Phase sections */
.phase-section {
    margin: 40px 0;
    padding: 30px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.phase-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.phase-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.phase-card.coming-soon {
    opacity: 0.7;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.phase-card.coming-soon .phase-card-icon {
    background: #6c757d;
}

.phase-card-icon {
    width: 60px;
    height: 60px;
    background: var(--orange-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

/* Print Styles */
@media print {
    .navbar, .btn, footer, .language-switcher {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Coming Soon Styles */
.coming-soon-card .coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
    border-radius: 15px;
}

.coming-soon-card .card-body {
    position: relative;
    z-index: 2;
}

.coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.coming-soon-badge .badge {
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* News section styles */
.news-card {
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

/* News badges */
.live-badge, .exclusive-badge, .latest-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.live-badge .badge {
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.exclusive-badge .badge {
    animation: glow 3s ease-in-out infinite alternate;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.latest-badge .badge {
    animation: bounce 2s infinite;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    from { box-shadow: 0 0 8px rgba(255, 193, 7, 0.5); }
    to { box-shadow: 0 0 15px rgba(255, 193, 7, 0.8); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.news-card .read-more {
    transition: all 0.3s ease;
}

.news-card:hover .read-more {
    transform: scale(1.05);
}

/* Mobile responsive for horizontal cards */
@media (max-width: 768px) {
    .feature-cards {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .feature-card {
        min-width: 65vw !important; /* Show one card + part of next for scrolling indication */
    }
    
    .feature-cards .card-img-container {
        height: 120px !important; /* Reduced height for mobile */
    }
    
    .feature-cards .card-body {
        padding: 12px !important; /* Reduced padding */
    }
    
    .feature-cards .card-title {
        font-size: 0.9rem !important; /* Smaller title */
    }
    
    .feature-cards .card-text {
        font-size: 0.8rem !important; /* Smaller text */
        margin-bottom: 8px !important;
    }
    
    .feature-cards .btn-sm {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }
    
    .feature-cards .fa-2x {
        font-size: 1.5rem !important; /* Smaller icons */
    }
    
    .phase-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card .card-img-top {
        height: 160px !important;
    }
    
    .live-badge, .exclusive-badge, .latest-badge {
        top: 5px;
        right: 5px;
    }
    
    .live-badge .badge, .exclusive-badge .badge, .latest-badge .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    /* Main service section improvements for mobile */
    .container h2 {
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Mobile navbar dropdown fixes */
    .navbar-collapse {
        background-color: rgba(255, 107, 53, 0.95);
        border-radius: 10px;
        margin-top: 10px;
        padding: 15px;
    }
    
    .navbar-nav .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-top: 5px;
        position: static !important;
        float: none !important;
        width: 100% !important;
        transform: none !important;
    }
    
    .navbar-nav .dropdown-item {
        color: #333 !important;
        padding: 8px 15px;
        border-radius: 5px;
        margin: 2px 0;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: var(--primary-color);
        color: white !important;
    }
    
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Force dropdown to show on mobile */
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block !important;
    }
    
    .navbar-nav .dropdown-toggle::after {
        margin-left: 0.5em;
    }
    
    /* Ensure dropdowns are clickable on mobile */
    .navbar-nav .dropdown-toggle {
        cursor: pointer;
    }
}

@media (max-width: 576px) {
    .feature-card {
        min-width: 80vw !important; /* Show one full card + 20% of next */
    }
    
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .feature-cards {
        padding-left: 10px;
        padding-right: 10px;
        gap: 15px !important;
    }
}
