/* ============================================
   VU Academy Unified Website Styling
   Merged from nav.css (preferred) + style.css
   ============================================ */

/* Font Face for Urdu Jameel Noori Nastaleeq */
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('../fonts/JameelNooriNastaleeq-Regular.woff2') format('woff2'),
         url('../fonts/JameelNooriNastaleeq-Regular.woff') format('woff'),
         url('../fonts/JameelNooriNastaleeq-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and Base Styles (from nav.css - preferred) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #222; /* Changed from white to dark for better visibility */
    margin: 0;
}

/* Fix white text on white background in tables */
table, th, td {
    background-color: white !important;
    color: #222 !important;
    border: 1px solid #ccc !important;
    padding: 8px !important;
    text-align: left !important;
    border-collapse: collapse !important;
}

/* Additional fix for admin panel tables */
tbody td {
    color: #222 !important;
    background-color: white !important;
}

/* Fix for admin dashboard recent lists */
.recent-list {
    color: #222 !important;
}

.recent-list li {
    color: #222 !important;
}

.recent-item {
    color: #222 !important;
}

.recent-item strong {
    color: #222 !important;
}

.recent-item small {
    color: #666 !important;
}

/* Fix for category stats items */
.category-stats {
    color: #222 !important;
}

.category-item {
    color: #222 !important;
}

.category-item span {
    color: #222 !important;
}

/* Fix for admin nav links and headers */
.admin-nav li a,
.admin-header,
.admin-nav {
    color: white !important;
}

.admin-nav li a.active,
.admin-nav li a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Make admin nav look like the main nav pill buttons */
.admin-nav ul {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav li {
    list-style: none;
}

.admin-nav li a {
    display: inline-block;
    background: transparent;
    color: white !important;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background: linear-gradient(135deg, #6c8ff0, #6a5bdc) !important;
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.admin-nav li a.logout-btn {
    background: rgba(255,255,255,0.06);
}

tbody td {
    color: #222 !important;
    background-color: white !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation Bar Styling (from nav.css - preferred)
   ============================================ */

/* Navigation Bar Styling */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    position: relative;
    z-index: 100;
}

.nav li {
    list-style: none;
    position: relative;
}

.nav li a {
    display: block;
    color: white;
    background: transparent;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: none;
}


.nav li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); /* Brighter hover effect */
    transition: left 0.5s;
}

.nav li a:hover::before {
    left: 100%;
}

.nav li a:hover {
    background: linear-gradient(135deg, #5dade2, #3498db);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
    border-color: rgba(102, 126, 234, 0.8);
}

.nav li a::before {
    display: none;
}



/* Dropdown Menu Styling */
.nav li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 200;
}

.nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    color: #333 !important;
    padding: 10px 20px;
    display: block;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 0;
    text-align: center; /* Center align text for better appearance in dropdown */
}

.dropdown a:hover {
    background: #3498db; /* Blue hover for dropdown items */
    color: white !important; /* White text on hover */
    transform: none;
    box-shadow: none;
}

/* ============================================
   Brand Styling (from nav.css - preferred)
   ============================================ */

.brand {
    display: flex;
    align-items: center;
    color: white;
    margin: 40px 0;
    justify-content: space-between;
    position: relative;
}

/* Auth Buttons Styling */
.auth-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.auth-btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-btn {
    background: linear-gradient(135deg, #5dade2, #3498db);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.signup-btn {
    background: linear-gradient(135deg, #5dade2, #3498db);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.login-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.signup-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* User Profile Dropdown Styling */
.user-profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar-container {
    position: relative;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-avatar-default {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.user-avatar-default:hover {
    transform: scale(1.05);
}

.user-name {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.dropdown-arrow {
    color: white;
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Dropdown arrow removed */

/* Profile Dropdown Menu */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateX(5px);
}

.dropdown-item:first-child:hover .dropdown-icon {
    content: "👤";
}

.dropdown-item:nth-child(2):hover .dropdown-icon {
    content: "📦";
}

.dropdown-item:last-child:hover .dropdown-icon {
    content: "🚪";
}

.dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Mobile Styles for Profile Dropdown */
@media (max-width: 768px) {
    .profile-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
        max-width: none;
        border-radius: 20px;
        padding: 15px 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
        transform: translateY(20px);
    }

    .profile-dropdown-menu.active {
        transform: translateY(0);
    }

    .dropdown-item {
        padding: 15px 25px;
        font-size: 16px;
        gap: 15px;
    }

    .dropdown-item:hover {
        transform: none;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
    }

    .dropdown-icon {
        font-size: 18px;
        width: 22px;
    }
}

@media (max-width: 480px) {
    .profile-dropdown-menu {
        left: 15px;
        right: 15px;
        bottom: 15px;
        padding: 12px 0;
        border-radius: 15px;
    }

    .dropdown-item {
        padding: 12px 20px;
        font-size: 15px;
        gap: 12px;
    }

    .dropdown-icon {
        font-size: 16px;
        width: 20px;
    }
}

.brand-mark img {
    width: 45px;
    height: 45px;
    border: 1px solid gray;
    border-radius: 50%;
    justify-content: center;
}
.brand-mark img:hover{
    border: 1px solid gold;
}
    
.brand-text .title {
    font-size: 36px;
    font-weight: 700;
    margin-left: 10px;
}

.brand-text .subtitle {
    font-size: 18px;
    opacity: 0.8;
}

/* Keep VU Academy title white and remove underline for all states */
.brand-text .title a:visited,
.brand-text .title a {
    color: white !important;
    text-decoration: none !important;
}
.ayat{
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jameel Noori Nastaleeq', 'Scheherazade New', sans-serif;
    font-size: 36px;
    font-weight: bold;
    direction: rtl;
    color: white;
    margin: 0 auto; /* Center the ayat */
    padding: 0 20px;
    text-align: center;
}

/* ============================================
   Section Styling (from nav.css - preferred)
   ============================================ */

.section {
    margin: 40px 0;
}

/* ============================================
   Offer Section Styling - Enhanced Dark Theme
   ============================================ */

.offer-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.offer-section h2 {
    color: white;
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.offer-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 20px;
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.6;
}

.offer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

/* Dark blue gradient for all offer cards */
.offer-card {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

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

.offer-card:hover::before {
    left: 100%;
}

.offer-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.offer-card:hover img {
    transform: scale(1.1);
}

.offer-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.offer-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.offer-card h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 18px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.offer-card p,
.offer-card ul {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

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

.offer-card li {
    margin-bottom: 8px;
}

.offer-card li:last-child {
    margin-bottom: 0;
}

/* ============================================
   Footer Styling (from nav.css - preferred)
   ============================================ */

.site-footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #4ecdc4;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Responsive Design (from nav.css - preferred)
   ============================================ */

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        display: none;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav li {
        width: 100%;
    }
    
    .nav li a {
        text-align: center;
        border-radius: 15px;
    }
    
    .dropdown {
        position: static;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        background: rgba(255, 255, 255, 0.95);
        margin-top: 5px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: all 0.3s ease;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border-radius: 15px;
        z-index: 200;
    }

    .nav li.active .dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 10px 0;
        position: relative;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* ============================================
   Additional Styles from style.css (merged carefully)
   ============================================ */

:root {
    /* Additional color variables from style.css */
    --bg-dark: #2b6cb0;
    --card-dark: #0f172a;
    --accent-blue: #4f46e5;
    --accent-green: #22c55e;
    --text-light: #e5e7eb;
    --muted-gray: #9ca3af;
    --ring-glow: rgba(79, 70, 229, .45);
}

/* Smooth animations */
* {
    transition: all 0.3s ease;
}

/* Additional responsive breakpoints */
@media (max-width: 1024px) {
    body {
        margin-left: 5px;
        width: 98vw;
    }
    
    .offer-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .offer-icon {
        width: 50px;
    }
}
.offer-card-link,
.offer-card-link:link,
.offer-card-link *,
.offer-card-link *:link {
    text-decoration: none !important;
    color: white !important;
}

@media (max-width: 1024px) {
    .ayat {
        font-size: 32px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .brand {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .auth-buttons {
        order: 4;
        width: 98vw;
        justify-content: center;
        margin-top: 15px;
    }

    .auth-btn {
        min-width: 80px;
        padding: 10px 16px;
        font-size: 14px;
    }

    /* Profile dropdown responsive */
    .user-profile-dropdown {
        padding: 6px 10px;
    }

    .user-avatar,
    .user-avatar-default {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .user-name {
        font-size: 12px;
    }

    .profile-dropdown-menu {
        min-width: 180px;
        right: -10px;
    }

    .dropdown-item {
        padding: 10px 15px;
        font-size: 13px;
    }

    .ayat {
        font-size: 28px;
        margin-left: 0;
        order: 3; /* Move to bottom on mobile */
        width: 98vw;
        text-align: center;
        padding: 10px 0;
    }

    .brand-mark {
        order: 1;
    }

    .brand-text {
        order: 2;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .brand-text .title {
        font-size: 1.1rem;
    }
    
    .brand-text .subtitle {
        font-size: 0.75rem;
    }
    
    .offer-card {
        padding: 15px;
    }
    
    .offer-card h3 {
        font-size: 18px;
    }
    
    .ayat {
        font-size: 24px;
        padding: 8px 0;
    }
}

/* ============================================
   Video Background Section Styles
   ============================================ */

.video-background-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-content {
    text-align: center;
    color: white;
    z-index: 3;
    padding: 20px;
}

.video-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.video-content p {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.cta-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #764ba2, #667eea);
}

/* Responsive styles for video background */
@media (max-width: 768px) {
    .video-background-section {
        height: 50vh;
    }
    
    .video-content h1 {
        font-size: 36px;
    }
    
    .video-content p {
        font-size: 18px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .video-background-section {
        height: 40vh;
    }
    
    .video-content h1 {
        font-size: 28px;
    }
    
    .video-content p {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* ============================================
   Contact Us Page Styles - Dark Theme
   ============================================ */

.contact-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-section h2 {
    color: white;
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 20px;
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.contact-details {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

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

.contact-details:hover::before {
    left: 100%;
}

.contact-details i {
    font-size: 32px;
    color: #4ecdc4;
    margin-bottom: 15px;
    display: block;
}

.contact-details:hover i {
    transform: scale(1.1);
}

.contact-topic {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-text {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.5;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.contact-form {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-form h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-form p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 25px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .contact-section h2 {
        font-size: 32px;
    }
    
    .contact-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        padding: 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 30px 15px;
        margin: 15px;
    }
    
    .contact-section h2 {
        font-size: 28px;
    }
    
    .contact-subtitle {
        font-size: 16px;
    }
    
    .contact-details i {
        font-size: 28px;
    }
    
    .contact-topic {
        font-size: 18px;
    }
    
    .contact-text {
        font-size: 14px;
    }
    
    .contact-form h3 {
        font-size: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ============================================
   Subject List Styling for Midterm Page
   ============================================ */

.subject-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.subject-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subject-list li:last-child {
    border-bottom: none;
}

.subject-list li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.subject-list li a:hover {
    color: #4ecdc4;
}

/* ============================================
   Short Notes Page Specific Styles
   ============================================ */

.note-badge {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    display: inline-block;
}

.quick-tips {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #4ecdc4;
}

.quick-tips p {
    color: white !important;
}

.quick-tips h4 {
    color: #4ecdc4;
    margin-bottom: 10px;
}

/* ============================================
   Download Button Styling
   ============================================ */

.download-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* File list item with download button */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.file-item:last-child {
    border-bottom: none;
}

.file-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
    flex-grow: 1;
}

.file-link:hover {
    color: #4ecdc4;
    transform: translateX(5px);
}

/* Responsive adjustments for download buttons */
@media (max-width: 768px) {
    .download-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-left: 10px;
    }
    
    .file-link {
        font-size: 14px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .download-btn {
        margin-left: 0;
        align-self: flex-end;
    }
}

/* Responsive adjustments for subject cards */
@media (max-width: 768px) {
    .subject-list li a {
        font-size: 13px;
    }
}

/* ============================================ */
/* Enhanced Responsive Design for All Elements */
/* ============================================ */

/* Large Desktops */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    .offer-section {
        padding: 50px 30px;
    }

    .offer-section h2 {
        font-size: 38px;
    }

    .offer-subtitle {
        font-size: 18px;
    }

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

    .footer-container {
        padding: 0 15px;
    }
}

/* Medium Desktops/Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 10px;
    }

    .brand-text .title {
        font-size: 32px;
    }

    .brand-text .subtitle {
        font-size: 16px;
    }

    .ayat {
        font-size: 32px;
        padding: 0 15px;
    }

    .offer-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .offer-section {
        padding: 40px 20px;
    }

    .offer-section h2 {
        font-size: 34px;
    }

    .offer-subtitle {
        font-size: 16px;
    }

    .offer-card {
        padding: 30px 25px;
    }

    .offer-card h3 {
        font-size: 22px;
    }

    .offer-card p {
        font-size: 15px;
    }

    .footer-container {
        gap: 30px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 5px;
    }

    .brand {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin: 30px 0;
    }

    .brand-mark img {
        width: 40px;
        height: 40px;
    }

    .brand-text .title {
        font-size: 28px;
    }

    .brand-text .subtitle {
        font-size: 14px;
    }

    .ayat {
        font-size: 28px;
        margin-left: 0;
        order: 3;
        width: 98vw;
        text-align: center;
        padding: 10px 0;
    }

    .brand-mark {
        order: 1;
    }

    .brand-text {
        order: 2;
        text-align: center;
    }

    .auth-buttons {
        order: 4;
        width: 98vw;
        justify-content: center;
        margin-top: 15px;
    }

    .auth-btn {
        min-width: 80px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .nav li a {
        padding: 10px 20px;
        font-size: 14px;
    }

    .offer-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .offer-section {
        padding: 30px 15px;
        margin: 0;
    }

    .offer-section h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .offer-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .offer-card {
        padding: 25px 20px;
    }

    .offer-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .offer-card p,
    .offer-card ul,
    .offer-card li {
        font-size: 14px;
    }

    .offer-card img {
        width: 80px;
        height: 80px;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
        padding: 0 10px;
    }

    .site-footer {
        padding: 40px 0 15px;
    }
}

/* Small Tablets/Large Mobiles */
@media (max-width: 576px) {
    .container {
        padding: 0 5px;
    }

    .brand {
        gap: 10px;
        margin: 20px 0;
    }

    .brand-mark img {
        width: 35px;
        height: 35px;
    }

    .brand-text .title {
        font-size: 24px;
    }

    .brand-text .subtitle {
        font-size: 12px;
    }

    .ayat {
        font-size: 24px;
        padding: 8px 0;
    }

    .auth-btn {
        min-width: 70px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .nav li a {
        padding: 8px 15px;
        font-size: 13px;
    }

    .offer-cards {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
    }

    .offer-section {
        padding: 25px 10px;
    }

    .offer-section h2 {
        font-size: 24px;
    }

    .offer-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .offer-card {
        padding: 20px 15px;
    }

    .offer-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .offer-card p {
        font-size: 13px;
    }

    .offer-card img {
        width: 70px;
        height: 70px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5px;
    }

    .site-footer {
        padding: 30px 0 10px;
    }

    .footer-about h3,
    .footer-links h4,
    .footer-contact h4 {
        margin-bottom: 15px;
        font-size: 18px;
    }

    .footer-links ul li {
        margin-bottom: 8px;
    }
}

/* Mobiles */
@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    .brand {
        gap: 8px;
        margin: 15px 0;
    }

    .brand-mark img {
        width: 30px;
        height: 30px;
    }

    .brand-text .title {
        font-size: 20px;
    }

    .brand-text .subtitle {
        font-size: 11px;
    }

    .ayat {
        font-size: 20px;
        padding: 6px 0;
    }

    .auth-btn {
        min-width: 65px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .nav li a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .offer-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .offer-section {
        padding: 20px 8px;
    }

    .offer-section h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .offer-subtitle {
        font-size: 12px;
        margin-bottom: 25px;
    }

    .offer-card {
        padding: 15px 12px;
    }

    .offer-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .offer-card p {
        font-size: 12px;
    }

    .offer-card img {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .footer-container {
        padding: 0 5px;
    }

    .site-footer {
        padding: 25px 0 8px;
    }

    .footer-about h3,
    .footer-links h4,
    .footer-contact h4 {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .footer-links ul li {
        margin-bottom: 6px;
    }

    .footer-links ul li a {
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 30px;
        font-size: 12px;
    }
}

/* Very Small Mobiles */
@media (max-width: 360px) {
    .container {
        padding: 0 3px;
    }

    .brand {
        gap: 5px;
        margin: 10px 0;
    }

    .brand-mark img {
        width: 25px;
        height: 25px;
    }

    .brand-text .title {
        font-size: 18px;
    }

    .brand-text .subtitle {
        font-size: 10px;
    }

    .ayat {
        font-size: 18px;
        padding: 5px 0;
    }

    .auth-btn {
        min-width: 60px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .nav li a {
        padding: 5px 10px;
        font-size: 11px;
    }

    .offer-section {
        padding: 15px 5px;
    }

    .offer-section h2 {
        font-size: 20px;
    }

    .offer-subtitle {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .offer-card {
        padding: 12px 10px;
    }

    .offer-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .offer-card p {
        font-size: 11px;
    }

    .offer-card img {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .footer-container {
        padding: 0 3px;
    }

    .site-footer {
        padding: 20px 0 5px;
    }

    .footer-about h3,
    .footer-links h4,
    .footer-contact h4 {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .footer-links ul li a {
        font-size: 12px;
    }

    .footer-bottom {
        padding-top: 25px;
        font-size: 11px;
    }
}

/* ============================================ */
/* Additional Responsive Styles for Page-Specific Elements */
/* ============================================ */

/* Past Papers Container */
.past-papers-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

@media (max-width: 1024px) {
    .past-papers-container {
        max-width: 100% !important;
        padding: 15px !important;
    }
}

@media (max-width: 768px) {
    .past-papers-container {
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .past-papers-container {
        padding: 5px !important;
    }
}

/* Paper Section */
.paper-section {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

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

.paper-section:hover::before {
    left: 100%;
}

.paper-section:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.paper-section h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 18px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    text-align: center;
}

.paper-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paper-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.paper-list li:last-child {
    border-bottom: none;
}

.paper-list li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
    display: block;
}

.paper-list li a:hover {
    color: #4ecdc4;
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .paper-section {
        padding: 30px 25px;
        margin-bottom: 25px;
    }

    .paper-section h2 {
        font-size: 22px;
    }

    .paper-list li a {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .paper-section {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .paper-section h2 {
        font-size: 20px;
    }

    .paper-list li a {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .paper-section {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .paper-section h2 {
        font-size: 18px;
    }

    .paper-list li a {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .paper-section {
        padding: 15px 10px;
        margin-bottom: 10px;
    }

    .paper-section h2 {
        font-size: 16px;
    }

    .paper-list li a {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .paper-section {
        padding: 10px 8px;
        margin-bottom: 8px;
    }

    .paper-section h2 {
        font-size: 14px;
    }

    .paper-list li a {
        font-size: 11px;
    }
}

/* ============================================
   Profile Page Styles
   ============================================ */

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

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.profile-header p {
    color: #666;
    font-size: 1.1rem;
}

.profile-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-picture-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.current-picture {
    margin-bottom: 20px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.default-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.picture-upload {
    margin-top: 20px;
}

.upload-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
}

.upload-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.file-info {
    font-size: 12px;
    opacity: 0.8;
}

.profile-form {
    padding: 40px 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.form-group input[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
}

.form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .profile-header h1 {
        font-size: 2rem;
    }

    .profile-picture-section {
        padding: 30px 20px;
    }

    .profile-img,
    .default-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .profile-form {
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-header h1 {
        font-size: 1.8rem;
    }

    .profile-picture-section {
        padding: 25px 15px;
    }

    .profile-img,
    .default-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .profile-form {
        padding: 25px 15px;
    }
}

/* File Item and Download Button */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.file-item:last-child {
    border-bottom: none;
}

.file-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
    flex-grow: 1;
}

.file-link:hover {
    color: #4ecdc4;
    transform: translateX(5px);
}

.download-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .download-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-left: 10px;
    }

    .file-link {
        font-size: 14px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .download-btn {
        margin-left: 0;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .download-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .file-link {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .download-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .file-link {
        font-size: 12px;
    }
}
/* ============================================ */
/* Profile Page Styles */
/* ============================================ */

.profile-container {
    max-width: 800px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-header h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin: 0;
}

.profile-content {
    margin-top: 30px;
}

.profile-form {
    width: 100%;
}

.profile-picture-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-picture {
    margin-bottom: 20px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.default-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.picture-upload {
    text-align: center;
}

.upload-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.upload-btn:hover {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.file-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 5px;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

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

.btn-primary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Design for Profile Page */
@media (max-width: 768px) {
    .profile-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .profile-header h1 {
        font-size: 28px;
    }

    .profile-header p {
        font-size: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-picture-section {
        padding: 20px;
    }

    .profile-img,
    .default-avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .profile-container {
        margin: 10px;
        padding: 20px 15px;
    }

    .profile-header h1 {
        font-size: 24px;
    }

    .profile-picture-section {
        padding: 15px;
    }

    .profile-img,
    .default-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .upload-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .file-info {
        font-size: 12px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}
/* ============================================ */
/* Profile Page Styles */
/* ============================================ */

.profile-container {
    max-width: 800px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-header h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin: 0;
}

.profile-content {
    margin-top: 30px;
}

.profile-form {
    width: 100%;
}

.profile-picture-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-picture {
    margin-bottom: 20px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.default-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.picture-upload {
    text-align: center;
}

.upload-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.upload-btn:hover {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.file-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 5px;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

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

.btn-primary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Design for Profile Page */
@media (max-width: 768px) {
    .profile-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .profile-header h1 {
        font-size: 28px;
    }

    .profile-header p {
        font-size: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-picture-section {
        padding: 20px;
    }

    .profile-img,
    .default-avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .profile-container {
        margin: 10px;
        padding: 20px 15px;
    }

    .profile-header h1 {
        font-size: 24px;
    }

    .profile-picture-section {
        padding: 15px;
    }

    .profile-img,
    .default-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .upload-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .file-info {
        font-size: 12px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}
