/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #FFD600;
    --text-color: #1E1E1E;
    --accent-color: #FF6F00;
    --bg-color: #FFF8E1;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray: #757575;
    --error: #D32F2F;
    --success: #388E3C;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: #FFD000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #E65100;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #C8E6C9;
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background-color: #FFCDD2;
    color: var(--error);
    border: 1px solid var(--error);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--gray-light);
    font-weight: 600;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Fix hero section on tablets */
    .hero {
        padding: 3rem 0 !important;
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Fix hero section on mobile */
    .hero {
        padding: 2rem 0 !important;
        text-align: center !important;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Fix search section */
    .search-section {
        padding: 1.5rem !important;
        margin: 1.5rem auto !important;
    }
    
    .search-form {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .search-input {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    
    .search-btn {
        width: 100% !important;
        padding: 1rem !important;
    }
    
    /* Fix hero buttons */
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .hero .btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }
    
    /* Fix stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stat-card {
        padding: 1.5rem 1rem !important;
    }
    
    .stat-value {
        font-size: 2rem !important;
    }
    
    /* Fix feature grid */
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Fix footer */
    .footer-bottom-content {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    .footer-left {
        align-items: center !important;
    }
    
    .footer-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }

    main {
        padding: 1rem 0;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 10% auto;
    }
    
    /* Extra small screens */
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    /* Fix any overflow issues */
    body {
        overflow-x: hidden;
    }
    
    /* Fix button responsiveness */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* Fix form inputs on small screens */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        padding: 0.6rem;
        font-size: 0.95rem;
    }
    
    /* Fix card padding */
    .card {
        padding: 1rem;
    }
    
    /* Fix table responsiveness */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
}

/* Additional Mobile Responsiveness Fixes */

/* Prevent horizontal overflow on all screen sizes */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* Fix container width issues */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile-first responsive breakpoints - Enhanced */
@media (max-width: 768px) {
    /* Fix hero section overflow */
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero h1 {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero p {
        word-wrap: break-word;
    }
    
    /* Fix search section */
    .search-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-input {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Fix navigation */
    .nav-wrapper {
        padding: 0 1rem;
    }
    
    /* Fix content grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        width: 100%;
    }
    
    /* Fix tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    table {
        min-width: 600px;
        font-size: 0.9rem;
    }
}

/* Extra small screens - Enhanced */
@media (max-width: 480px) {
    /* Fix footer on small screens */
    .footer-content {
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Fix any remaining overflow issues */
.hero-content,
.search-section,
.stats-grid,
.feature-grid,
.grid,
.container {
    max-width: 100%;
    overflow: hidden;
}

/* Ensure all text wraps properly */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix any fixed width elements */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scrolling */
body {
    overflow-x: hidden;
    position: relative;
}
/* Mob
ile-first responsive breakpoints */
@media (max-width: 768px) {
    /* Fix hero section overflow */
    .hero {
        padding: 2rem 0 !important;
        overflow: hidden;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word;
    }
    
    /* Fix search section */
    .search-section {
        width: 100%;
        max-width: 100%;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        box-sizing: border-box;
    }
    
    .search-form {
        flex-direction: column !important;
        width: 100%;
        gap: 1rem !important;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-input {
        width: 100% !important;
        padding: 0.8rem 1rem 0.8rem 3rem !important;
        font-size: 1rem !important;
        box-sizing: border-box;
    }
    
    .search-btn {
        width: 100% !important;
        padding: 0.8rem !important;
        font-size: 1rem !important;
    }
    
    /* Fix hero buttons */
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.8rem !important;
        width: 100%;
    }
    
    .hero .btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
        text-align: center;
    }
    
    /* Fix stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        width: 100%;
    }
    
    .stat-card {
        padding: 1rem !important;
        text-align: center;
        min-height: auto;
    }
    
    .stat-value {
        font-size: 1.8rem !important;
    }
    
    .stat-icon {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Fix navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-wrapper {
        padding: 0 1rem;
    }
    
    .nav-menu {
        padding: 1rem;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    /* Fix feature cards */
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .feature-card {
        padding: 1.5rem !important;
        text-align: center;
    }
    
    /* Fix content grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Fix forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    /* Fix buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        width: auto;
        min-width: auto;
    }
    
    /* Fix tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    table {
        min-width: 600px;
        font-size: 0.9rem;
    }
    
    /* Fix modals */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 5% auto;
        padding: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.1 !important;
    }
    
    .hero p {
        font-size: 0.95rem !important;
    }
    
    .search-input {
        padding: 0.7rem 0.8rem 0.7rem 2.5rem !important;
        font-size: 0.95rem !important;
    }
    
    .search-btn {
        padding: 0.7rem !important;
        font-size: 0.95rem !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    
    .stat-card {
        padding: 0.8rem !important;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .hero .btn {
        max-width: 250px !important;
        padding: 0.7rem 1.2rem !important;
    }
    
    /* Fix footer on small screens */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Landscape phones */
@media (max-width: 640px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0 !important;
    }
    
    .hero h1 {
        font-size: 1.6rem !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Fix any remaining overflow issues */
.hero-content,
.search-section,
.stats-grid,
.feature-grid,
.grid,
.container {
    max-width: 100%;
    overflow: hidden;
}

/* Ensure all text wraps properly */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix any fixed width elements */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scrolling */
body {
    overflow-x: hidden !important;
    position: relative;
}
/* 
Mobile-first responsive breakpoints */
@media (max-width: 768px) {
    /* Fix hero section overflow */
    .hero {
        padding: 2rem 0 !important;
        overflow: hidden;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word;
    }
    
    /* Fix search section */
    .search-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        box-sizing: border-box;
    }
    
    .search-form {
        flex-direction: column !important;
        width: 100%;
        gap: 1rem !important;
    }
    
    .search-input-wrapper {
        width: 100%;
        position: relative;
    }
    
    .search-icon {
        position: absolute;
        right: 0.6rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.8rem;
        opacity: 0.6;
        pointer-events: none;
        z-index: 2;
        color: #666;
    }
    
    .search-input {
        width: 100% !important;
        padding: 0.8rem 2.2rem 0.8rem 1rem !important;
        font-size: 1rem !important;
        box-sizing: border-box;
    }
    
    .search-btn {
        width: 100% !important;
        padding: 0.8rem !important;
        font-size: 1rem !important;
    }
    
    /* Fix hero buttons */
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.8rem !important;
        width: 100%;
    }
    
    .hero .btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
        text-align: center;
    }
    
    /* Fix stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        width: 100%;
    }
    
    .stat-card {
        padding: 1rem !important;
        text-align: center;
        min-height: auto;
    }
    
    .stat-value {
        font-size: 1.8rem !important;
    }
    
    .stat-icon {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Fix navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-wrapper {
        padding: 0 1rem;
    }
    
    .nav-menu {
        padding: 1rem;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    /* Fix feature cards */
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .feature-card {
        padding: 1.5rem !important;
        text-align: center;
    }
    
    /* Fix content grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Fix forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    /* Fix buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        width: auto;
        min-width: auto;
    }
    
    /* Fix tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    table {
        min-width: 600px;
        font-size: 0.9rem;
    }
    
    /* Fix modals */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 5% auto;
        padding: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.1 !important;
    }
    
    .hero p {
        font-size: 0.95rem !important;
    }
    
    .search-input {
        padding: 0.7rem 2rem 0.7rem 0.8rem !important;
        font-size: 0.95rem !important;
    }
    
    .search-icon {
        right: 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .search-btn {
        padding: 0.7rem !important;
        font-size: 0.95rem !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    
    .stat-card {
        padding: 0.8rem !important;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .hero .btn {
        max-width: 250px !important;
        padding: 0.7rem 1.2rem !important;
    }
}

/* Landscape phones */
@media (max-width: 640px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0 !important;
    }
    
    .hero h1 {
        font-size: 1.6rem !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Fix any remaining overflow issues */
.hero-content,
.search-section,
.stats-grid,
.feature-grid,
.grid,
.container {
    max-width: 100%;
    overflow: hidden;
}

/* Ensure all text wraps properly */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix any fixed width elements */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scrolling */
body {
    overflow-x: hidden;
    position: relative;
}