* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

.container {
    max-width: 1200px; /* Increased from 1000px to allow more horizontal space */
    margin: 0 auto;
    padding: 0 15px;
}

/* Fixed Header Styles - Properly aligned elements */
.header {
    background-color: #ffffff;
    color: #333;
    padding: 15px 0;
    /* Removed: border-bottom: 1px solid #e0e0e0; */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 10px;
}

/* Left logo - MSBTE */
.left-logo {
    flex: 0 0 auto; /* Don't grow, don't shrink, auto size */
    max-width: 100px;
}

.msbte-logo {
    height: 85px; /* Reduced slightly to ensure fit */
    width: auto;
    object-fit: contain;
}

/* Center text - Properly aligned with MSBTE logo */
.header-text {
    flex: 1;
    padding-left: 10px;
    text-align: left;
    align-items: flex-start;
}

.header-text h1 {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

/* MSBTE full name */
.msbte-full-name {
    margin-top: 0;
}

.msbte-full-name p {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.msbte-full-name p.mr {
    font-weight: 500;
    margin-top: 2px;
}

/* Right logo - Satyamev Jayate - Ensure it stays on screen */
.right-logo {
    flex: 0 0 auto; /* Don't grow, don't shrink, auto size */
    max-width: 100px;
    display: flex;
    justify-content: flex-end;
}

.satyamev-logo {
    height: 85px; /* Reduced slightly to ensure fit */
    width: auto;
    object-fit: contain;
}

/* Floating Language Selector */
.floating-language-selector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #3498db; /* Solid color instead of gradient */
    border-radius: 0; /* Remove curves - make it rectangular */
    padding: 8px 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.floating-language-selector:hover {
    background: #2980b9; /* Darker on hover */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.floating-language-selector select {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 20px 2px 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 70px; /* Ensure minimum width */
}

.floating-language-selector::after {
    content: "▼";
    font-size: 8px;
    color: white;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.floating-language-selector select:focus {
    outline: none;
}

.floating-language-selector select option {
    background: white;
    color: #333;
}

/* Mobile optimizations for the language selector */
@media (max-width: 768px) {
    .floating-language-selector {
        bottom: 20px; /* Keep it visible, not at the very bottom */
        right: 20px;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .floating-language-selector {
        bottom: 15px; /* Ensure it's visible without scrolling */
        right: 15px;
        /* Make it more visible on small screens */
        box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    }
}

/* Special fix for iPhone and other mobile devices with "safe areas" */
@supports (-webkit-touch-callout: none) {
    .floating-language-selector {
        bottom: max(20px, env(safe-area-inset-bottom) + 10px);
        right: max(20px, env(safe-area-inset-right) + 10px);
    }
}

/* Simple Announcement Bar */
.announcement-bar {
    background-color: #ff9800;
    padding: 12px 0;
    overflow: hidden;
}

.announcement-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.announcement-title {
    color: #000;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.announcement-text {
    display: inline-block;
    color: #000;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

.announcement-text.paused {
    animation-play-state: paused;
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.announcement-control {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.announcement-control:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

/* Main Content */
.main {
    min-height: calc(100vh - 140px);
    padding: 30px 0;
}

/* Updated Welcome Section Styles - Completely remade */
.welcome-section {
    padding: 40px 0;
    margin-bottom: 40px;
}

/* Desktop Layout - Show only on desktop */
.desktop-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.mobile-layout {
    display: none; /* Hidden on desktop */
}

/* Desktop Left Column: Text Content */
.welcome-text {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.welcome-text h2 {
    color: #333;
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 600;
}

.welcome-text p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.scholarship-highlights {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 25px;
}

.highlight-item {
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-item strong {
    color: #333;
    font-weight: 600;
}

/* Mobile responsive for scholarship highlights */
@media (max-width: 768px) {
    .scholarship-highlights {
        padding: 12px;
        margin-bottom: 15px;
        background: transparent;
    }
    
    .highlight-item {
        font-size: 12px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
}

/* Mobile form organization */
@media (max-width: 768px) {
    .form-section {
        padding: 20px 15px;
        margin: 15px auto 0;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Desktop Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Mobile Layout Styles */
.mobile-welcome-slideshow {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.mobile-slideshow-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mobile-slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: block;
}

.mobile-slideshow-image.active {
    opacity: 1;
}

.mobile-slideshow-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.mobile-slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 24px;
    line-height: 24px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10;
}

.mobile-slideshow-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.mobile-slideshow-arrow.prev {
    left: 10px;
}

.mobile-slideshow-arrow.next {
    right: 10px;
}

.mobile-welcome-text {
    width: 100%;
    text-align: left;
    padding: 0 15px;
}

.mobile-welcome-text h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.mobile-welcome-text p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.mobile-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    padding: 0 10px;
}

.mobile-action-buttons .apply-btn,
.mobile-action-buttons .eligibility-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 48px; /* Better touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-action-buttons .apply-btn {
    background-color: #007bff;
    color: white;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.mobile-action-buttons .apply-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,123,255,0.4);
}

.mobile-action-buttons .apply-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.mobile-action-buttons .eligibility-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-action-buttons .eligibility-btn:hover {
    background-color: #e9ecef;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mobile-action-buttons .eligibility-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Desktop Action Buttons */
.apply-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-btn:hover {
    background-color: #0056b3;
}

.eligibility-btn {
    background-color: #f8f9fa;
    color: #333;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.eligibility-btn:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

/* Benefits Section */
.benefits-section {
    margin: 40px auto;
    max-width: 800px;
    padding: 0 20px;
}

.benefits-section h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

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

.benefit-card {
    padding: 20px;
    text-align: center;
}

.benefit-card h4 {
    color: #000000;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-card p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Eligibility Section */
.eligibility-section {
    margin: 40px auto;
    max-width: 800px;
    padding: 0 20px;
}

.eligibility-section h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.eligibility-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eligibility-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #333;
    position: relative;
    padding-left: 25px;
}

.eligibility-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.eligibility-list li:last-child {
    border-bottom: none;
}

/* Eligibility Checker */
.eligibility-checker {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.eligibility-checker h4 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.eligibility-checker p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.eligibility-form {
    max-width: 500px;
}

.eligibility-form .form-group {
    margin-bottom: 20px;
}

.eligibility-form .form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.eligibility-result {
    margin-top: 25px;
    padding: 20px;
    background: #d4edda;
    border-radius: 8px;
    animation: fadeInUp 0.5s ease-out;
}

.result-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.success-icon {
    margin-bottom: 15px;
    color: #333;
}

.success-icon svg {
    width: 48px;
    height: 48px;
}

.result-success h4 {
    color: #155724;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.result-success p {
    color: #155724;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.apply-now-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-now-btn:hover {
    background-color: #218838;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Section */
.faq-section {
    margin: 40px auto;
    max-width: 800px;
    padding: 0 20px;
}

.faq-section h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.faq-container {
    margin-bottom: 30px;
}

.faq-item {
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #ddd;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-answer {
    padding: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    background-color: white;
}

/* Fix for slideshow images in the welcome section */
.welcome-slideshow {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 300px; /* Set fixed height */
    width: 100%;
    max-width: 100%;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Make image cover the container */
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: block;
    border: none;
    outline: none;
}

.slideshow-image.active {
    opacity: 1;
}

.slideshow-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    line-height: 30px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10;
    padding: 0;
}

.slideshow-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slideshow-arrow.prev {
    left: 10px;
}

.slideshow-arrow.next {
    right: 10px;
}

/* Mobile responsiveness for slideshow */
@media (max-width: 768px) {
    .welcome-slideshow {
        height: 250px; /* Smaller height on tablets */
        width: 100%;
        max-width: 100%;
    }
    
    .slideshow-container {
        width: 100%;
        height: 100%;
    }
    
    .slideshow-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .welcome-slideshow {
        height: 200px; /* Even smaller height on mobile */
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .slideshow-container {
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }
    
    .slideshow-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .slideshow-arrow {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .slideshow-arrow.prev {
        left: 5px;
    }
    
    .slideshow-arrow.next {
        right: 5px;
    }
}

/* Mobile Responsiveness - Show mobile layout, hide desktop */
@media (max-width: 768px) {
    .desktop-layout {
        display: none !important;
    }
    
    .mobile-layout {
        display: block !important;
    }
    
    .mobile-slideshow-container {
        height: 220px;
    }
    
    .mobile-slideshow-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .mobile-slideshow-arrow.prev {
        left: 8px;
    }
    
    .mobile-slideshow-arrow.next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .mobile-slideshow-container {
        height: 200px;
    }
    
    .mobile-welcome-text h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .mobile-welcome-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .mobile-action-buttons {
        gap: 12px;
        margin-top: 20px;
        padding: 0 5px;
    }
    
    .mobile-action-buttons .apply-btn,
    .mobile-action-buttons .eligibility-btn {
        padding: 14px 20px;
        font-size: 15px;
        max-width: 280px;
    }
}



/* Form Section */
.form-section {
    padding: 30px 25px;
    margin: 20px auto 0;
    max-width: 700px;
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
}

.form-header h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #007bff;
    width: 25%;
    transition: width 0.3s ease;
}

.step-info {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    border-radius: 3px;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #007bff;
}

.checkbox-group label {
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    color: #333;
}

/* File input styling */
input[type="file"] {
    padding: 8px !important;
    border: 1px dashed #ddd !important;
    background-color: #f9f9f9 !important;
    border-radius: 3px !important;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #007bff !important;
    background-color: #f0f0f0 !important;
}

input[type="file"]:focus {
    border-color: #007bff !important;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    min-width: 100px;
}

.btn-primary {
    background-color: #28a745;
    color: white;
}

.btn-primary:hover {
    background-color: #218838;
}

.btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

/* Share Section */
.share-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.share-content h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.share-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.share-content strong {
    color: #333;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}


.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.whatsapp:hover {
    background-color: #1ea952;
    transform: translateY(-2px);
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.twitter:hover {
    background-color: #1a91da;
    transform: translateY(-2px);
}

/* Mobile responsive for share section */
@media (max-width: 768px) {
    .share-section {
        margin-top: 20px;
        padding: 20px 15px;
    }
    
    .share-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .share-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .share-buttons {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 200px;
    }
}

.btn-primary:focus,
.btn-secondary:focus {
    outline: none;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ecf0f1;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section h5 {
    color: #ecf0f1;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-section p {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 2px 0;
}

.footer-section ul li a:hover {
    color: #3498db;
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 13px;
}

.contact-info strong {
    color: #3498db;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.social-link {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #3498db;
    color: #2c3e50;
}

.newsletter {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.newsletter p {
    font-size: 13px;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-bottom-content p {
    color: #bdc3c7;
    font-size: 14px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-acknowledgment {
    text-align: center;
    padding-top: 15px;
}

.footer-acknowledgment p {
    color: #95a5a6;
    font-size: 12px;
    margin: 0;
    line-height: 1.5;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

/* Success Message */
.success-message {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .header {
        padding: 10px 0;
    }

    .logo-container {
        gap: 12px;
    }

    .logo {
        height: 80px; /* Doubled from 40px */
    }

    .satyamev-logo {
        height: 90px; /* Doubled from 45px */
    }

    .msbte-logo {
        height: 76px; /* Doubled from 38px */
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .header-text h1 {
        font-size: 18px;
    }

    .header-text p {
        font-size: 12px;
    }
    
    .msbte-full-name p {
        font-size: 11px;
    }
    
    .floating-language-selector {
        padding: 6px 10px;
    }
    
    .floating-language-selector select {
        padding: 4px 12px;
        font-size: 12px;
    }

    .welcome-section {
        padding: 25px 15px;
        margin: 0 10px 25px;
    }

    .welcome-section h2 {
        font-size: 20px;
    }

    .welcome-section p {
        font-size: 14px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .benefit-card {
        padding: 15px;
    }

    .eligibility-list li {
        font-size: 14px;
        padding: 10px 0 10px 20px;
    }

    .faq-question {
        padding: 12px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 12px;
        font-size: 13px;
    }

    .form-section {
        padding: 20px 15px;
        margin: 20px 10px 0;
    }

    .form-header h3 {
        font-size: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .form-navigation button {
        width: 100%;
    }

    .btn-secondary {
        order: 2;
    }

    .btn-primary {
        order: 1;
    }

    .apply-btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
    }

    .checkbox-group {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .welcome-section h2 {
        font-size: 18px;
    }

    .form-header h3 {
        font-size: 16px;
    }

    .form-step h4 {
        font-size: 15px;
    }

    .form-section {
        padding: 15px 10px;
    }

    .header {
        padding: 6px 0;
    }

    .main {
        padding: 15px 0;
    }

    .logo-container {
        gap: 10px;
    }

    .logo {
        height: 68px; /* Doubled from 34px */
    }

    .satyamev-logo {
        height: 76px; /* Doubled from 38px */
    }

    .msbte-logo {
        height: 64px; /* Doubled from 32px */
    }

    /* Footer Mobile Responsiveness */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .footer-section ul li a {
        font-size: 13px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-links {
        justify-content: center;
        gap: 15px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-acknowledgment p {
        font-size: 11px;
    }
}

/* College Search Dropdown */
.form-group {
    position: relative;
}

.college-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 300px; /* Increased height for better scrolling */
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #e9ecef;
}

.college-dropdown.show {
    display: block;
}

.college-option {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    position: relative;
}

.college-option:hover {
    background-color: #f8f9fa;
}

.college-option:last-child {
    border-bottom: none;
}

.college-option.selected {
    background-color: #007bff;
    color: white;
}

.college-option.no-results {
    color: #6c757d;
    font-style: italic;
    cursor: default;
    background-color: #f8f9fa;
}

.college-option.no-results:hover {
    background-color: #f8f9fa;
}

.college-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.college-option.selected .college-name {
    color: white;
}

/* Custom scrollbar for dropdown */
.college-dropdown::-webkit-scrollbar {
    width: 6px;
}

.college-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.college-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.college-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Disabled input and select styling */
.form-group input:disabled,
.form-group select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.form-group input:disabled::placeholder {
    color: #adb5bd;
}

.form-group select:disabled option {
    color: #6c757d;
}

/* Select element specific styling */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.form-group select:disabled {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Course dropdown styles removed - now using select element */

/* Focus improvements for accessibility */
*:focus {
    outline: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Loading state */
.btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Print Styles */
@media print {
    .header, .footer, .form-navigation, .language-selector {
        display: none !important;
    }

    .form-section {
        box-shadow: none;
        padding: 0;
    }

    .form-step {
        display: block !important;
        page-break-after: always;
    }

    .form-step:last-child {
        page-break-after: auto;
    }
}

/* Government Officials Section */
.officials-section {
    margin: 50px auto 40px;
    max-width: 100%; /* Changed from fixed width to full width */
    padding: 0 20px;
}

.officials-section h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.officials-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Force 5 columns on larger screens */
    gap: 15px; /* Reduced gap to fit all officials */
    margin-bottom: 30px;
}

.official-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.official-img {
    width: 120px; /* Made slightly smaller to fit in one row */
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid #f0f0f0;
}

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

.official-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.official-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Responsive styles for officials section */
@media (max-width: 1024px) {
    .officials-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for medium screens */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .officials-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller tablets */
        gap: 20px;
    }
    
    .official-img {
        width: 100px;
        height: 100px;
    }
    
    .official-info h4 {
        font-size: 15px;
    }
    
    .official-info p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .officials-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 25px;
    }
    
    .official-card {
        flex-direction: row;
        text-align: left;
        padding: 10px;
    }
    
    .official-img {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .official-info {
        flex: 1;
    }
}

/* Ministry Logos Section */
.ministry-logos-section {
    margin: 50px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.ministry-logos-section h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.logo-carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.logo-carousel {
    display: flex;
    transition: transform 1s ease;
    gap: 30px;
}

.ministry-logo {
    flex: 0 0 calc(20% - 30px); /* 5 logos visible at once */
    min-width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
}

.ministry-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive styles for ministry logos */
@media (max-width: 1024px) {
    .ministry-logo {
        flex: 0 0 calc(25% - 30px); /* 4 logos visible on medium screens */
    }
}

@media (max-width: 768px) {
    .ministry-logo {
        flex: 0 0 calc(33.333% - 30px); /* 3 logos visible on smaller tablets */
    }
}

@media (max-width: 480px) {
    .ministry-logo {
        flex: 0 0 calc(50% - 30px); /* 2 logos visible on mobile */
    }
}


/* Updated Welcome Section Mobile Fixes */
@media (max-width: 768px) {
    .welcome-container {
        flex-direction: column;
        gap: 20px;
    }

    .welcome-text {
        order: 2;
        text-align: left;
        width: 100%;
        padding-right: 0;
    }

    .welcome-slideshow {
        order: 1;
        height: 250px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .slideshow-container {
        width: 100%;
        height: 100%;
        border-radius: 8px;
        overflow: hidden;
    }

    .slideshow-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .apply-btn, .eligibility-btn {
        width: 100%;
        margin: 0;
    }

    .announcement-container {
        gap: 10px;
    }

    .announcement-title {
        font-size: 14px;
    }

    .moving-text span {
        font-size: 13px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .welcome-slideshow {
        height: 200px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .slideshow-container {
        border-radius: 6px;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .slideshow-image {
        border-radius: 6px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    /* Ensure images are visible on mobile */
    .slideshow-image.active {
        opacity: 1;
        z-index: 2;
    }
    
    .slideshow-image:not(.active) {
        opacity: 0;
        z-index: 1;
    }
}