/* Load True Algerian Font via TTF */
@font-face {
    font-family: 'AlgerianWeb';
    src: url('fonts/Algerian Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Page Background Setup: Light Gradient (Yellow to Green to Blue) */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #fef08a 0%, #bbf7d0 50%, #bae6fd 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333333;
    font-family: Arial, sans-serif;
    font-size: 18.5px;
}

/* Top Utility Bar Styles (Home, About Us, Contact Us) */
.utility-bar {
    background-color: #031c1c;
    padding: 8px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-bottom: 2px solid #0d9488;
}

.utility-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.utility-link:hover {
    background-color: #0d9488;
    transform: translateY(-1px);
}

/* Header Container Layout */
.header-container {
    text-align: center;
    padding: 30px 20px 20px 20px;
}

/* Flexbox Layout to align logos and title horizontally */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Base Logo Styling: Natural display with a clean white background box */
.school-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    background-color: #ffffff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

/* Push the left logo significantly rightward toward the center */
.left-logo {
    margin-left: 90px;
}

/* Push the right logo significantly leftward toward the center */
.right-logo {
    margin-right: 90px;
}

/* School Title Font Styling */
.school-title {
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.5;
    flex: 1;
    min-width: 280px;
}

/* Line 1: Dark Blue */
.line-1 {
    display: block;
    font-size: 36px;
    font-family: 'AlgerianWeb', 'Algerian', Arial, sans-serif;
    letter-spacing: 2px;
    color: #1e3a8a;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
    text-transform: uppercase;
}

/* Line 2: Light Green */
.line-2 {
    display: block;
    font-size: 28px;
    font-family: Arial, sans-serif;
    color: #15803d;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: capitalize;
}

/* ==========================================================
   PORTAL MAIN LAYOUT (Sidebar + Main Content Area)
   ========================================================== */
.portal-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    gap: 30px;
}

/* Vertical Sidebar for Navigation Cards */
.sidebar-nav {
    width: 290px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Main Content Area Wrapper */
.main-content-area {
    flex: 1;
}

/* Content Card Styling */
.content-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    color: #1e293b;
}

.content-card h2 {
    color: #003030;
    margin-top: 0;
    font-size: 28px;
    border-bottom: 3px solid #0d9488;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

/* ==========================================================
   INDIVIDUAL COLORFUL TITLE CARDS / BUTTONS (Arial 14pt)
   ========================================================== */
.nav-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 18.5px; /* Locked to Arial 14pt equivalent */
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(1.05);
}

/* Compact, perfectly-scaled standard icon badge container */
.nav-card::before {
    content: attr(data-icon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Compact SVG vector icon container sizing */
.nav-card .custom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 3px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Global Paragraph and Normal Content Text Scaling (Arial 14pt) */
p, li {
    font-size: 18.5px;
    line-height: 1.6;
    color: #334155;
}

/* Vibrant Colorful Palette Assignment for Sidebar Nav Cards */
.card-announcements      { background: linear-gradient(135deg, #ef4444, #dc2626); }
.card-staff-login        { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.card-student-login      { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.card-events             { background: linear-gradient(135deg, #ec4899, #db2777); }
.card-academic-calendar  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.card-exam-schedules     { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.card-time-tables        { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.card-daily-routine      { background: linear-gradient(135deg, #10b981, #059669); }
.card-holiday-routine    { background: linear-gradient(135deg, #84cc16, #65a30d); }
.card-mess-menu          { background: linear-gradient(135deg, #f59e0b, #d97706); }
.card-library            { background: linear-gradient(135deg, #10b981, #047857); }
.card-staff-details      { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.card-gallery            { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.card-creative-corner    { background: linear-gradient(135deg, #d946ef, #c026d3); }
.card-testimonials       { background: linear-gradient(135deg, #0ea5e9, #0284c7); }

/* Responsive adjustments for mobile devices */
@media (max-width: 900px) {
    .portal-layout {
        flex-direction: column;
    }
    .sidebar-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 8px;
    }
    .school-logo {
        height: 70px;
        padding: 4px;
    }
    .left-logo {
        margin-left: 20px;
    }
    .right-logo {
        margin-right: 20px;
    }
    .line-1 {
        font-size: 24px;
        letter-spacing: 1px;
    }
    .line-2 {
        font-size: 18px;
    }
}