/* school_admission/public/css/style.css - Truly Amazing Modern, Responsive, Warm Theme */

/* Global Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body & Typography */
body {
    font-family: 'Open Sans', Arial, sans-serif; /* Readable body font */
    line-height: 1.65;
    color: #4A3D36; /* Deep, warm brown for primary text */
    background: linear-gradient(135deg, #FDF6EC 0%, #EAE0D3 100%); /* Soft, creamy beige gradient background */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
}

a {
    color: #AF4C45; /* Muted red for links */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease-out;
}

a:hover {
    color: #8B3A33; /* Darker red on hover */
    transform: translateY(-1px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif; /* Elegant, classic serif for headings */
    color: #5A2D2B; /* Deep terracotta brown for headings */
    margin-bottom: 0.7em;
    font-weight: 700;
}

h2 {
    font-size: 2.8em;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(90, 45, 43, 0.1); /* Subtle dark border */
    margin-bottom: 45px;
    color: #AF4C45; /* Muted red accent for main headings */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* Layout Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px;
    width: 100%;
}

/* Header with Rich Gradient */
.main-header {
    background: linear-gradient(90deg, #5A2D2B 0%, #AF4C45 100%); /* Deep terracotta to muted red gradient */
    color: white;
    padding: 2px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

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

.logo h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 7px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

/* Mobile Navigation Toggle (Hamburger Menu) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1200;
    position: relative;
}

.hamburger {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.hamburger::before {
    transform: translateY(-12px);
}

.hamburger::after {
    transform: translateY(12px);
}

.menu-toggle.is-active .hamburger {
    background: transparent;
}

.menu-toggle.is-active .hamburger::before {
    transform: translateY(0) rotate(45deg);
}

.menu-toggle.is-active .hamburger::after {
    transform: translateY(0) rotate(-45deg);
}


/* Main Navigation */
.main-nav {
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 40px;
    margin-top: 0;
}

.main-nav .nav-list li a {
    color: white;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
    letter-spacing: 0.7px;
}

.main-nav .nav-list li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transition: left 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
    border-radius: 12px;
}

.main-nav .nav-list li a:hover::before {
    left: 0;
}
.main-nav .nav-list li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}


/* Main Content Area */
.content-area {
    flex: 1;
    padding: 60px 0;
}

/* Forms - Elegant & Layered */
form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 240, 235, 0.95)); /* Light, warm form background */
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

form:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    color: #4A3D36;
    font-size: 1.1em;
    letter-spacing: 0.3px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 22px;
    border: 1px solid #D4AF37; /* Gold/Bronze border */
    border-radius: 12px;
    font-size: 1.15em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #AF4C45; /* Muted red focus */
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(175, 76, 69, 0.3);
}

.form-group input[type="file"] {
    border: 1px solid #D4AF37;
    border-radius: 12px;
    padding: 14px 18px;
    background-color: rgba(250, 248, 246, 0.8);
}


/* Buttons - Bold Gradients & Lift */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.15em;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.1s ease;
    position: relative;
    overflow: hidden;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    letter-spacing: 0.8px;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn i {
    font-size: 1.2em;
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: translateX(-4px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%;
    height: 400%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease-out;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 0;
}

.btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.btn:active {
    transform: translateY(3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Specific Button Colors - Richer Gradients */
.btn-primary {
    background: linear-gradient(135deg, #AF4C45 0%, #8B3A33 100%); /* Muted Red Primary */
    box-shadow: 0 6px 20px rgba(175, 76, 69, 0.4);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #8B3A33 0%, #AF4C45 100%);
    box-shadow: 0 8px 25px rgba(175, 76, 69, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #7A9E8D 0%, #608070 100%); /* Soft Green Success */
    box-shadow: 0 6px 20px rgba(122, 158, 141, 0.4);
}
.btn-success:hover {
    background: linear-gradient(135deg, #608070 0%, #7A9E8D 100%);
    box-shadow: 0 8px 25px rgba(122, 158, 141, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #A0522D 0%, #804024 100%); /* Sienna/Brown Danger */
    box-shadow: 0 6px 20px rgba(160, 82, 45, 0.4);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #804024 0%, #A0522D 100%);
    box-shadow: 0 8px 25px rgba(160, 82, 45, 0.6);
}

.btn-info {
    background: linear-gradient(135deg, #D49D44 0%, #B8860B 100%); /* Goldenrod Info */
    box-shadow: 0 6px 20px rgba(212, 157, 68, 0.4);
}
.btn-info:hover {
    background: linear-gradient(135deg, #B8860B 0%, #D49D44 100%);
    box-shadow: 0 8px 25px rgba(212, 157, 68, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #A9A29A 0%, #8B8580 100%); /* Muted Grey Secondary */
    box-shadow: 0 6px 20px rgba(169, 162, 154, 0.4);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #8B8580 0%, #A9A29A 100%);
    box-shadow: 0 8px 25px rgba(169, 162, 154, 0.6);
}

/* Smaller buttons for table actions */
.btn-sm {
    padding: 10px 18px;
    font-size: 0.9em;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.btn-sm:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}


/* Messages - Elegant & Alerting */
.message {
    padding: 20px 35px;
    margin-bottom: 35px;
    border-radius: 12px;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    letter-spacing: 0.2px;
}
.message i {
    font-size: 1.4em;
    line-height: 1;
}

.message.success {
    background-color: #e0f2f1; /* Light green-blue */
    color: #00796B; /* Darker green-blue */
    border: 1px solid #b2dfdb;
}

.message.error {
    background-color: #ffe0b2; /* Light orange */
    color: #e65100; /* Darker orange */
    border: 1px solid #ffcc80;
}

.message.info {
    background-color: #fff9c4; /* Light yellow */
    color: #f57f17; /* Darker yellow */
    border: 1px solid #fff176;
}

/* Tables - Modern, Clean & Responsive */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 40px;
    background-color: #ffffff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

table th,
table td {
    padding: 20px 25px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

table thead th {
    background: linear-gradient(90deg, #AF4C45 0%, #8B3A33 100%); /* Matching primary button gradient */
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95em;
    letter-spacing: 0.7px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.9);
}

table tbody tr:nth-child(even) {
    background-color: rgba(247, 240, 235, 0.9); /* Lighter warm off-white */
}

table tbody tr:hover {
    background: linear-gradient(90deg, rgba(175, 76, 69, 0.1), rgba(212, 157, 68, 0.1)); /* Subtle, warm hover */
    transition: background 0.3s ease;
}

.action-links a, .action-links button {
    margin-right: 15px;
    font-size: 0.9em;
}


/* Footer */
.main-footer {
    background: linear-gradient(90deg, #5A2D2B 0%, #AF4C45 100%);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    font-size: 0.95em;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.25);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Dashboard Grid - Dynamic & Clean */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 240, 235, 0.95));
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dashboard-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.dashboard-card .icon {
    font-size: 4.5em;
    color: #D49D44; /* Goldenrod accent for icons */
    margin-bottom: 25px;
    transition: transform 0.4s ease-out;
}

.dashboard-card:hover .icon {
    transform: scale(1.2) rotate(10deg);
}

.dashboard-card h3 {
    color: #5A2D2B;
    margin-top: 0;
    font-size: 1.8em;
    margin-bottom: 20px;
    letter-spacing: 0.7px;
}

.dashboard-card p {
    font-size: 3.8em;
    font-weight: 800;
    color: #AF4C45; /* Muted red for numbers */
    line-height: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}


/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-30 { margin-bottom: 30px; }
.hidden { display: none; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
.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;
}

/* Landing Page Specific Styles - Elevated */
.landing-hero {
    background: linear-gradient(135deg, rgba(90, 45, 43, 0.9), rgba(175, 76, 69, 0.95)), url('/school_admission/public/assets/hero-bg.jpg') no-repeat center center/cover;
    background-blend-mode: multiply;
    color: white;
    padding: 150px 30px;
    margin-bottom: 70px;
    border-radius: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.landing-hero h2 {
    font-size: 4.5em;
    margin-bottom: 30px;
    font-weight: 900;
    color: white;
    border-bottom: none;
    padding-bottom: 0;
    letter-spacing: 2px;
}

.landing-hero p {
    font-size: 1.8em;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-actions .btn {
    margin: 0 25px;
    padding: 20px 40px;
    font-size: 1.4em;
    border-radius: 60px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.2px;
    transition: all 0.3s ease-in-out;
}
.hero-actions .btn:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Info Sections for Landing Page - Modern Card Style */
.info-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 240, 235, 0.95));
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.info-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.info-card .icon-large {
    font-size: 4.5em;
    color: #AF4C45; /* Muted Red */
    margin-bottom: 30px;
    transition: color 0.4s ease, transform 0.4s ease;
}
.info-card:hover .icon-large {
    color: #D49D44; /* Goldenrod on hover */
    transform: scale(1.1) rotateY(180deg);
}

.info-card h3 {
    font-size: 2.2em;
    color: #5A2D2B;
    margin-bottom: 20px;
    letter-spacing: 0.8px;
}

.info-card p {
    font-size: 1.15em;
    color: #555;
    margin-bottom: 35px;
}
.info-card .btn-secondary {
    padding: 12px 25px;
    font-size: 1.05em;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.info-card .btn-secondary:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}


/* About Page Specific Styles - Enhanced for Visual Flow */
.about-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 240, 235, 0.95));
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 40px;
}

.about-section h3 {
    font-size: 2.5em;
    color: #AF4C45;
    margin-top: 45px;
    margin-bottom: 30px;
    position: relative;
    padding-left: 30px;
    letter-spacing: 1px;
}

.about-section h3::before {
    font-family: 'Font Awesome Solid';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #D49D44;
    font-size: 1em;
}

.about-section h3#courses::before {
    content: '\f19d';
}
.about-section h3#contact::before {
    content: '\f095';
}
.about-section h3:not(#courses):not(#contact)::before {
    content: '\f05a';
}

.about-section p {
    font-size: 1.15em;
    line-height: 1.9;
    margin-bottom: 22px;
    color: #555;
    text-align: justify;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.about-section ul li {
    font-size: 1.15em;
    color: #555;
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.about-section ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome Solid';
    position: absolute;
    left: 0;
    color: #7A9E8D; /* Soft Green */
    font-size: 1.05em;
    top: 3px;
}

.about-section strong {
    color: #5A2D2B;
    font-weight: 700;
}

/* Specific styling for contact details */
.about-section ul.contact-list li::before {
    color: #AF4C45;
}

.about-section ul.contact-list li:nth-child(1)::before { content: '\f3c5'; }
.about-section ul.contact-list li:nth-child(2)::before { content: '\f0e0'; }
.about-section ul.contact-list li:nth-child(3)::before { content: '\f095'; }
.about-section ul.contact-list li:nth-child(4)::before { content: '\f017'; }


/* Responsive Design - Media Queries (Advanced) */

/* Tablets and smaller desktops (992px and below) */
@media (max-width: 992px) {
    .main-header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #5A2D2B 0%, #AF4C45 100%);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.6s ease-in-out, padding 0.6s ease-in-out;
        padding: 0 30px;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    .main-nav.nav-open {
        max-height: 450px;
        padding: 25px 30px;
    }

    .main-nav .nav-list {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 15px;
    }

    .main-nav .nav-list li {
        margin: 0;
    }

    .main-nav .nav-list li a {
        padding: 18px 0;
        font-size: 1.3em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
    }
    .main-nav .nav-list li:last-child a {
        border-bottom: none;
    }
    .main-nav .nav-list li a:hover {
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
    }
    .main-nav .nav-list li a::before {
        display: none;
    }

    h2 {
        font-size: 2.2em;
        margin-bottom: 35px;
    }

    .dashboard-grid, .info-sections {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .landing-hero {
        padding: 120px 25px;
    }
    .landing-hero h2 {
        font-size: 3.5em;
    }
    .landing-hero p {
        font-size: 1.5em;
    }
    .hero-actions .btn {
        margin: 15px 0;
        width: 100%;
    }
    .about-section h3 {
        font-size: 2.2em;
    }
    .about-section p, .about-section ul li {
        font-size: 1.05em;
    }
    form {
        padding: 40px;
    }
}

/* Mobile Phones (768px and below) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .container {
        padding: 20px;
    }
    .logo h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 2em;
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    form {
        padding: 30px;
    }
    .form-group {
        margin-bottom: 25px;
    }
    .form-group label {
        font-size: 1em;
    }
    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="email"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        padding: 14px 18px;
        font-size: 1.05em;
    }
    .btn {
        padding: 14px 25px;
        font-size: 1.05em;
        width: 100%;
        margin-bottom: 12px;
    }
    .btn:last-child {
        margin-bottom: 0;
    }

    /* Table responsiveness (card-like display) */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    table thead {
        display: none;
    }
    table tbody {
        display: block;
        width: 100%;
    }
    table tr {
        display: block;
        border: 1px solid #e0e6ed;
        margin-bottom: 15px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    table td {
        border: none;
        position: relative;
        padding-left: 55%;
        text-align: right;
        font-size: 1em;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-top: 15px;
        padding-bottom: 15px;
        min-height: 50px;
    }
    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 20px;
        font-weight: 600;
        text-align: left;
        color: #4A3D36;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        box-sizing: border-box;
    }
    .action-links {
        text-align: center;
        padding: 15px 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .action-links a, .action-links button {
        width: auto;
        flex-grow: 1;
        margin-right: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .dashboard-card {
        padding: 35px;
    }
    .dashboard-card h3 {
        font-size: 1.6em;
    }
    .dashboard-card p {
        font-size: 3em;
    }

    .landing-hero {
        padding: 100px 20px;
    }
    .landing-hero h2 {
        font-size: 3em;
    }
    .landing-hero p {
        font-size: 1.3em;
    }
    .info-sections {
        grid-template-columns: 1fr;
    }
    .info-card {
        padding: 30px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    .container {
        padding: 15px;
    }
    .logo h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.8em;
    }
    form {
        padding: 25px;
    }
    .form-group input, .form-group select, .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95em;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    .dashboard-card p {
        font-size: 2.5em;
    }
    .landing-hero h2 {
        font-size: 2.5em;
    }
    .landing-hero p {
        font-size: 1.1em;
    }
    .info-card {
        padding: 30px;
    }
}

