/* =========================================================
   GLOBAL STYLES
   ========================================================= */

/* Base page styling used across the application */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
}

/* =========================================================
   SHARED LAYOUT (app.blade.php)
   ========================================================= */

/* Fixed top banner containing the menu toggle and logo */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 110px;
    background: #003366;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 30px;
    border-bottom: 2px solid #FFD700;
    z-index: 1000;
    gap: 18px;
}

/* Sidebar toggle button */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    margin-right: 6px;
    flex-shrink: 0;
}

/* Logo container inside the top banner */
.banner-logo-card {
    height: 100px;
    width: 360px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    flex-shrink: 1;
}

/* Banner logo image */
.banner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* Fixed sidebar navigation */
.sidebar {
    position: fixed;
    top: 110px;
    left: 0;
    width: 220px;
    height: calc(100vh - 110px);
    background: #ffffff;
    border-right: 1px solid #ddd;
    transition: width 0.3s ease;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Collapsed sidebar state */
.sidebar.collapsed {
    width: 70px;
}

/* Navigation area inside the sidebar */
.sidebar-nav {
    flex: 1;
    padding-top: 10px;
}

/* Shared styling for sidebar links */
.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: #003366;
    font-weight: 600;
}

.nav-item:hover {
    background: #eef4ff;
}

/* Sidebar icon styling */
.nav-icon {
    font-size: 1.3rem;
    min-width: 24px;
    text-align: center;
}

/* Hide labels when the sidebar is collapsed */
.sidebar.collapsed .nav-label {
    display: none;
}

/* Sidebar footer containing the email FAB */
.sidebar-footer {
    padding: 16px 12px 20px;
}

/* Email action button pinned to the sidebar footer */
.email-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #003366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 16px 16px 0 0;
    padding: 14px 16px;
    font-weight: 700;
    box-sizing: border-box;
    transition: background 0.25s ease, transform 0.25s ease;
}

.email-fab:hover {
    background: #00509e;
}

.email-fab-icon {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.email-fab-label {
    white-space: nowrap;
}

/* Adjust footer button layout when sidebar is collapsed */
.sidebar.collapsed .email-fab {
    padding: 14px 0;
    border-radius: 16px 16px 0 0;
}

.sidebar.collapsed .email-fab-label {
    display: none;
}

/* Main page content area beside the sidebar */
.main-content {
    margin-top: 110px;
    margin-left: 220px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content.collapsed {
    margin-left: 70px;
}

/* Custom install button for the PWA */
.pwa-install-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    display: none;
    align-items: center;
    gap: 10px;
    background: #003366;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.pwa-install-btn:hover {
    background: #00509e;
}

/* =========================================================
   HOME PAGE (welcome.blade.php)
   ========================================================= */

/* Home page wrapper */
.home-wrapper {
    max-width: 1000px;
    margin: 30px auto;
}

.home-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 30px;
}

/* Dashboard card grid on the welcome page */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Reusable dashboard navigation card */
.dashboard-card {
    background: #ffffff;
    border-radius: 22px;
    min-height: 220px;
    padding: 30px 25px;
    text-decoration: none;
    color: #003366;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #e6e6e6;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    background: #fdfdfd;
}

.dashboard-icon {
    font-size: 9rem;
    margin-bottom: 18px;
    color: #003366;
}

.dashboard-label {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: #003366;
}

/* =========================================================
   DIRECTORY PAGE (directory.blade.php)
   ========================================================= */

/* Faculty directory page wrapper */
.directory-wrapper {
    max-width: 1200px;
    margin: 30px auto;
}

.directory-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 30px;
}

/* Grid for staff profile cards */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Reusable faculty/staff profile card */
.staff-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9e9e9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.staff-photo {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: #e2e2e2;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 3px solid #f2f2f2;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-info h3 {
    margin: 0 0 6px;
    color: #003366;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.staff-info p {
    margin: 0 0 22px;
    color: #8a8a8a;
    font-size: 0.98rem;
    font-weight: 500;
}

/* Contact action buttons within each staff card */
.contact-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links a {
    flex: 1;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: #ffffff;
    color: #003366;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.contact-links a:hover {
    background: #003366;
    color: #ffffff;
    border-color: #003366;
}

.contact-links i {
    font-size: 1rem;
    line-height: 1;
}

/* =========================================================
   COURSES PAGE (courses.blade.php)
   ========================================================= */

/* Courses page wrapper */
.courses-wrapper {
    max-width: 1150px;
    margin: 30px auto;
}

.courses-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 30px;
}

/* Grid for displaying course cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 34px;
}

/* Folder-style course card wrapper */
.course-folder {
    position: relative;
    padding-top: 18px;
}

/* Course code tab at the top of the folder card */
.course-tab {
    position: absolute;
    top: 0;
    left: 0;
    background: #003366;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 16px 16px 0 0;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 51, 102, 0.25);
    z-index: 2;
}

/* Main course card content */
.course-card {
    background: #ffffff;
    border-radius: 0 24px 24px 24px;
    padding: 30px 26px 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-left: 3px solid #003366;
    text-align: left;
    min-height: 220px;
}

.course-title {
    margin: 12px 0 16px;
    font-size: 1.22rem;
    font-weight: 700;
    color: #1d1d1d;
    line-height: 1.35;
}

/* Row containing metadata pills */
.course-meta-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Reusable pill styling for course details */
.meta-pill {
    background: #eef4ff;
    border: 1px solid #dbe6ff;
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #5c6f9e;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #003366;
}

.course-description {
    color: #555555;
    font-size: 0.96rem;
    line-height: 1.6;
}

/* Empty state card shown when no courses exist */
.empty-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9e9e9;
    text-align: center;
    max-width: 600px;
}

.empty-card h3 {
    margin: 0 0 10px;
    color: #003366;
    font-size: 1.3rem;
}

.empty-card p {
    margin: 0;
    color: #666666;
    line-height: 1.5;
}

/* =========================================================
   ADMISSIONS PAGE (admissions.blade.php)
   ========================================================= */

/* Admissions page wrapper */
.admissions-wrapper {
    max-width: 1100px;
    margin: 30px auto;
}

.admissions-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 30px;
}

/* Grid for admission requirement cards */
.admissions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* Reusable admission information card */
.admission-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 26px 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9e9e9;
    text-align: left;
}

.admission-icon {
    font-size: 4rem;
    color: #003366;
    margin-bottom: 12px;
}

.admission-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 10px;
}

.admission-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555555;
    margin: 0;
}

/* Application link button */
.apply-wrapper {
    margin-top: 35px;
}

.apply-btn {
    display: inline-block;
    background: #FFD700;
    color: #003366;
    border-radius: 14px;
    padding: 14px 28px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.apply-btn i {
    margin-left: 6px;
}

/* =========================================================
   SOCIAL PAGE (socials.blade.php)
   ========================================================= */

/* Social media page wrapper */
.socials-wrapper {
    max-width: 950px;
    margin: 30px auto;
}

.socials-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 12px;
}

.socials-subtitle {
    color: #666666;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Grid for social media cards */
.socials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Reusable social media card */
.social-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9e9e9;
    text-align: center;
}

/* Platform icon container */
.social-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon {
    font-size: 2rem;
    color: #ffffff;
    line-height: 1;
}

.facebook-wrap {
    background: #1877F2;
}

.twitter-wrap {
    background: #1DA1F2;
}

.instagram-wrap {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-card h3 {
    margin: 0 0 18px;
    color: #003366;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Reusable external social link button */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    box-sizing: border-box;
}

.facebook-btn {
    background: #1877F2;
}

.twitter-btn {
    background: #1DA1F2;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Adjust medium screens for faculty, admissions, and socials */
@media (max-width: 992px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admissions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .socials-grid {
        grid-template-columns: 1fr;
    }
}

/* Stack course cards on smaller screens */
@media (max-width: 900px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
    .top-banner {
        height: 100px;
        padding: 0 18px;
    }

    .banner-logo-card {
        width: 250px;
        height: 64px;
    }

    .sidebar {
        top: 100px;
        height: calc(100vh - 100px);
    }

    .main-content {
        margin-top: 100px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-card {
        min-height: 180px;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-links a {
        width: 100%;
    }

    .admissions-grid {
        grid-template-columns: 1fr;
    }
}