/* Kerala Travel Packages - Batch 5 CSS Framework */
/* Optimized for fast loading, mobile-first responsive design */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #FFC107;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(56, 142, 60, 0.8)), 
                url('https://images.unsplash.com/photo-1602216056096-3b40cc0c9944?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    margin: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    background: #fff;
    color: #2E7D32;
    border: 2px solid #2E7D32;
}

.btn-secondary:hover {
    background: #2E7D32;
    color: white;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.phone-btn, .email-btn {
    background: #4CAF50;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
    transition: background 0.3s ease;
}

.phone-btn:hover, .email-btn:hover {
    background: #45a049;
    color: white;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background-color: #f8f9fa;
}

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

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

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

/* Card Components */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 15px;
}

.card-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Destination Cards */
.destination-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

.destination-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.destination-card h3 {
    color: #2E7D32;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Package Cards */
.package-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
}

.package-price {
    font-size: 2rem;
    font-weight: bold;
    color: #FFC107;
    margin-bottom: 10px;
}

.package-duration {
    font-size: 1.1rem;
    color: #2E7D32;
    font-weight: 600;
    margin-bottom: 20px;
}

.package-features {
    list-style: none;
    margin-bottom: 25px;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.package-features li:last-child {
    border-bottom: none;
}

/* Transportation Section */
.transport-mode {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #2E7D32;
}

.transport-icon {
    font-size: 2rem;
    color: #2E7D32;
    margin-bottom: 15px;
}

.transport-mode h3 {
    color: #2E7D32;
    margin-bottom: 15px;
}

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

.faq-question {
    background: #f8f9fa;
    padding: 20px;
    font-weight: 600;
    color: #2E7D32;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-answer {
    padding: 20px;
    display: none;
    border-top: 1px solid #eee;
}

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

/* Contact Section */
.contact-info {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.office-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.office-card h3 {
    color: #FFC107;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.office-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.office-phone, .office-email {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    margin: 5px;
    transition: background 0.3s ease;
}

.office-phone:hover, .office-email:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* Footer */
.footer {
    background: #1B5E20;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    border-bottom: 1px solid #2E7D32;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.copyright {
    font-size: 0.9rem;
    color: #A5D6A7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    padding: 60px 0;
    text-align: center;
    color: #333;
}

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

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }
.p-5 { padding: 50px; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 15px;
    }
    
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .hero {
        min-height: 50vh;
    }
    
    .btn {
        display: block;
        margin: 10px auto;
        max-width: 300px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .package-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 30px 15px;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .office-card {
        padding: 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* Print Styles */
@media print {
    .hero,
    .cta-section,
    .footer {
        background: white !important;
        color: black !important;
    }
    
    .btn {
        border: 1px solid black;
        background: white !important;
        color: black !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-up {
    animation: slideUp 0.8s ease-out;
}

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

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button:focus,
a:focus {
    outline: 2px solid #FFC107;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2E7D32;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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