
        /* Shared CSS Theme Variables */
        :root {
            --primary-blue: #0f3057;
            --secondary-blue: #168aad;
            --gold: #d4af37;
            --gold-hover: #aa8436;
            --accent-glow: rgba(212, 175, 55, 0.3);
            --bg-light: #f8f9fa;
            --bg-card-light: rgba(255, 255, 255, 0.95);
            --text-dark: #1e293b;
            --text-muted: #64748b;
            --border-light: rgba(15, 48, 87, 0.08);
            
            --bg-dark-base: #0f172a;
            --bg-card-dark: rgba(30, 41, 59, 0.95);
            --text-light: #f1f5f9;
            --text-muted-dark: #94a3b8;
            --border-dark: rgba(255, 255, 255, 0.08);

            --dynamic-bg: var(--bg-light);
            --dynamic-card-bg: var(--bg-card-light);
            --dynamic-text: var(--text-dark);
            --dynamic-text-muted: var(--text-muted);
            --dynamic-border: var(--border-light);
            --glass-blur: blur(16px);
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
            --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        body.dark-theme {
            --dynamic-bg: var(--bg-dark-base);
            --dynamic-card-bg: var(--bg-card-dark);
            --dynamic-text: var(--text-light);
            --dynamic-text-muted: var(--text-muted-dark);
            --dynamic-border: var(--border-dark);
            color-scheme: dark;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
            width: 100%;
            max-width: 100%;
        }

        body {
            background-color: var(--dynamic-bg);
            color: var(--dynamic-text);
            transition: var(--transition-smooth);
            overflow-x: hidden;
            width: 100%;
            max-width: 100%;
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        h1, h2, h3, h4, .brand-font {
            font-family: 'Cinzel', serif;
            letter-spacing: 0.5px;
        }

        /* Loading Preloader overlay */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-blue);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }
        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.1);
            border-top: 5px solid var(--gold);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        .preloader-text {
            color: white;
            margin-top: 15px;
            font-family: 'Cinzel', serif;
            letter-spacing: 2px;
            font-size: 0.9rem;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Sticky Navigation Bar */
        .navbar {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--dynamic-card-bg);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border-bottom: 1px solid var(--dynamic-border);
            padding: 15px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow-sm);
            transition: var(--transition-smooth);
        }
        .logo-area {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: inherit;
        }
        .logo-icon {
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
            color: var(--gold);
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            margin-right: 12px;
            border: 2px solid var(--gold);
            font-size: 1.2rem;
            box-shadow: var(--shadow-sm);
        }
        .logo-text h1 {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--primary-blue);
            line-height: 1.2;
        }
        body.dark-theme .logo-text h1 {
            color: white;
        }
        .logo-text span {
            font-size: 0.7rem;
            display: block;
            color: var(--gold);
            letter-spacing: 1px;
            text-transform: uppercase;
            font-weight: 600;
        }
        
        .nav-links {
            display: flex;
            align-items: center;
            list-style: none;
            gap: 25px;
        }
        .nav-links a {
            text-decoration: none;
            color: var(--dynamic-text);
            font-weight: 600;
            font-size: 0.9rem;
            transition: var(--transition-smooth);
            position: relative;
            padding: 5px 0;
        }
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background-color: var(--gold);
            transition: var(--transition-smooth);
            transform: translateX(-50%);
        }
        .nav-links a:hover {
            color: var(--secondary-blue);
        }
        .nav-links a:hover::after {
            width: 100%;
        }
        
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .theme-toggle-btn, .profile-btn {
            background: none;
            border: none;
            color: var(--dynamic-text);
            cursor: pointer;
            font-size: 1.25rem;
            transition: var(--transition-bounce);
            padding: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }
        .menu-btn {
            background: none;
            border: none;
            color: var(--dynamic-text);
            cursor: pointer;
            font-size: 1.25rem;
            transition: var(--transition-bounce);
            padding: 6px;
            display: none;
            align-items: center;
            justify-content: center;
        }
        .theme-toggle-btn:hover, .profile-btn:hover, .menu-btn:hover {
            color: var(--gold);
            transform: scale(1.15);
        }

        .lang-selector {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            font-weight: bold;
        }
        .lang-link {
            text-decoration: none;
            color: var(--dynamic-text);
            opacity: 0.6;
            transition: var(--transition-smooth);
        }
        .lang-link.active, .lang-link:hover {
            color: var(--gold);
            opacity: 1;
        }
        .lang-separator {
            color: var(--dynamic-border);
        }

        .page-header {
            background: linear-gradient(rgba(15, 48, 87, 0.9), rgba(15, 48, 87, 0.95)), #0f3057;
            color: white;
            padding: 60px 0;
            text-align: center;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            transition: background 0.4s ease-in-out;
        }
        .page-header h2 {
            font-family: 'Cinzel', serif;
            font-size: 2.2rem;
            margin-bottom: 10px;
        }
        .page-header p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.95rem;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Workspace Container */
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 0;
        }

        /* Glass Cards / Forms Layout */
        .card-glass {
            background: var(--dynamic-card-bg);
            border: 1px solid var(--dynamic-border);
            border-radius: 12px;
            padding: 30px;
            box-shadow: var(--shadow-sm);
            margin-bottom: 30px;
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
        }

        /* Filter Row controls grid */
        .table-controls {
            display: flex;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 25px;
        }
        .search-box {
            position: relative;
            flex-grow: 2;
            min-width: 260px;
        }
        .search-box i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
        }
        .search-box input {
            padding-left: 45px !important;
        }
        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--dynamic-border);
            background: var(--dynamic-bg);
            color: var(--dynamic-text);
            border-radius: 30px;
            outline: none;
            font-size: 0.9rem;
            transition: var(--transition-smooth);
        }
        .form-control:focus {
            border-color: var(--secondary-blue);
            box-shadow: 0 0 0 3px rgba(22, 138, 173, 0.15);
        }
        .filter-select {
            padding: 12px 18px;
            border-radius: 30px;
            border: 1px solid var(--dynamic-border);
            background: var(--dynamic-bg);
            color: var(--dynamic-text);
            outline: none;
            font-size: 0.85rem;
            cursor: pointer;
            min-width: 160px;
            flex-grow: 1;
        }

        /* Database Tables layout */
        .table-responsive {
            overflow-x: auto;
            width: 100%;
            -webkit-overflow-scrolling: touch;
        }
        .admin-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
            text-align: left;
        }
        .admin-table th {
            background: var(--primary-blue);
            color: white;
            padding: 12px 15px;
            font-weight: 500;
        }
        body.dark-theme .admin-table th {
            background: #1e293b;
        }
        .admin-table td {
            padding: 12px 15px;
            border-bottom: 1px solid var(--dynamic-border);
        }
        .admin-table tbody tr:hover {
            background: rgba(22, 138, 173, 0.02);
        }

        /* Status Pills */
        .status-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            border-radius: 30px;
            font-weight: bold;
            font-size: 0.75rem;
        }

        .btn-action {
            background: var(--primary-blue);
            color: white;
            border: none;
            padding: 6px 14px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 600;
            transition: var(--transition-smooth);
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        body.dark-theme .btn-action {
            background: var(--secondary-blue);
        }
        .btn-action:hover {
            background: var(--gold);
            color: var(--primary-blue);
            transform: translateY(-1px);
        }

        /* Subject Breakdown Modal Styling */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(8px);
            z-index: 1100;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .modal-card {
            background: var(--dynamic-card-bg);
            border: 1px solid var(--dynamic-border);
            border-radius: 16px;
            padding: 30px;
            max-width: 800px;
            width: 100%;
            box-shadow: var(--shadow-lg);
            position: relative;
            max-height: 95vh;
            overflow-y: auto;
        }
        .modal-close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 1.4rem;
            color: var(--text-muted);
            cursor: pointer;
            transition: var(--transition-smooth);
        }
        .modal-close-btn:hover {
            color: #ef4444;
            transform: scale(1.1);
        }
        .modal-header {
            margin-bottom: 20px;
            border-bottom: 1px solid var(--dynamic-border);
            padding-bottom: 15px;
            text-align: left;
        }
        .modal-header h3 {
            font-family: 'Cinzel', serif;
            font-size: 1.3rem;
            color: var(--primary-blue);
            margin-bottom: 5px;
        }
        body.dark-theme .modal-header h3 {
            color: white;
        }

        /* -------------------------------------------------------------
           MODERN EXECUTIVE DETAILED MARKS CERTIFICATE
        ---------------------------------------------------------------- */
        .dmc-wrapper {
            background: #ffffff;
            color: #1e293b;
            padding: 40px;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            margin-top: 15px;
            margin-bottom: 25px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.04);
            position: relative;
            background-image: radial-gradient(rgba(15, 48, 87, 0.015) 1px, transparent 1px);
            background-size: 20px 20px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        body.dark-theme .dmc-wrapper {
            background: #ffffff; 
            color: #1e293b;
        }
        /* Subtle watermarking */
        .dmc-wrapper::before {
            content: '\f19d'; 
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 11rem;
            color: rgba(15, 48, 87, 0.015);
            pointer-events: none;
        }
        .dmc-header {
            text-align: center;
            border-bottom: 2px solid #0f3057;
            padding-bottom: 15px;
            margin-bottom: 25px;
            position: relative;
        }
        .dmc-header h2 {
            font-family: 'Cinzel', serif;
            font-size: 1.7rem;
            font-weight: 800;
            color: #0f3057;
            margin-bottom: 4px;
            letter-spacing: 1px;
        }
        .dmc-header p {
            font-size: 0.8rem;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 600;
        }
        .dmc-title {
            display: inline-block;
            background: linear-gradient(135deg, #0f3057, #168aad);
            color: #ffffff;
            font-family: 'Cinzel', serif;
            font-size: 0.9rem;
            font-weight: 700;
            padding: 5px 24px;
            border-radius: 4px;
            letter-spacing: 0.8px;
            margin-top: 10px;
            box-shadow: 0 4px 10px rgba(15, 48, 87, 0.15);
        }
        .dmc-meta-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            font-size: 0.85rem;
            margin-bottom: 25px;
            background: #f8fafc;
            padding: 20px;
            border-radius: 8px;
            border: 1px solid #edf2f7;
        }
        .dmc-meta-item {
            display: flex;
            align-items: center;
            padding: 3px 0;
        }
        .dmc-meta-label {
            font-weight: 700;
            color: #0f3057;
            min-width: 110px;
            text-transform: uppercase;
            font-size: 0.75rem;
        }
        .dmc-meta-value {
            color: #1e293b;
            font-weight: 600;
            border-bottom: 1px solid #cbd5e1;
            flex-grow: 1;
            margin-left: 10px;
            text-align: left;
        }
        
        .dmc-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.8rem;
            margin-bottom: 25px;
            table-layout: fixed; /* Strictly proportionalizes column sizing */
        }
        .dmc-table th, .dmc-table td {
            word-wrap: break-word;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 10px 12px;
            border: 1px solid #edf2f7;
            color: #1e293b;
            font-weight: 500;
        }
        .dmc-table th {
            background: #0f3057 !important;
            color: #ffffff !important;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.75rem;
        }
        /* Rigid column width structures for DMC */
        .dmc-table th:nth-child(1), .dmc-table td:nth-child(1) { width: 12%; text-align: center; } /* Sr No */
        .dmc-table th:nth-child(2), .dmc-table td:nth-child(2) { width: 43%; text-align: left; }   /* Subject */
        .dmc-table th:nth-child(3), .dmc-table td:nth-child(3) { width: 15%; text-align: center; } /* Total */
        .dmc-table th:nth-child(4), .dmc-table td:nth-child(4) { width: 15%; text-align: center; } /* Obtained */
        .dmc-table th:nth-child(5), .dmc-table td:nth-child(5) { width: 15%; text-align: center; } /* Percentage */

        .dmc-table tr:nth-child(even) {
            background: #f8fafc;
        }
        
        /* Redesigned grid-based dmc row wrapper to prevent stacking collapses on mobile views */
        .dmc-summary-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            padding: 15px 20px;
            font-size: 0.85rem;
            font-weight: 700;
            color: #0f3057;
            margin-bottom: 30px;
            text-align: center;
        }
        .dmc-summary-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .dmc-summary-label {
            font-size: 0.7rem;
            color: #64748b;
            text-transform: uppercase;
            margin-bottom: 2px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        /* Gold Stamp Seals Decors */
        .dmc-footer-area {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 35px;
        }

        .gold-seal {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            width: 75px;
            height: 75px;
            border: 2px dashed var(--gold);
            border-radius: 50%;
            background: rgba(212, 175, 55, 0.03);
            position: relative;
        }
        .gold-seal i {
            color: var(--gold);
            font-size: 1.6rem;
        }
        .gold-seal span {
            font-size: 0.45rem;
            text-transform: uppercase;
            font-weight: 800;
            letter-spacing: 0.5px;
            color: var(--gold-hover);
            margin-top: 3px;
        }

        .dmc-signatures-row {
            display: flex;
            gap: 40px;
            text-align: center;
            font-size: 0.75rem;
        }
        .sig-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .sig-line {
            width: 130px;
            height: 1px;
            background: #cbd5e1;
            margin-bottom: 6px;
        }
        .sig-title {
            font-weight: 700;
            color: #0f3057;
            text-transform: uppercase;
            font-size: 0.7rem;
        }

        /* Scroll To Top Button */
        .scroll-top-btn {
            position: fixed;
            bottom: 30px;
            left: 30px;
            background: var(--gold);
            color: var(--primary-blue);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--shadow-md);
            opacity: 0;
            visibility: hidden;
            transition: var(--transition-bounce);
            z-index: 99;
            border: none;
        }
        .scroll-top-btn.show {
            opacity: 1;
            visibility: visible;
        }
        .scroll-top-btn:hover {
            background: var(--primary-blue);
            color: white;
            transform: translateY(-5px);
        }

        /* Toast Feedback overlay alerts */
        .notification-toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--primary-blue);
            color: white;
            border-left: 5px solid var(--gold);
            padding: 15px 25px;
            border-radius: 4px;
            box-shadow: var(--shadow-lg);
            z-index: 1200;
            display: flex;
            align-items: center;
            gap: 12px;
            transform: translateY(150%);
            transition: var(--transition-smooth);
            font-size: 0.9rem;
        }
        .notification-toast.show {
            transform: translateY(0);
        }

        /* Footer */
        .footer {
            background: #081a30;
            color: #e2e8f0;
            padding: 80px 0 30px 0;
            font-size: 0.85rem;
            border-top: 4px solid var(--gold);
            margin-top: auto;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
            gap: 40px;
            margin-bottom: 50px;
        }
        .footer-logo h2 {
            font-size: 1.3rem;
            color: white;
            margin-bottom: 15px;
        }
        .footer-logo p {
            color: #94a3b8;
            margin-bottom: 25px;
            line-height: 1.6;
        }
        .footer-social-links {
            display: flex;
            gap: 12px;
        }
        .footer-social-links a {
            background: rgba(255, 255, 255, 0.05);
            color: white;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition-smooth);
        }
        .footer-social-links a:hover {
            background: var(--gold);
            color: var(--primary-blue);
            transform: translateY(-3px);
        }
        .footer-links-col h4 {
            font-size: 1.05rem;
            color: white;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 8px;
        }
        .footer-links-col h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 35px;
            height: 2px;
            background: var(--gold);
        }
        .footer-links-col ul {
            list-style: none;
        }
        .footer-links-col ul li {
            margin-bottom: 12px;
        }
        .footer-links-col ul li a {
            color: #94a3b8;
            text-decoration: none;
            transition: var(--transition-smooth);
        }
        .footer-links-col ul li a:hover {
            color: white;
            padding-left: 5px;
        }
        .footer-newsletter p {
            color: #94a3b8;
            margin-bottom: 20px;
        }
        .newsletter-form {
            display: flex;
            gap: 8px;
        }
        .newsletter-input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 10px 15px;
            border-radius: 4px;
            flex-grow: 1;
            outline: none;
            font-size: 0.8rem;
        }
        .newsletter-btn {
            background: var(--gold);
            color: var(--primary-blue);
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition-smooth);
        }
        .newsletter-btn:hover {
            background: var(--gold-hover);
            color: white;
        }
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            color: #94a3b8;
        }

        /* -------------------------------------------------------------
           MODERN PRINT AND EXPORT HELPER OVERRIDES
        ---------------------------------------------------------------- */
        /* Temporary class appended strictly during html2canvas render to lock desktop dimensions */
        .dmc-print-layout {
            width: 750px !important;
            max-width: 750px !important;
            padding: 40px !important;
        }
        .dmc-print-layout .dmc-meta-grid {
            grid-template-columns: 1fr 1fr !important;
            gap: 20px !important;
        }
        .dmc-print-layout .dmc-summary-row {
            grid-template-columns: repeat(3, 1fr) !important;
            gap: 15px !important;
            text-align: center !important;
        }
        .dmc-print-layout .dmc-footer-area {
            flex-direction: row !important;
            justify-content: space-between !important;
        }
        .dmc-print-layout .dmc-signatures-row {
            width: auto !important;
        }

        @media print {
            body {
                background: #ffffff !important;
                color: #000000 !important;
            }
            body * {
                visibility: hidden;
            }
            #breakdownModal, #breakdownModal * {
                visibility: visible;
            }
            #breakdownModal {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: auto;
                background: #ffffff !important;
                display: block !important;
                box-shadow: none;
            }
            .modal-card {
                position: absolute;
                left: 0;
                top: 0;
                width: 100% !important;
                max-width: 100% !important;
                padding: 0 !important;
                background: #ffffff !important;
                box-shadow: none;
                border: none;
            }
            .modal-close-btn, .modal-header, .no-print, .theme-toggle-btn, .navbar, .footer, .scroll-top-btn {
                display: none !important;
            }
            .dmc-wrapper {
                border: 2px solid #0f3057 !important;
                box-shadow: none !important;
                margin: 0 !important;
                padding: 20px !important;
                page-break-inside: avoid;
            }
            .dmc-header h2, .dmc-title, .dmc-meta-label, .sig-title {
                color: #0f3057 !important;
            }
            .dmc-summary-row {
                background: #f1f5f9 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
        }

        @media (max-width: 1024px) {
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 768px) {
            input, select, textarea, .form-control, .filter-select {
                font-size: 16px !important;
            }
            .navbar {
                padding: 15px 20px;
            }
            .menu-btn {
                display: flex;
            }
            .nav-links {
                position: fixed;
                top: 75px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 75px);
                background: var(--dynamic-card-bg);
                backdrop-filter: var(--glass-blur);
                -webkit-backdrop-filter: var(--glass-blur);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 30px;
                transition: var(--transition-smooth);
                box-shadow: var(--shadow-md);
            }
            .nav-links.active {
                left: 0;
            }
            .footer-grid {
                grid-template-columns: 1fr;
            }
            .newsletter-form {
                flex-direction: column;
                gap: 10px;
                width: 100%;
            }
            .newsletter-input, .newsletter-btn {
                width: 100%;
                text-align: center;
            }
        }

        @media (max-width: 600px) {
            .dmc-wrapper {
                padding: 20px 15px;
            }
            .dmc-header h2 {
                font-size: 1.3rem;
            }
            .dmc-header p {
                font-size: 0.7rem;
            }
            .dmc-title {
                font-size: 0.75rem;
                padding: 4px 15px;
            }
            .dmc-meta-grid {
                grid-template-columns: 1fr;
                gap: 12px;
                padding: 12px;
            }
            .dmc-table {
                font-size: 0.72rem;
            }
            .dmc-table th, .dmc-table td {
                padding: 8px 6px;
            }
            .dmc-summary-row {
                grid-template-columns: 1fr;
                gap: 10px;
                padding: 12px;
                text-align: center;
            }
            .dmc-footer-area {
                flex-direction: column;
                gap: 25px;
            }
            .dmc-signatures-row {
                width: 100%;
                justify-content: space-around;
                gap: 10px;
            }
        }
    
        /* ══════════════════════════════════════════════
           Notices Directory — page-specific styles
           ══════════════════════════════════════════════ */
        .notices-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 24px;
        }
        .notices-toolbar .search-box {
            flex: 1;
            min-width: 220px;
        }
        .notices-count-badge {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--dynamic-text-muted);
            white-space: nowrap;
        }

        .notices-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .notice-card {
            display: flex;
            flex-direction: column;
            padding: 0;
            overflow: hidden;
            cursor: pointer;
            transition: var(--transition-smooth);
        }
        .notice-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
            border-color: var(--gold);
        }
        .notice-card__img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            background: var(--dynamic-border);
        }
        .notice-card__body {
            padding: 18px 20px 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }
        .notice-card__badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            width: fit-content;
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            color: var(--gold-hover);
            background: var(--accent-glow);
            padding: 3px 10px;
            border-radius: 20px;
        }
        .notice-card__title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--dynamic-text);
            line-height: 1.35;
        }
        .notice-card__excerpt {
            font-size: 0.85rem;
            color: var(--dynamic-text-muted);
            line-height: 1.55;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .notice-card__footer {
            margin-top: auto;
            padding-top: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.75rem;
            color: var(--dynamic-text-muted);
        }
        .notice-card__read {
            color: var(--secondary-blue);
            font-weight: 700;
        }

        .notices-empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
            color: var(--dynamic-text-muted);
        }
        .notices-empty-state i {
            font-size: 2.2rem;
            margin-bottom: 12px;
            display: block;
            color: var(--dynamic-border);
        }

        /* Detailed notice modal content (reuses .modal-overlay / .modal-card) */
        .notice-modal-img {
            width: 100%;
            max-height: 320px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 18px;
        }
        .notice-modal-meta {
            font-size: 0.78rem;
            color: var(--dynamic-text-muted);
            margin-bottom: 14px;
        }
        .notice-modal-content {
            font-size: 0.92rem;
            line-height: 1.75;
            color: var(--dynamic-text);
            white-space: pre-wrap;
        }
