/* General Body Styles */
body {
    font-family: 'Anek Bangla', sans-serif; /* নতুন ফন্ট */
    margin: 0;
    padding: 0;
    background-color: #F0F2F5; /* হালকা ধূসর ব্যাকগ্রাউন্ড */
    color: #333333; /* গাঢ় ধূসর টেক্সট */
}

/* Overall wrapper for the entire page content */
.page-wrapper {
    max-width: 1200px;
    margin: 20px auto; /* উপরে-নিচে মার্জিন যোগ করা */
    background-color: #ffffff; /* সাদা ব্যাকগ্রাউন্ড */
    border-radius: 12px; /* কিছুটা গোলাকার কিনারা */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* হালকা গভীর শ্যাডো */
    overflow: hidden; /* ভেতরের কন্টেন্ট বাইরে না যেতে */
}

/* Header */
.header {
    background: linear-gradient(90deg, #1A5276 0%, #28a745 100%); /* গ্রেডিয়েন্ট ব্যাকগ্রাউন্ড */
    color: white;
    padding: 15px 20px; /* প্যাডিং কমানো যাতে মোবাইল লোগো-কন্টাক্ট স্পেস ঠিক থাকে */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* এখন আর র‍্যাপ করবে না */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header .logo img {
    height: 60px; /* লোগোর উচ্চতা বাড়ানো */
    border-radius: 5px; /* লোগোতে হালকা গোলাকার কিনারা */
}

/* Desktop Menu */
.header .menu {
    flex-direction: row;
    align-content: normal;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    text-align: center;
    display: flex; /* ডেস্কটপে ফ্ল্যাক্স */
    flex-wrap: wrap;
    margin-left: 20px; /* লোগো থেকে কিছুটা দূরত্ব */

}

.header .menu a {
    color: white;
    text-decoration: none;
    margin: 0 18px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header .menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Header Menu Active State (applies hover effects to active link) */
.header .menu a.active {
    background-color: rgba(255, 255, 255, 0.15); /* Hover এর মতো ব্যাকগ্রাউন্ড */
    transform: translateY(-3px); /* Hover এর মতো উপরে উঠানো */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Hover এর মতো শ্যাডো */
}

.header .menu a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #FFD700;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.header .menu a:hover::before,
.header .menu a.active::before { /* Added .active here for before effect */
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Contact Info for Desktop */
.contact-info-desktop {
    margin-right: 0; /* প্যাডিং হেডারের মধ্যে আছে */
    font-weight: 600;
    flex-shrink: 0;
    background-color: #28a745;
    padding: 10px 18px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap; /* ফোন নাম্বার এক লাইনে রাখতে */
}

.contact-info-desktop a {
    text-decoration: none;
    color: white;
}

.contact-info-mobile-header a {
    text-decoration: none;
    color: white;
}

.contact-info-mobile-dropdown a {
    text-decoration: none;
    color: white;
}

.contact-info-desktop:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

/* Contact Info for Mobile Header (Hidden by default, shown in media query) */
.contact-info-mobile-header {
    display: none; /* ডেস্কটপে লুকানো থাকবে */
    color: white;
    font-weight: 600;
    font-size: 0.9em; /* ছোট ফন্ট সাইজ */
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.2); /* হালকা ব্যাকগ্রাউন্ড */
    border-radius: 5px;
    white-space: nowrap;
    margin-left: auto; /* বামে ঠেলে দিতে */
    margin-right: 10px; /* হ্যামবার্গার থেকে দূরত্ব */
}

/* Contact Info for Mobile Dropdown (Hidden by default, shown in media query when menu is active) */
.contact-info-mobile-dropdown {
    display: none; /* সব সময় লুকানো থাকবে, শুধু মেনু খুললে দেখবে */
    color: white;
    padding: 15px 0;
    text-align: center;
    background-color: #1A5276; /* মেনুর ব্যাকগ্রাউন্ডের সাথে সামঞ্জস্য */
    font-weight: 600;
    margin-top: 20px; /* মেনুর আইটেম থেকে দূরত্ব */
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%; /* মেনুর ভেতরের প্রস্থ */
    box-sizing: border-box;
}

/* Hamburger Menu (Hidden by default) */
.menu-toggle {
    display: none; /* চেকবক্সটি লুকানো থাকবে */
}

.hamburger {
    display: none; /* ডেস্কটপে লুকানো থাকবে */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 1000; /* মেনুর উপরে রাখতে */
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation on menu-toggle checked */
.menu-toggle:checked + .hamburger .line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.menu-toggle:checked + .hamburger .line:nth-child(2) {
    opacity: 0;
}
.menu-toggle:checked + .hamburger .line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Main Content Box */
.container {
    width: auto;
    margin: 0;
    background-color: white;
    padding: 30px;
    box-shadow: none;
    border-radius: 0;
    border: none;
    min-height: calc(100vh - 200px);
    box-sizing: border-box;
}

/* Home Page Specifics */
.home-content h1 {
    text-align: center;
    color: #003366;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-weight: 800;
    font-size: 2.5em;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.home-content h2 {
    text-align: center;
    color: #555;
    margin-bottom: 10px;
    letter-spacing: 1px;
    line-height: 1.5;
    font-size: 1.6em;
}

/* Specific style for section titles that need a border */
.home-content h2.section-title.with-border {
    padding-bottom: 12px;
    border-bottom: 2px solid #EEE;
    margin-bottom: 30px;
    color: #003366;
    font-size: 2em;
    font-weight: 700;
}

.home-content .notice-image {
    display: block;
    margin: 30px auto;
    max-width: 90%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-content .notice-image:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.home-content .enroll-button {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 15px 30px;
    background-color: #1E7E34;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.home-content .enroll-button:hover {
    background-color: #155E26;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.features-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 20px;
}

.features-list li {
    background-color: #E9F5FF;
    margin: 12px auto;
    padding: 15px;
    border-radius: 8px;
    border-left: 6px solid #0056b3;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.1em;
    line-height: 1.6;
}

.features-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.features-list2 {
    list-style: none;
    padding: 0;
    text-align: justify;
    margin-top: 20px;
}

.features-list2 li {
    background-color: #E9F5FF;
    margin: 12px auto;
    padding: 15px;
    border-radius: 8px;
    border-left: 6px solid #0056b3;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.1em;
    line-height: 1.6;
}

.features-list2 li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Forms */
.container h1 {
    text-align: center;
    color: #003366;
    margin-bottom: 25px;
    font-size: 2.5em;
    font-weight: 700;
}

.container h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 1.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid #c0c0c0;
    border-radius: 6px;
    font-size: 1.05em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-group input[type="submit"],
.form-group button {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.form-group input[type="submit"]:hover,
.form-group button:hover {
    background: linear-gradient(45deg, #0056b3, #003366);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Admin Dashboard */
.admin-dashboard {
    display: flex;
    width: auto;
    margin: 0;
    background-color: white;
    box-shadow: none;
    border-radius: 0;
    border: none;
    min-height: calc(100vh - 200px);
    box-sizing: border-box;
    align-items: stretch;
}

.sidebar {
    width: 220px;
    background-color: #2c3e50;
    color: white;
    padding: 25px 0;
    box-shadow: 3px 0 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.sidebar h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 0px;
    transition: background-color 0.3s ease, border-left 0.3s ease;
    font-size: 1.05em;
    border-left: 5px solid transparent;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #3b5066;
    border-left: 5px solid #28a745;
}

.main-content {
    flex-grow: 1;
    padding: 30px;
}

.main-content h2 {
    color: #003366;
    margin-bottom: 25px;
    font-size: 2.2em;
    font-weight: 700;
    padding: 0;
    border-bottom: 2px solid #EEE;
    padding-bottom: 10px;
}

.table-responsive {
    padding: 0;
    margin-top: 20px;
    overflow-x: auto; /* এখানে overflow-x: auto; রাখা হয়েছে যাতে সব স্ক্রিনে কাজ করে */
}

table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%; /* টেবিল তার প্যারেন্ট কন্টেইনারের পুরো প্রস্থ নেবে */
    min-width: 600px; /* টেবিলের সর্বনিম্ন প্রস্থ সেট করা হয়েছে যাতে এটি বড় স্ক্রিনেও স্ক্রল করতে পারে। আপনার কন্টেন্ট অনুযায়ী এই মানটি পরিবর্তন করতে পারেন। যেহেতু কলাম কমেছে, মানও কমিয়েছি। */
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    font-size: 0.95em;
    white-space: nowrap; /* টেক্সট এক লাইনে রাখতে সাহায্য করবে, স্ক্রল করার জন্য গুরুত্বপূর্ণ */
}

table th:last-child,
table td:last-child {
    border-right: none;
}

table tr:last-child td {
    border-bottom: none;
}

th {
    background-color: #003366;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: #F8F8F8;
}

tr:hover {
    background-color: #E6F7FF;
}

.logout-button {
    background-color: #dc3545;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.logout-button:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

/* View Button Style (for table actions) */
.view-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #007bff; /* Primary blue color */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}


/* Application Details Container (for view_application.php) */
.application-details {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 700px; /* Adjust max-width as needed */
    margin: 20px auto; /* Center the box */
    border: 1px solid #e0e0e0;
}

.application-details p {
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.6;
    display: flex; /* For aligning strong and text */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.application-details strong {
    color: #003366;
    display: inline-block;
    min-width: 150px; /* Ensures labels are aligned */
    margin-right: 10px;
    flex-shrink: 0; /* Prevent shrinking on small screens */
}

.application-details span { /* To style the actual data */
    flex-grow: 1;
}

.back-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background-color: #6c757d; /* Gray color */
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-button:hover {
    background-color: #5a6268; /* Darker gray on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}


/* --- Photo Gallery Styles (Base Styles) --- */
.gallery-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.photo-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    flex-basis: calc((100% - 3 * 20px) / 4);
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.photo-item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Footer */
.footer {
    background-color: #1A1A1A;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: auto;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.footer p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #CCCCCC;
}

.footer a {
    color: #FFD700 !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #FFEB8C !important;
    text-decoration: underline !important;
}

/* --- Enroll Success Page Specific Styles --- */
.success-page-content {
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.success-icon {
    font-size: 4em;
    color: #28a745;
    margin-bottom: 20px;
    border: 3px solid #28a745;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    background-color: #e6ffed;
}

.success-page-content h1 {
    font-size: 2.5em;
    color: #003366;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-page-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.application-id-box {
    background-color: #e0f2f7;
    color: #0056b3;
    font-size: 2em;
    font-weight: bold;
    padding: 15px 25px;
    margin: 25px auto;
    border: 2px dashed #007bff;
    border-radius: 8px;
    max-width: 300px;
    letter-spacing: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.home-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #1E7E34;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.home-button:hover {
    background-color: #155E26;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* --- Responsive Design (Updated for Header and others) --- */

@media (max-width: 992px) {
    .photo-item {
        flex-basis: calc((100% - 2 * 20px) / 3);
    }
    .photo-item img {
        height: 200px;
    }
}

/* Tablet and smaller devices (768px) */
@media (max-width: 768px) {
    .page-wrapper { margin: 0; border-radius: 0; box-shadow: none; }
    
    /* Header Responsive Updates for Mobile (CSS-Only Hamburger) */
    .header {
        flex-direction: row; /* বামে লোগো, ডানে হ্যামবার্গার ও কন্টাক্ট */
        justify-content: space-between;
        padding: 10px 15px;
    }
    .header .logo { margin: 0; }
    .header .logo img { height: 45px; }

    .contact-info-desktop {
        display: none; /* ডেস্কটপ কন্টাক্ট ইনফো লুকানো */
    }

    /* Mobile Header Contact Info */
    .contact-info-mobile-header {
        display: block; /* মোবাইলে দেখানো */
        margin-left: auto; /* বামে ঠেলে দিতে */
        margin-right: 10px; /* হ্যামবার্গার থেকে দূরত্ব */
        font-size: 0.85em; /* ছোট ফন্ট সাইজ */
        padding: 5px 10px;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 5px;
    }

    .hamburger {
        display: flex; /* হ্যামবার্গার আইকন দেখানো */
        margin-left: 0; /* মার্জিন সরানো */
        order: 1; /* ফ্লেক্স অর্ডারে এটিকে সবার শেষে রাখতে */
    }

    .header .menu {
        display: flex; /* মেনু লুকানো থাকবে প্রথমে */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* মেনু স্ক্রিনের বাইরে লুকানো */
        width: 70%;
        max-width: 300px;
        height: 100%;
        background-color: #003366;
        padding: 60px 0 20px 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease-in-out;
        z-index: 999;
        align-items: center;
    }

    /* When checkbox is checked, show the menu */
    .menu-toggle:checked ~ .menu { /* ~ (General Sibling Combinator) ব্যবহার করা হয়েছে */
        right: 0; /* মেনু স্ক্রিনে নিয়ে আসা */
    }

    /* Mobile Dropdown Contact Info */
    .contact-info-mobile-dropdown {
        display: block; /* মেনু খুললে দেখানো */
        width: 100%;
        margin: 15px;
        padding: 15px;
        background-color: #218838;
        border-radius: 6px;
    }

    .header .menu a {
        width: calc(100% - 40px);
        margin: 10px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 12px 15px;
    }
    .header .menu a:last-of-type {
        border-bottom: none;
    }
    .header .menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .container { width: auto; margin: 0; padding: 20px; border: none; }
    
    .home-content h1 { font-size: 2.2em; margin-bottom: 12px; }
    .home-content h2 { font-size: 1.3em; margin-bottom: 8px; line-height: 1.4; }
    .home-content h2.section-title.with-border {
        padding-bottom: 8px;
        margin-bottom: 15px;
        font-size: 1.6em;
    }

    .success-page-content {
        margin: 20px auto;
        padding: 20px;
    }
    .success-icon {
        font-size: 3em;
        width: 80px;
        height: 80px;
    }
    .success-page-content h1 {
        font-size: 1.8em;
    }
    .success-page-content p {
        font-size: 1em;
    }
    .application-id-box {
        font-size: 1.5em;
        padding: 10px 20px;
        margin: 20px auto;
    }
    .home-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .admin-dashboard { flex-direction: column; width: auto; margin: 0; border-radius: 0; border: none; min-height: auto; }
    .sidebar { width: 100%; padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin-bottom: 20px; }
    .sidebar h3 { font-size: 1.5em; margin-bottom: 20px; }
    .sidebar ul { display: flex; flex-wrap: wrap; justify-content: center; }
    .sidebar ul li { margin: 5px 8px; }
    .sidebar ul li a { padding: 10px 15px; border-left: none; border-bottom: 3px solid transparent; }
    .sidebar ul li a:hover,
    .sidebar ul li a.active { border-left: none; border-bottom: 3px solid #28a745; }
    
    .table-responsive { 
        padding: 0 15px 15px 15px;
        /* `overflow-x: auto;` is globally set, no need to override here unless specific behavior is desired */
    }
    table { 
        font-size: 0.85em; 
        width: 100%; 
        min-width: unset; /* Remove min-width for smaller screens */
    }
    table th, table td { max-width: 100px; min-width: 60px; }
    /* You can further optimize column widths for mobile if needed */
    table th:nth-child(1), table td:nth-child(1) { min-width: 80px; } /* Application ID */
    table th:nth-child(2), table td:nth-child(2) { min-width: 120px; } /* Full Name */
    table th:nth-child(3), table td:nth-child(3) { min-width: 90px; }  /* Phone */
    table th:nth-child(4), table td:nth-child(4) { min-width: 60px; }  /* Actions */

    .application-details {
        padding: 15px;
        margin: 15px;
    }
    .application-details strong {
        min-width: 90px;
    }

    .photo-item {
        flex-basis: calc((100% - 1 * 20px) / 2);
    }
    .photo-item img {
        height: 180px;
    }

    .footer { width: auto; margin: 0; border-radius: 0; border: none; }
}

/* Mobile specific fine-tuning (480px) */
@media (max-width: 480px) {
    /* Header specific for very small screens */
    .header .logo img { height: 40px; }
    
    .contact-info-mobile-header {
        font-size: 0.75em; /* আরও ছোট ফন্ট সাইজ */
        padding: 4px 8px;
    }

    .header .menu a { font-size: 0.8em; padding: 8px 10px; width: 95%; }

    .home-content h1 { font-size: 1.8em; letter-spacing: 1px; margin-bottom: 10px; }
    .home-content h2 { font-size: 1.0em; letter-spacing: 0.5px; margin-bottom: 6px; line-height: 1.3; }
    .home-content h2.section-title.with-border {
        padding-bottom: 6px;
        margin-bottom: 12px;
        font-size: 1.3em;
    }

    .features-list li { font-size: 0.9em; padding: 8px; }
    .features-list2 li { font-size: 0.9em; padding: 8px; }

    .home-content .enroll-button { padding: 12px 25px; font-size: 1.1em; }
    .form-group label { font-size: 0.9em; }
    .form-group input, .form-group textarea, .form-group select { font-size: 0.9em; padding: 10px; }
    .form-group input[type="submit"] { padding: 8px 15px; font-size: 0.9em; }

    .success-page-content {
        padding: 15px;
    }
    .success-icon {
        font-size: 2.5em;
        width: 70px;
        height: 70px;
    }
    .success-page-content h1 {
        font-size: 1.5em;
    }
    .application-id-box {
        font-size: 1.2em;
        padding: 10px 15px;
    }
    .home-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .photo-item {
        flex-basis: 95%;
    }
    .photo-item img {
        height: 200px;
    }
}