/* 
 * District Pages Stylesheet
 * Centralized CSS for all Bihar district internship training pages
 * Reemzet Training Center
 */

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section - Enhanced Professional Design */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    color: white;
    padding: 160px 20px 80px;
    text-align: center;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

/* Decorative Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.hero * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.25;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 1100px;
    width: 100%;
}

.hero .highlight {
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    display: inline;
    animation: glow 2s ease-in-out infinite alternate;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes glow {
    from {
        text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    }
    to {
        text-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
    }
}

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

.hero > p {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.65;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 1000px;
    width: 100%;
}

.hero > p strong {
    font-weight: 600;
    word-wrap: break-word;
}

/* College Info Box - Modern Card Design - BELOW HERO TEXT */
.colleges {
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    padding: 30px 35px;
    border-radius: 18px;
    margin: 35px auto 25px;
    max-width: 900px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.colleges h3 {
    font-size: 1.4rem;
    margin-bottom: 22px;
    color: #667eea;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.colleges h3 i {
    font-size: 1.5rem;
}

.colleges p {
    font-size: 1rem;
    margin-bottom: 14px;
    line-height: 1.7;
    color: #555;
    text-align: left;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.colleges p:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.colleges p:last-child {
    margin-bottom: 0;
    border-left-color: #ffc107;
}

.colleges p strong {
    font-weight: 700;
    color: #333;
    display: inline-block;
    min-width: 170px;
}

/* Buttons Container - Proper Layout */
.hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    background: white;
    color: #667eea;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin: 10px 8px 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    white-space: nowrap;
    min-width: 240px;
}

.hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.hero .btn:hover::before {
    left: 100%;
}

.hero .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn:active {
    transform: translateY(-2px) scale(1.02);
}

.hero .btn i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Section Layouts */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Card Styles */
.card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #667eea;
}

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

.card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.card p {
    color: #666;
    line-height: 1.8;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    padding: 8px 0;
    color: #666;
}

.card ul li:before {
    content: "✓ ";
    color: #667eea;
    font-weight: bold;
    margin-right: 8px;
}

/* Background Colors */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.bg-white {
    background: white;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-box {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffd700;
}

.stat-label {
    font-size: 1.1rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.testimonial-card .stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-card .author {
    font-weight: 600;
    color: #333;
}

.testimonial-card .college {
    color: #999;
    font-size: 0.9rem;
}

/* Process Section */
.process-section {
    position: relative;
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.process-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.process-content h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.process-content p {
    color: #666;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefits-list li i {
    color: #667eea;
    font-size: 1.5rem;
}

/* Call to Action Section */
.cta {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.cta p:last-of-type {
    margin-bottom: 30px;
}

/* CTA Buttons - Specific Styling */
.cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: #f5576c;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 10px 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    min-width: 240px;
}

.cta .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.95);
    border-color: white;
}

.cta .btn i {
    font-size: 1.1rem;
}

/* FAQ Section - Enhanced Professional Design */
.faq-section {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FAQ Item Container */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.faq-item.active {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 28px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    color: #667eea;
}

.faq-item.active .faq-question {
    color: #667eea;
    padding-bottom: 20px;
}

/* FAQ Icon */
.faq-question i {
    font-size: 1.3rem;
    color: #667eea;
    min-width: 24px;
    margin-left: auto;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Question Number Badge */
.faq-question::before {
    content: "Q";
    position: absolute;
    left: 28px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover .faq-question::before {
    opacity: 1;
}

.faq-item:hover .faq-question,
.faq-item.active .faq-question {
    padding-left: 70px;
}

/* FAQ Question Text */
.faq-question span {
    flex: 1;
    text-align: left;
    margin-right: auto;
    transition: transform 0.3s ease;
}

/* FAQ Answer Container */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 0 28px;
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 28px 24px 70px;
    opacity: 1;
}

/* FAQ Answer Content Styling */
.faq-answer p {
    margin: 0;
    color: #4b5563;
}

.faq-answer strong {
    color: #1f2937;
    font-weight: 600;
}

/* FAQ Answer Icon */
.faq-answer::before {
    content: "A";
    display: inline-block;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 12px;
    margin-bottom: -6px;
}

/* Alternating Colors for Visual Interest */
.faq-item:nth-child(even) {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.faq-item:nth-child(odd).active {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.faq-item:nth-child(even).active {
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}

/* Mobile Responsive FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 18px 20px;
        font-size: 1rem;
        gap: 15px;
    }
    
    .faq-question::before {
        left: 20px;
        top: 16px;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .faq-item:hover .faq-question,
    .faq-item.active .faq-question {
        padding-left: 58px;
    }
    
    .faq-answer {
        padding: 0 20px;
        font-size: 0.95rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px 58px;
    }
    
    .faq-answer::before {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.75rem;
        margin-right: 10px;
    }
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.highlight-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.highlight-box p {
    font-size: 1.1rem;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    /* Hero Section Mobile Optimization */
    .hero {
        padding: 130px 15px 55px;
        text-align: center;
        overflow-x: hidden;
    }
    
    .hero::before,
    .hero::after {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.65rem;
        margin-bottom: 15px;
        line-height: 1.35;
        letter-spacing: -0.3px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero .highlight {
        display: inline;
        font-size: 1.75rem;
        animation: none;
    }
    
    .hero > p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.5;
        word-wrap: break-word;
    }
    
    /* Colleges Card Mobile */
    .colleges {
        padding: 20px 15px;
        margin: 25px 10px 20px;
        border-radius: 15px;
        width: calc(100% - 20px);
        max-width: 100%;
    }
    
    .colleges h3 {
        font-size: 1.05rem;
        margin-bottom: 16px;
        flex-direction: row;
        gap: 8px;
        text-align: center;
    }
    
    .colleges h3 i {
        font-size: 1.1rem;
    }
    
    .colleges p {
        font-size: 0.88rem;
        padding: 10px 14px;
        text-align: left;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .colleges p:hover {
        transform: none;
    }
    
    .colleges p strong {
        display: block;
        min-width: auto;
        margin-bottom: 6px;
        font-size: 0.92rem;
    }
    
    /* Buttons Mobile - Full width stacked */
    .hero .btn {
        padding: 14px 25px;
        font-size: 0.9rem;
        margin: 8px auto;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: calc(100% - 30px);
        max-width: 350px;
        min-width: auto;
    }
    
    .hero .btn i {
        font-size: 1rem;
    }
    
    .hero .btn:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    /* Other sections */
    .section {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 1.75rem;
        padding: 0 10px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
        margin-bottom: 35px;
    }
    
    .grid {
        gap: 20px;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .cta {
        padding: 60px 15px;
    }
    
    .cta h2 {
        font-size: 1.75rem;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .cta p {
        font-size: 0.95rem;
        padding: 0 15px;
        margin-bottom: 12px;
    }
    
    .cta p:last-of-type {
        margin-bottom: 25px;
    }
    
    .cta .btn {
        display: flex;
        margin: 8px auto;
        width: calc(100% - 30px);
        max-width: 350px;
        min-width: auto;
        padding: 14px 25px;
        font-size: 0.95rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero {
        padding: 120px 12px 45px;
    }
    
    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .hero .highlight {
        font-size: 1.5rem;
    }
    
    .hero > p {
        font-size: 0.82rem;
    }
    
    .colleges {
        padding: 16px 12px;
        margin: 20px 8px 16px;
        width: calc(100% - 16px);
    }
    
    .colleges h3 {
        font-size: 0.95rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .colleges p {
        font-size: 0.82rem;
        padding: 10px 12px;
    }
    
    .colleges p strong {
        font-size: 0.88rem;
    }
    
    .hero .btn {
        padding: 13px 20px;
        font-size: 0.85rem;
        width: calc(100% - 24px);
        max-width: 100%;
        margin: 7px auto;
    }
    
    .cta {
        padding: 50px 12px;
    }
    
    .cta h2 {
        font-size: 1.5rem;
        padding: 0 8px;
    }
    
    .cta p {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    
    .cta .btn {
        width: calc(100% - 20px);
        max-width: 100%;
        padding: 13px 20px;
        font-size: 0.88rem;
        margin: 7px auto;
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        padding: 150px 30px 70px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero > p {
        font-size: 1.05rem;
    }
    
    .colleges {
        max-width: 700px;
        padding: 28px 32px;
        width: calc(100% - 60px);
    }
    
    .hero .btn {
        padding: 15px 32px;
        font-size: 0.98rem;
        min-width: 220px;
    }
}

