body {
        /* Light mode background - Local workshop image */
        background-image: url('../assets/we.jpg');
        background-size: cover;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        transition: background-image 0.5s ease-in-out;
        font-size: 16px; /* Base font size for mobile */
        position: relative;
        padding-top: 70px;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        z-index: -1;
        pointer-events: none;
    }
    
    /* Main content background overlay for better readability */
    main {
        background-color: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        border-radius: 15px;
        padding: 30px;
        margin: 20px auto;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        max-width: 1200px;
        width: 100%;
    }
    
    /* Container centering */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* Responsive container adjustments */
    @media (min-width: 1400px) {
        .container {
            max-width: 1320px;
        }
        main {
            max-width: 1320px;
        }
    }
    
    @media (max-width: 768px) {
        .container {
            padding: 0 15px;
        }
        main {
            margin: 15px auto;
            padding: 20px;
        }
        body {
            background-attachment: scroll;
            background-position: center top;
            padding-top: 60px;
        }
    }
    
    @media (min-width: 1200px) {
        body {
            background-position: center center;
        }
    }
    
    /* Dark mode main content */
    body.dark-mode main {
        background-color: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(15px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    /* Dark mode text enhancements */
    body.dark-mode h1, 
    body.dark-mode h2, 
    body.dark-mode h3, 
    body.dark-mode h4, 
    body.dark-mode h5, 
    body.dark-mode h6 {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        color: #ffffff !important;
    }
    
    body.dark-mode p, 
    body.dark-mode li, 
    body.dark-mode td, 
    body.dark-mode th {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        color: #f1f1f1 !important;
    }
    
    body.dark-mode .card-title {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        color: #ffffff !important;
    }
    
    /* Unit card color headers */
    .card-header-color {
        height: 80px;
        border-radius: 8px 8px 0 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        position: relative;
        overflow: hidden;
    }
    
    .card-header-color::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
        animation: shimmer 3s infinite;
    }
    
    @keyframes shimmer {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }
    
    /* Random colors for unit cards */
    .unit-card[data-unit="1"] .card-header-color { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    .unit-card[data-unit="2"] .card-header-color { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
    .unit-card[data-unit="3"] .card-header-color { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
    .unit-card[data-unit="4"] .card-header-color { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
    .unit-card[data-unit="5"] .card-header-color { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
    .unit-card[data-unit="6"] .card-header-color { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
    .unit-card[data-unit="7"] .card-header-color { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
    .unit-card[data-unit="8"] .card-header-color { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
    .unit-card[data-unit="9"] .card-header-color { background: linear-gradient(135deg, #a8caba 0%, #5d4e75 100%); }
    .unit-card[data-unit="10"] .card-header-color { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
    .unit-card[data-unit="11"] .card-header-color { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
    .unit-card[data-unit="12"] .card-header-color { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); }
    .unit-card[data-unit="13"] .card-header-color { background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%); }
    .unit-card[data-unit="14"] .card-header-color { background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%); }
    .unit-card[data-unit="15"] .card-header-color { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
    .unit-card[data-unit="16"] .card-header-color { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
    
    /* Light mode enhancements */
    .card {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        overflow: hidden;
    }
    
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    .unit-card {
        position: relative;
    }
    
    .unit-card:hover .card-header-color::before {
        animation-duration: 1.5s;
    }
    
    .table {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .list-group-item {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Light mode navbar and footer */
    .navbar-primary {
        background-color: rgba(13, 110, 253, 0.95) !important;
        backdrop-filter: blur(10px);
    }
    
    footer {
        background-color: rgba(13, 110, 253, 0.95) !important;
        backdrop-filter: blur(10px);
    }
    
    /* Dark mode overrides */
    body.dark-mode {
        /* Dark mode background - Same image with overlay */
        background-image: url('../assets/we.jpg') !important;
        background-color: #181818 !important;
        color: #f1f1f1 !important;
        position: relative;
    }
    
    body.dark-mode::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
        pointer-events: none;
    }
    
    body.dark-mode .navbar, body.dark-mode .navbar-primary {
        background-color: #232b36 !important;
        color: #fff !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    }
    
    body.dark-mode .navbar .navbar-brand,
    body.dark-mode .navbar .nav-link,
    body.dark-mode .navbar .navbar-nav .nav-link,
    body.dark-mode .navbar .navbar-toggler,
    body.dark-mode .navbar .btn {
        color: #fff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    }
    
    body.dark-mode .navbar .nav-link.active,
    body.dark-mode .navbar .nav-link:focus,
    body.dark-mode .navbar .nav-link:hover {
        color: #ffeb3b !important;
    }
    
    body.dark-mode .table-primary {
        background-color: #2a3a52 !important;
        color: #f1f1f1 !important;
    }
    
    body.dark-mode .table, body.dark-mode table {
        background-color: #23272f !important;
        color: #fff !important;
        border-color: #666 !important;
    }
    
    body.dark-mode .table th, body.dark-mode table th {
        background-color: #2a3a52 !important;
        color: #ffeb3b !important;
        font-weight: bold;
        border-color: #666 !important;
    }
    
    body.dark-mode .table td, body.dark-mode table td {
        background-color: transparent !important;
        color: #fff !important;
        border-color: #666 !important;
    }
    
    body.dark-mode .table-striped > tbody > tr:nth-of-type(odd),
    body.dark-mode table tr:nth-child(odd) {
        background-color: #23272f !important;
    }
    
    body.dark-mode .table-striped > tbody > tr:nth-of-type(even),
    body.dark-mode table tr:nth-child(even) {
        background-color: #1a1d22 !important;
    }
    
    body.dark-mode .list-group-item {
        background-color: rgba(35, 39, 47, 0.95) !important;
        color: #f1f1f1 !important;
        border-color: #444 !important;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    body.dark-mode .card {
        background-color: rgba(35, 39, 47, 0.95) !important;
        color: #f1f1f1 !important;
        border-color: #444 !important;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        overflow: hidden;
    }
    
    body.dark-mode .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    }
    
    body.dark-mode footer {
        background-color: rgba(34, 46, 60, 0.95) !important;
        color: #f1f1f1 !important;
        backdrop-filter: blur(10px);
    }
    
    #toggle-mode {
        transition: color 0.3s;
    }
    
    body.dark-mode #toggle-mode {
        color: #ffeb3b !important;
        border-color: #ffeb3b !important;
        background: #232b36 !important;
    }
    
    /* Mobile styles (default) */
    h1 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 0.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 0.6rem;
    }
    
    .card-title {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .card-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    p, li, td, th {
        font-size: 0.95rem;
        line-height: 1.6;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    /* Enhanced text readability */
    h1, h2, h3, h4, h5, h6 {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        font-weight: 700;
    }
    
    .card-title {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    /* Tablet styles */
    @media (min-width: 768px) {
        body {
            font-size: 18px;
        }
        
        h1 {
            font-size: 2.2rem;
        }
        
        h2 {
            font-size: 1.8rem;
        }
        
        h3 {
            font-size: 1.5rem;
        }
        
        .card-title {
            font-size: 1.2rem;
        }
        
        .card-text {
            font-size: 1rem;
        }
        
        p, li, td, th {
            font-size: 1rem;
        }
    }
    
    /* Desktop styles */
    @media (min-width: 992px) {
        body {
        font-size: 20px;
        }
        
        h1 {
        font-size: 2.8rem;
            margin-bottom: 1.5rem;
        }
        
        h2 {
        font-size: 2.2rem;
            margin-bottom: 1.2rem;
        }
        
        h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
        }
        
        .card-title {
            font-size: 1.4rem;
        }
        
        .card-text {
            font-size: 1.1rem;
        }
        
        p, li, td, th {
            font-size: 1.1rem;
        }
        
        .navbar, .footer {
            font-size: 1.1rem;
        }
        
        /* Enhanced spacing for desktop */
        main {
            padding: 40px;
            margin: 30px 0;
        }
        
        .card {
            margin-bottom: 1.5rem;
        }
        
        .table {
            font-size: 1.1rem;
        }
    }
    
    /* Large desktop styles */
    @media (min-width: 1200px) {
        body {
            font-size: 22px;
        }
        
        h1 {
            font-size: 3.2rem;
        }
        
        h2 {
            font-size: 2.5rem;
        }
        
        h3 {
            font-size: 2rem;
        }
        
        .card-title {
            font-size: 1.5rem;
        }
        
        .card-text {
            font-size: 1.2rem;
        }
        
        p, li, td, th {
            font-size: 1.2rem;
        }
        
        main {
            padding: 50px;
            margin: 40px 0;
        }
    }
    
    /* Hero Card Styling */
    .hero-card {
        background: rgba(255,255,255,0.92);
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        border-radius: 32px;
        padding: 3vw 2vw;
        margin: 0 auto 3rem auto;
        max-width: 900px;
        min-height: 70vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3.2rem;
        font-weight: 900;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
    
    .hero-logos {
        margin-bottom: 2rem;
    }
    
    .hero-logo {
        height: 70px;
        width: auto;
        object-fit: contain;
        margin: 0 1.5vw;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10));
        transition: transform 0.2s;
    }
    .hero-logo:hover {
        transform: scale(1.08) rotate(-2deg);
    }
    
    .hero-asesor {
        display: block !important;
        color: #222 !important;
        opacity: 1 !important;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        letter-spacing: 0.5px;
    }
    
    .hero-list {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 0;
    }
    
    .hero-list li {
        margin-bottom: 0.5rem;
    }
    
    @media (max-width: 768px) {
        .hero-card {
            padding: 6vw 2vw;
            min-height: 55vh;
            max-width: 98vw;
        }
        .hero-title {
            font-size: 2.1rem;
        }
        .hero-logo {
            height: 44px;
            margin: 0 2vw;
        }
        .hero-asesor {
            font-size: 1.2rem;
        }
        .hero-list {
            font-size: 1rem;
        }
    }
    
    @media (min-width: 1200px) {
        .hero-card {
            min-height: 70vh;
            max-width: 1000px;
        }
        .hero-title {
            font-size: 4rem;
        }
        .hero-logo {
            height: 90px;
        }
        .hero-asesor {
            font-size: 2rem;
        }
        .hero-list {
            font-size: 1.5rem;
        }
    }
    
    body.dark-mode .hero-asesor {
        color: #fff !important;
    }
    
    body.dark-mode .hero-card {
        background: rgba(30, 34, 40, 0.92) !important;
        color: #fff !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.32);
    }
    
    body.dark-mode .hero-logo {
        background: #fff;
        border-radius: 50%;
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1050;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    
    .unit-code {
        font-size: 1.15rem;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0,0,0,0.18);
        padding: 0 12px 10px 12px;
        display: inline-block;
        border-radius: 0;
        background: none;
        margin-left: 8px;
    }
    
    @media (min-width: 992px) {
        .unit-code {
            font-size: 1.25rem;
            padding: 0 18px 14px 18px;
        }
    }
    
    p {
      font-size: 18px;
      margin-bottom: 20px;
    }
    a.button {
      display: inline-block;
      padding: 12px 24px;
      background-color: #4285F4;
      color: #fff;
      text-decoration: none;
      border-radius: 5px;
      font-size: 16px;
      transition: background-color 0.3s;
    }
    a.button:hover {
      background-color: #3367D6;
    }
    