/*
   Wentworth College & Primary - Custom CSS Overrides

   Wentworth Brand Colors:
   - Primary Blue: #192E59
   - Primary Blue (Dark): #12234A (for hover states)
   - Secondary Maroon: #6E0A24
   - Accent Gold: #C5912C

   Note: Primary colors are now defined in main.css:
   - --tp-theme-primary: #192E59 (Wentworth Blue)

   This file is for project-specific CSS overrides only.
   Do not duplicate color definitions from main.css here.
*/

/* ===================================================================
   Navigation Menu Contrast Fixes (WCAG 2.2 AA Compliance)
   =================================================================== */

/* Submenu links - ensure dark text on white background for contrast */
.main-menu > nav > ul > li > .tp-submenu li > a {
    color: #192E59 !important;
}

.main-menu > nav > ul > li > .tp-submenu li:hover > a,
.main-menu > nav > ul > li > .tp-submenu li.active > a {
    color: #6E0A24 !important;
}

/* Top header bar links - ensure sufficient contrast on blue background */
.tp-header-top .tp-header-right-list a {
    color: #ffffff !important;
}

/* Transparent header on homepage - add text shadow for better readability */
.tp-header-transparent .main-menu nav > ul > li > a {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* When header becomes sticky, remove text shadow as background is solid */
.tp-header-transparent.tp-header-sticky .main-menu nav > ul > li > a,
.tp-header-transparent .tp-header-sticky .main-menu nav > ul > li > a {
    text-shadow: none;
    color: #192E59 !important;
}

/* Language switcher — hidden until translations are ready; remove this rule to re-enable */
.header-bottom__lang {
    display: none !important;
}

/* Language switcher contrast fix */
.header-bottom__lang-submenu a {
    color: #192E59 !important;
}

.header-bottom__lang-submenu a:hover {
    color: #6E0A24 !important;
}

/* ===================================================================
   Main Menu Active State
   =================================================================== */

/* Active menu item - main nav (uses gold accent color) */
.main-menu nav > ul > li.active > a {
    color: #C5912C !important;
}

/* Active menu item underline indicator */
.main-menu nav > ul > li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C5912C;
}

/* Ensure anchor is positioned for the underline */
.main-menu nav > ul > li > a {
    position: relative;
}

/* Active state for submenu items */
.main-menu nav > ul > li > .tp-submenu li.active > a {
    color: #C5912C !important;
    font-weight: 600;
}

/* Transparent header - active state with better visibility */
.tp-header-transparent .main-menu nav > ul > li.active > a {
    color: #C5912C !important;
}

/* Sticky header - active state */
.tp-header-transparent.tp-header-sticky .main-menu nav > ul > li.active > a,
.tp-header-transparent .tp-header-sticky .main-menu nav > ul > li.active > a {
    color: #C5912C !important;
}

/* Mobile menu active state */
.tp-main-menu-mobile ul li.active > a {
    color: #C5912C !important;
    position: relative;
    padding-left: 15px;
}

.tp-main-menu-mobile ul li.active > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background-color: #C5912C;
}


/* ===================================================================
   Sticky Footer Layout
   =================================================================== */

/* Ensure body takes full viewport height and uses flexbox */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content area expands to fill available space */
main {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
footer {
    flex-shrink: 0;
}

/* Footer credit styling */
.tp-footer-credit {
    margin-left: 15px;
    opacity: 0.8;
}

.tp-footer-credit a {
    color: #C7963B;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tp-footer-credit a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Hero Background Video Styles */
.tp-hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.tp-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.tp-hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
}

/* Show fallback image if video fails to load */
.tp-hero-video:not([src]) + .tp-hero-video-fallback,
video:not([src]) + .tp-hero-video-fallback {
    display: block;
}

/* Ensure content appears above video */
.tp-hero-item .container {
    position: relative;
    z-index: 1;
}

/* Fix slide height consistency - all slides same height */
.tp-hero-area .swiper-slide {
    height: auto;
}

.tp-hero-area .tp-hero-item {
    height: 100%;
}

/* Override default button hover color - use darker Wentworth blue instead of maroon */
.tp-btn:hover:not(.tp-cta-btn-styled) {
    background-color: #12234A !important;
    border-color: #12234A !important;
}

/* Hero CTA Button - Maroon color for better contrast (WCAG 2.2 compliant) */
.tp-hero-area .tp-hero-btn .tp-btn {
    background-color: #6E0A24 !important;
    border-color: #6E0A24 !important;
}

.tp-hero-area .tp-hero-btn .tp-btn:hover {
    background-color: #4D0719 !important;
    border-color: #4D0719 !important;
}

/* About Area CTA - also uses darker blue on hover */
.tp-about-btn .tp-btn:hover {
    background-color: #12234A !important;
    border-color: #12234A !important;
}

/* Header CTA Button - Wentworth Maroon */
.tp-header-1.tp-header-sticky .tp-header-btn a {
    background-color: #6E0A24 !important;
    border-color: #6E0A24 !important;
}

.tp-header-1.tp-header-sticky .tp-header-btn a:hover {
    background-color: #4D0719 !important;
    border-color: #4D0719 !important;
    color: var(--tp-common-white) !important;
}

/* Also apply to non-sticky header */
.tp-header-1 .tp-header-btn a {
    background-color: #6E0A24 !important;
    border-color: #6E0A24 !important;
}

.tp-header-1 .tp-header-btn a:hover {
    background-color: #4D0719 !important;
    border-color: #4D0719 !important;
    color: var(--tp-common-white) !important;
}

/* ===================================================================
   Mission Area - WENTWORTH Values Display
   =================================================================== */

.tp-our-mission-area {
    position: relative;
}

.tp-our-mission-heading {
    margin-bottom: 50px;
}

.tp-our-mission-title {
    font-size: 36px;
    font-weight: 700;
    color: #192E59;
    margin-bottom: 15px;
}

.tp-our-mission-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tp-our-mission-item {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tp-our-mission-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Image/Letter on the left */
.tp-our-mission-item-thumb {
    flex-shrink: 0;
    margin-right: 25px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-our-mission-item-thumb img {
    width: auto;
    height: 80px;
    object-fit: contain;
}

/* Content on the right */
.tp-our-mission-item-content {
    flex: 1;
    color: #ffffff;
}

.tp-our-mission-item-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.tp-our-mission-item-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
}

.tp-our-mission-item-btn {
    margin-top: 15px;
}

.tp-our-mission-item-btn .tp-btn-3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tp-our-mission-item-btn .tp-btn-3:hover {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tp-our-mission-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .tp-our-mission-item-thumb {
        margin-right: 0;
        margin-bottom: 15px;
        width: auto;
        justify-content: center;
    }

    .tp-our-mission-item-thumb img {
        height: 60px;
    }

    .tp-our-mission-item-content {
        width: 100%;
        padding-left: 0;
    }

    .tp-our-mission-item-title {
        font-size: 18px;
    }
}

/* Content Callout Boxes */
.tp-content-callout {
    padding: 24px;
    border-radius: 6px;
    margin-bottom: 40px;
    border-left: 4px solid;
    font-size: 16px;
    line-height: 1.6;
}

.tp-content-callout p {
    margin: 0;
}

.tp-content-callout-info {
    background-color: #e7f3ff;
    border-left-color: #192E59;
    color: #031F42;
}

.tp-content-callout-warning {
    background-color: #fff9e6;
    border-left-color: #C5912C;
    color: #6B5416;
}

.tp-content-callout-success {
    background-color: #e6f7e6;
    border-left-color: #2d7a2d;
    color: #1a4d1a;
}

.tp-content-callout-important {
    background-color: #ffe6e6;
    border-left-color: #6E0A24;
    color: #4D0719;
}

/* Counter Area - Color picker now used for background colors */
/* Text color contrast handled by inline styles in the view */

/* ===================================================================
   Header Logo Switching (Hero vs Main)
   =================================================================== */

/* Default state on homepage: show hero logo (with white border), hide main logo */
.tp-header-transparent .logo-hero {
    display: block;
}

.tp-header-transparent .logo-main {
    display: none;
}

/* Sticky state on homepage: hide hero logo, show main logo */
.tp-header-transparent.tp-header-sticky .logo-hero,
.tp-header-transparent .tp-header-sticky .logo-hero {
    display: none;
}

.tp-header-transparent.tp-header-sticky .logo-main,
.tp-header-transparent .tp-header-sticky .logo-main {
    display: block;
}

/* Inner pages: always show main logo (no transparent header) */
body.page-inner .logo-hero {
    display: none;
}

body.page-inner .logo-main {
    display: block;
}

/* ===================================================================
   Inner Page Header Styles
   =================================================================== */

/* Inner page header - solid white background with shadow */
body.page-inner .header-area {
    position: relative;
    background-color: var(--tp-common-white);
    box-shadow: 0px 1px 2px 1px rgba(3, 11, 30, 0.06), 0px 1px 1px 0px rgba(3, 11, 30, 0.1);
}

/* Ensure header sticky div has white background on inner pages */
body.page-inner .tp-header-1,
body.page-inner #header-sticky {
    background-color: var(--tp-common-white);
}

/* Dark text color and reduced padding for menu links on inner pages */
body.page-inner .main-menu nav > ul > li > a {
    color: var(--tp-heading-primary);
    padding: 25px 0 25px 0 !important;
}

/* Dropdown arrow color on inner pages */
body.page-inner .main-menu > nav > ul > li.has-dropdown > a::after {
    color: var(--tp-heading-primary);
}

/* Top header bar - keep blue background with white text on inner pages */
body.page-inner .tp-header-top {
    background-color: var(--tp-theme-primary);
}

body.page-inner .tp-header-info-item,
body.page-inner .tp-header-info-item a,
body.page-inner .tp-header-right-list a {
    color: var(--tp-common-white);
}

/* Language dropdown submenu styling on inner pages */
body.page-inner .header-bottom__lang-submenu {
    background-color: var(--tp-common-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.page-inner .header-bottom__lang-submenu li a {
    color: var(--tp-heading-primary);
}

/* Search icon color on inner pages */
body.page-inner .tp-header-serach button svg path {
    stroke: var(--tp-heading-primary);
}

/* Mobile menu toggle on inner pages - blue background with white icon */
body.page-inner .tp-header-bar button,
body.page-inner .offcanvas-open-btn {
    background-color: var(--tp-theme-primary);
    color: #ffffff;
}

body.page-inner .tp-header-bar button i,
body.page-inner .offcanvas-open-btn i {
    color: #ffffff;
}

/* Dropdown menu text color on inner pages */
body.page-inner .tp-submenu li a {
    color: var(--tp-text-body);
}

body.page-inner .tp-submenu li a:hover {
    color: var(--tp-theme-primary);
}

/* Ensure dropdown menus have proper background */
body.page-inner .tp-submenu {
    background-color: var(--tp-common-white);
}

/* Logo sizing - use smaller logo on inner pages (same as sticky header) */
body.page-inner .tp-header-logo .logo-1 {
    display: none !important;
}

body.page-inner .tp-header-logo .logo-2 {
    display: block !important;
}

/* Ensure smaller logo is always shown on inner pages, even when not sticky */
body.page-inner #header-sticky .logo-1 {
    display: none !important;
}

body.page-inner #header-sticky .logo-2 {
    display: block !important;
}

/* ===================================================================
   Breadcrumb Styles
   =================================================================== */

/* Breadcrumb section height
   Default pt-160 pb-150 gives ~390px — increased to show more of
   background images without going full hero height. */
.tp-breadcrumb__area {
    padding-top: 220px !important;
    padding-bottom: 210px !important;
}

@media (max-width: 767px) {
    .tp-breadcrumb__area {
        padding-top: 140px !important;
        padding-bottom: 120px !important;
    }
}

/* Portal header uses its own compact pt-100 pb-60 sizing —
   restore it so the global !important override doesn't affect portal pages. */
.page-portal .tp-breadcrumb__area {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
}

@media (max-width: 767px) {
    .page-portal .tp-breadcrumb__area {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }
}

/* Base breadcrumb background */
.tp-breadcrumb__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Brand Color Backgrounds */
.tp-breadcrumb__bg-blue {
    background-color: #192E59; /* Primary Blue */
}

.tp-breadcrumb__bg-maroon {
    background-color: #6E0A24; /* Secondary Maroon */
}

.tp-breadcrumb__bg-gold {
    background-color: #C5912C; /* Accent Gold */
}

.tp-breadcrumb__bg-white {
    background-color: #ffffff; /* White */
    box-shadow: 0px 1px 2px 1px rgba(3, 11, 30, 0.06), 0px 1px 1px 0px rgba(3, 11, 30, 0.1);
}

/* Image Background */
.tp-breadcrumb__bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optional overlay for image backgrounds */
.tp-breadcrumb__bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for better text readability */
    z-index: 1;
}

/* Ensure breadcrumb content appears above backgrounds */
.tp-breadcrumb__content {
    position: relative;
    z-index: 2;
}

/* Dark text color for white backgrounds */
.tp-breadcrumb__list .dark,
.tp-breadcrumb__list .dark a,
.tp-breadcrumb__title.dark {
    color: var(--tp-heading-primary);
}

/* Ensure white text has proper color */
.tp-breadcrumb__list .white,
.tp-breadcrumb__list .white a {
    color: #ffffff;
}

/* ===================================================================
   Text Color Mode Classes
   These classes allow components to switch between light and dark text
   based on their background color.
   =================================================================== */

/* Service Area - Equal height wrap sections (heights set via JavaScript) */
.tp-service-area .tp-service-wrap,
.service-area .tp-service-wrap {
    display: flex;
    flex-direction: column;
}

.tp-service-area .tp-service-btn,
.service-area .tp-service-btn {
    margin-top: auto;
}

/* Service Area - Footer link spacing */
.tp-service-all span a {
    margin-left: 8px;
}

/* Service Area - Titles inside panels are always dark */
.tp-service-title,
.tp-service-title a {
    color: var(--tp-heading-primary);
}

.tp-service-btn a span svg path {
    stroke: var(--tp-heading-primary);
}

/* Service Area - Text below panels is dynamic based on background */
/* Text Dark Mode - for light/transparent backgrounds */
.text-dark .tp-service-content p,
.text-dark .tp-service-all span {
    color: var(--tp-text-body);
}

.text-dark .tp-service-all span a {
    color: var(--tp-heading-primary);
}

.text-dark .tp-service-all span a::before,
.text-dark .tp-service-all span a::after {
    background: var(--tp-heading-primary);
}

.text-dark .tp-service-all span a svg path {
    stroke: var(--tp-heading-primary);
}

/* Service card CTA button - border matches component background on light backgrounds */
.text-dark .tp-service-btn span::before {
    border-color: var(--service-bg-color, var(--tp-common-white));
}

/* Text Light Mode - for dark backgrounds */
.text-light .tp-service-content p,
.text-light .tp-service-all span {
    color: rgba(255, 255, 255, 0.8);
}

.text-light .tp-service-all span a {
    color: var(--tp-common-white);
}

.text-light .tp-service-all span a::before,
.text-light .tp-service-all span a::after {
    background: var(--tp-common-white);
}

.text-light .tp-service-all span a svg path {
    stroke: var(--tp-common-white);
}

.text-light .tp-service-btn span::before {
    border-color: var(--service-bg-color, var(--tp-theme-primary));
}

/* CTA Area - button uses selected button color with dynamic text color and border */
.tp-cta-area .tp-cta-btn .tp-btn.tp-cta-btn-styled {
    background-color: var(--cta-btn-color) !important;
    border: 2px solid var(--cta-btn-border) !important;
    color: var(--cta-btn-text) !important;
}

/* Hover state - darker version of button color */
.tp-cta-area .tp-cta-btn .tp-btn.tp-cta-btn-styled:hover {
    background-color: var(--cta-btn-hover) !important;
}

/* CTA Area - text colors based on background */
.text-dark .tp-cta-title {
    color: var(--tp-heading-primary);
}

.text-dark .tp-cta-subtitle {
    color: var(--tp-text-body);
}

.text-light .tp-cta-title {
    color: var(--tp-common-white);
}

.text-light .tp-cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Process Steps Area - text color modes */
.text-dark .tp-apply-process-title,
.text-dark .tp-apply-process-subtitle {
    color: var(--tp-heading-primary);
}

/* Light background (white/transparent) - use maroon for step numbers */
.text-dark .tp-apply-process-subtitle span {
    color: #6E0A24;
    border-color: #6E0A24;
    background: transparent;
}

.text-dark .tp-apply-process-box p {
    color: var(--tp-text-body);
}

.text-light .tp-apply-process-title,
.text-light .tp-apply-process-subtitle {
    color: var(--tp-common-white);
}

/* Dark background (blue/maroon/gold) - use white for step numbers */
.text-light .tp-apply-process-subtitle span {
    color: var(--tp-common-white);
    border-color: var(--tp-common-white);
    background: transparent;
}

.text-light .tp-apply-process-box p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================================================
   About Area - Override template fixed padding
   =================================================================== */

/* Remove fixed padding from template so composition settings apply */
.tp-about-bg {
    padding-bottom: 0;
}

/* ===================================================================
   Team Area - Modal styling for bio/email popup
   =================================================================== */

.tp-team-modal .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.tp-team-modal .modal-header {
    border-bottom: 1px solid #eee;
    padding: 20px 24px;
}

.tp-team-modal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #192E59;
}

.tp-team-modal .modal-body {
    padding: 24px;
}

.tp-team-modal-photo img {
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.tp-team-modal-name {
    font-size: 20px;
    font-weight: 600;
    color: #192E59;
    margin-bottom: 4px;
}

.tp-team-modal-role {
    font-size: 14px;
    color: #6E0A24;
    font-weight: 500;
}

.tp-team-modal-bio {
    font-size: 15px;
    line-height: 1.7;
    color: #515151;
}

/* Team/Leadership hover overlay - use Wentworth Maroon instead of bright red */
.tp-leadership-thumb::after {
    background: linear-gradient(180deg, rgba(110, 10, 36, 0) 38.02%, #6E0A24 100%);
}

/* ===================================================================
   Breadcrumb - Fix alignment between links and current page text
   =================================================================== */

/* Remove the transform on links that causes misalignment */
.tp-breadcrumb__list span a {
    transform: none;
}

/* Ensure all breadcrumb items align vertically */
.tp-breadcrumb__list span {
    display: inline-flex;
    align-items: center;
}

/* ===================================================================
   Menu Breakpoint Fix (1200-1399px)
   Reduces menu spacing and font size at the xl breakpoint to prevent
   navigation items from wrapping awkwardly on medium desktop screens.
   =================================================================== */

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .main-menu > nav > ul > li {
        margin: 0px 10px;
    }

    .main-menu > nav > ul > li > a {
        font-size: 15px;
    }
}

/* ===================================================================
   Testimonial Area - Featured Image (when no video)
   =================================================================== */

.tp-testimonial-featured-image {
    padding: 20px;
}

.tp-testimonial-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .tp-testimonial-featured-image {
        margin-bottom: 40px;
    }
}

/* ===================================================================
   Footer Styles
   =================================================================== */

.tp-footer-address {
    color: var(--tp-text-body);
    font-size: 14px;
    line-height: 1.6;
}

.tp-footer-newsletter-social .social-insta {
    color: #E4405F;
}

.tp-footer-newsletter-social .social-insta:hover {
    border-color: #E4405F;
}

/* ===================================================================
   Rich Text Content - List Styling
   =================================================================== */

/* Base list styles for rich text areas */
.tp-richtext-content ul,
.tp-richtext-content ol,
.tp-postbox-wrapper ul,
.tp-postbox-wrapper ol {
    margin: 0 0 24px 0;
    padding-left: 0;
    list-style: none;
}

.tp-richtext-content li,
.tp-postbox-wrapper li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--tp-text-body);
}

.tp-richtext-content li:last-child,
.tp-postbox-wrapper li:last-child {
    margin-bottom: 0;
}

/* Unordered list bullets */
.tp-richtext-content ul > li::before,
.tp-postbox-wrapper ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--tp-theme-primary, #192E59);
    border-radius: 50%;
}

/* Ordered list numbers */
.tp-richtext-content ol,
.tp-postbox-wrapper ol {
    counter-reset: list-counter;
}

.tp-richtext-content ol > li,
.tp-postbox-wrapper ol > li {
    counter-increment: list-counter;
}

.tp-richtext-content ol > li::before,
.tp-postbox-wrapper ol > li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--tp-theme-primary, #192E59);
    min-width: 20px;
}

/* Nested lists */
.tp-richtext-content ul ul,
.tp-richtext-content ol ol,
.tp-richtext-content ul ol,
.tp-richtext-content ol ul,
.tp-postbox-wrapper ul ul,
.tp-postbox-wrapper ol ol,
.tp-postbox-wrapper ul ol,
.tp-postbox-wrapper ol ul {
    margin-top: 12px;
    margin-bottom: 0;
}

/* Second level unordered - hollow circle */
.tp-richtext-content ul ul > li::before,
.tp-postbox-wrapper ul ul > li::before {
    background-color: transparent;
    border: 2px solid var(--tp-theme-primary, #192E59);
    width: 6px;
    height: 6px;
    top: 11px;
}

/* Third level unordered - square */
.tp-richtext-content ul ul ul > li::before,
.tp-postbox-wrapper ul ul ul > li::before {
    border-radius: 0;
    background-color: var(--tp-grey-1, #6b7280);
    border: none;
    width: 6px;
    height: 6px;
}

/* Headings within rich text should have proper spacing */
.tp-richtext-content h2,
.tp-richtext-content h3,
.tp-richtext-content h4,
.tp-postbox-wrapper h2,
.tp-postbox-wrapper h3,
.tp-postbox-wrapper h4 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.tp-richtext-content h2:first-child,
.tp-richtext-content h3:first-child,
.tp-richtext-content h4:first-child,
.tp-postbox-wrapper h2:first-child,
.tp-postbox-wrapper h3:first-child,
.tp-postbox-wrapper h4:first-child {
    margin-top: 0;
}

/* Paragraphs in rich text */
.tp-richtext-content p,
.tp-postbox-wrapper p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Keep embedded media responsive inside rich text content */
.tp-richtext-content img,
.tp-postbox-wrapper img {
    max-width: 100%;
    height: auto;
}

.tp-richtext-content figure,
.tp-postbox-wrapper figure {
    max-width: 100%;
}

.tp-richtext-content iframe,
.tp-postbox-wrapper iframe,
.tp-richtext-content video,
.tp-postbox-wrapper video {
    max-width: 100%;
}

/* Keep rich text tables from overflowing mobile viewport */
.tp-richtext-content table,
.tp-postbox-wrapper table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Two-column rich text block media responsiveness */
.two-column-content .column-content img {
    max-width: 100%;
    height: auto;
}

.two-column-content .column-content figure {
    max-width: 100%;
}

.two-column-content .column-content iframe,
.two-column-content .column-content video {
    max-width: 100%;
}

.two-column-content .column-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===================================================================
   Hero Area - Short Viewport Height Adjustments
   For desktop screens with limited vertical space (e.g., 1280x800 with
   browser chrome and OS taskbar reducing viewport to ~640px height)
   =================================================================== */

/* Desktop with short viewport height (max-height: 720px) */
@media screen and (min-width: 992px) and (max-height: 720px) {
    .tp-hero-item {
        padding-top: 200px;
        padding-bottom: 160px;
    }

    .tp-hero-title {
        font-size: 80px;
        margin-bottom: 20px;
    }

    .tp-hero-wrapper {
        margin-left: 60px;
    }
}

/* Desktop with very short viewport height (max-height: 640px) */
@media screen and (min-width: 992px) and (max-height: 640px) {
    .tp-hero-item {
        padding-top: 160px;
        padding-bottom: 120px;
    }

    .tp-hero-title {
        font-size: 70px;
        margin-bottom: 16px;
    }

    .tp-hero-subtitle {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .tp-hero-wrapper {
        margin-left: 40px;
    }
}

/* Desktop with extremely short viewport height (max-height: 560px) */
@media screen and (min-width: 992px) and (max-height: 560px) {
    .tp-hero-item {
        padding-top: 130px;
        padding-bottom: 80px;
    }

    .tp-hero-title {
        font-size: 56px;
        margin-bottom: 12px;
    }

    .tp-hero-subtitle {
        font-size: 16px;
    }
}

/* ===================================================================
   Mobile Menu - Top Navigation Links
   Displays links like Student Portal, Parent Portal in mobile menu
   =================================================================== */

/* Make offcanvas wrapper use flexbox for bottom-anchored buttons */
.offcanvas__area .offcanvas__wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-bottom: 30px;
}

.offcanvas__area .offcanvas__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.offcanvas__area .offcanvas__top {
    flex-shrink: 0;
}

.offcanvas__area .offcanvas-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Scrollable menu area */
.offcanvas__area .tp-main-menu-mobile {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 20px;
}

/* Bottom-anchored links container */
.offcanvas-top-links {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offcanvas-top-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #f5f5f5;
    border-radius: 6px;
    color: var(--tp-heading-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.offcanvas-top-link:hover {
    background-color: var(--tp-theme-primary, #192E59);
    color: var(--tp-common-white);
}

.offcanvas-cta {
    flex-shrink: 0;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-cta .tp-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 14px 24px;
    background-color: #6E0A24;
    border-color: #6E0A24;
}

.offcanvas-cta .tp-btn:hover {
    background-color: #4D0719;
    border-color: #4D0719;
}

/* ===================================================================
   Contact Page - Info Box Styling
   Enhanced design for email, phone, and address cards
   =================================================================== */

.tp-contact-info-item {
    padding: 32px;
    border-radius: 12px;
    border: none;
    background: var(--tp-common-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
}

.tp-contact-info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.tp-contact-info-icon {
    margin-bottom: 20px;
}

.tp-contact-info-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #192E59;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(25, 46, 89, 0.3);
    transition: all 0.3s ease;
}

.tp-contact-info-item:hover .tp-contact-info-icon i {
    background: #12234A;
    box-shadow: 0 6px 20px rgba(25, 46, 89, 0.4);
    transform: scale(1.05);
}

.tp-contact-info-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--tp-heading-primary, #192E59);
    margin-bottom: 12px;
}

.tp-contact-info-content p {
    color: #515151;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 0;
}

.tp-contact-info-content a {
    color: var(--tp-theme-primary, #192E59);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tp-contact-info-content a:hover {
    color: #6E0A24;
}

/* Remove the underline animation from the original theme */
.tp-contact-info-item a::after,
.tp-contact-info-item a::before {
    display: none;
}

/* Contact Form - Send Message Button */
.tp-contact-form .tp-btn-inner {
    background-color: #192E59;
    border-color: #192E59;
    color: #fff;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tp-contact-form .tp-btn-inner:hover {
    background-color: #12234A;
    border-color: #12234A;
}

/* ===================================================================
   Back to Top Button - Brand Colors
   =================================================================== */

.back-to-top-btn {
    background-color: #6E0A24 !important;
    color: #fff !important;
    /*border-radius: 6px;*/
    box-shadow: 0 4px 15px rgba(25, 46, 89, 0.3);
}

    .back-to-top-btn:hover {
        background-color: #4D0719 !important;
        box-shadow: 0 6px 20px rgba(25, 46, 89, 0.4);
    }

.back-to-top-btn svg path {
    stroke: #fff;
}

/* ===================================================================
   Accessibility - Skip to Main Content Link
   Visually hidden until focused, then appears at top of page
   =================================================================== */

.skip-to-main {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    padding: 12px 24px;
    background-color: #192E59;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 6px 6px;
    transition: top 0.3s ease;
}

.skip-to-main:focus {
    top: 0;
    outline: 3px solid #C5912C;
    outline-offset: 2px;
}

/* ===================================================================
   FAQ / Accordion Body - Rich Text Typography
   Scales headings down from page-section sizes to compact inline sizes,
   and ensures list bullet styling works inside Bootstrap's accordion reset.
   =================================================================== */

/* Scale headings down — global h2 is 36px, h3 28px: way too large inside a panel */
.accordion-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tp-heading-primary, #192E59);
    margin-top: 24px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.accordion-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--tp-heading-primary, #192E59);
    margin-top: 20px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.accordion-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--tp-heading-primary, #192E59);
    margin-top: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.accordion-body h5,
.accordion-body h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-heading-primary, #192E59);
    margin-top: 12px;
    margin-bottom: 6px;
}

/* First heading needs no top margin */
.accordion-body h2:first-child,
.accordion-body h3:first-child,
.accordion-body h4:first-child {
    margin-top: 0;
}

/* Paragraphs */
.accordion-body p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--tp-text-body);
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

/* Lists — Bootstrap resets list-style to none and padding to 0, so we restore
   the same custom-bullet approach used in .tp-richtext-content, with explicit
   specificity to beat Bootstrap's accordion reset. */
.accordion-body ul,
.accordion-body ol {
    margin: 0 0 16px 0;
    padding-left: 0;
    list-style: none;
}

.accordion-body ul:last-child,
.accordion-body ol:last-child {
    margin-bottom: 0;
}

.accordion-body li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--tp-text-body);
    font-size: 15px;
}

.accordion-body li:last-child {
    margin-bottom: 0;
}

/* Unordered list — filled blue circle bullet */
.accordion-body ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    background-color: var(--tp-theme-primary, #192E59);
    border-radius: 50%;
}

/* Ordered list — numbered counter */
.accordion-body ol {
    counter-reset: faq-list-counter;
}

.accordion-body ol > li {
    counter-increment: faq-list-counter;
}

.accordion-body ol > li::before {
    content: counter(faq-list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--tp-theme-primary, #192E59);
    font-size: 14px;
}

/* Nested lists */
.accordion-body ul ul,
.accordion-body ol ol,
.accordion-body ul ol,
.accordion-body ol ul {
    margin-top: 8px;
    margin-bottom: 0;
}

/* Second-level unordered — hollow circle */
.accordion-body ul ul > li::before {
    background-color: transparent;
    border: 2px solid var(--tp-theme-primary, #192E59);
    width: 5px;
    height: 5px;
    top: 10px;
}

/* Ensure Bootstrap's visually-hidden-focusable works if not loaded */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===================================================================
   Accessibility - Enhanced Focus Indicators (WCAG 2.4.7)
   Visible focus styles for keyboard navigation
   =================================================================== */

/* Global focus style for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.tp-btn:focus-visible,
.tp-btn-inner:focus-visible,
.accordion-button:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 2px !important;
}

/* Remove default outline when using focus-visible (for mouse users) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

/* Navigation menu items - enhanced focus */
.main-menu nav ul li a:focus-visible,
.tp-submenu li a:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 2px !important;
    background-color: rgba(197, 145, 44, 0.1);
}

/* Header buttons focus */
.tp-search-open-btn:focus-visible,
.tp-search-close-btn:focus-visible,
.offcanvas-open-btn:focus-visible,
.offcanvas__close-btn:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 2px !important;
}

/* Mobile menu links focus */
.offcanvas__area a:focus-visible,
.offcanvas-top-link:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 2px !important;
}

/* Footer links focus */
footer a:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 2px !important;
}

/* Social media icons focus */
.tp-footer-newsletter-social a:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 2px !important;
    border-radius: 50%;
}

/* Carousel/slider navigation focus */
.tp-testimonial-prev:focus-visible,
.tp-testimonial-next:focus-visible,
.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 2px !important;
}

/* Form inputs focus - enhance existing styles */
.form-control:focus-visible,
.tp-contact-input input:focus-visible,
.tp-contact-input textarea:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 0 !important;
    border-color: #192E59 !important;
    box-shadow: 0 0 0 3px rgba(197, 145, 44, 0.25) !important;
}

/* Checkbox and radio focus */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 2px !important;
}

/* Back to top button focus */
.back-to-top-btn:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 2px !important;
}

/* Gallery/lightbox image links focus */
.popup-image:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 4px !important;
}

/* Card and panel focus when interactive */
.tp-service-item a:focus-visible,
.tp-program-item a:focus-visible,
.tp-leadership-item a:focus-visible {
    outline: 3px solid #C5912C !important;
    outline-offset: 2px !important;
}

/* ===================================================================
   Two Column CTA Card - Equal Height & Button Accessibility Fixes
   =================================================================== */

/* Make both CTA panels equal height */
.banner-area .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.banner-area .row > [class*="col-"] {
    display: flex;
}

.banner-area .tp-banner-sm-2-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 40px;
}

/* Push button to bottom and maintain minimum spacing */
.banner-area .tp-banner-sm-2-btn {
    margin-top: auto;
    padding-top: 20px;
}

/* Hover state - slightly darker button background */
.tp-banner-sm-2-btn a:hover {
    filter: brightness(0.85);
}

/* ===================================================================
   Student/Staff Portal Styles
   =================================================================== */

/* CSS Variables for Portal */
:root {
    --portal-navy: #192E59;
    --portal-navy-dark: #12234A;
    --portal-maroon: #6E0A24;
    --portal-maroon-dark: #4D0719;
    --portal-gold: #C5912C;
    --portal-sidebar-width: 280px;
}

/* ===================================================================
   Portal Login Page Styles
   =================================================================== */

.portal-login-section {
    background-color: #f5f7fa;
}

.portal-login-section .portal-login-container {
    max-width: 480px;
    margin: 0 auto;
}

.portal-login-section .portal-login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.portal-login-section .portal-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.portal-login-section .portal-login-logo {
    margin-bottom: 24px;
}

.portal-login-section .portal-logo-img {
    max-width: 250px;
    height: auto;
}

.portal-login-section .portal-login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--portal-navy);
    margin: 0 0 8px 0;
}

.portal-login-section .portal-login-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.portal-login-form .form-label {
    font-weight: 600;
    color: #333;
}

.portal-login-form .input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: var(--portal-navy);
}

.portal-login-form .form-control {
    border-color: #dee2e6;
}

.portal-login-form .form-control:focus {
    border-color: var(--portal-navy);
    box-shadow: 0 0 0 3px rgba(25, 46, 89, 0.15);
}

.portal-login-btn {
    background-color: var(--portal-navy) !important;
    border-color: var(--portal-navy) !important;
    font-weight: 600;
    padding: 12px 24px;
}

.portal-login-btn:hover {
    background-color: var(--portal-navy-dark) !important;
    border-color: var(--portal-navy-dark) !important;
}

.portal-login-btn:focus {
    box-shadow: 0 0 0 3px rgba(25, 46, 89, 0.3) !important;
}

.portal-login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.portal-login-help {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.portal-login-help a {
    color: var(--portal-navy);
    font-weight: 500;
}

.portal-login-back {
    font-size: 13px;
    margin: 0;
}

.portal-login-back a {
    color: #666;
    text-decoration: none;
}

.portal-login-back a:hover {
    color: var(--portal-navy);
}

/* ===================================================================
   Portal Dashboard & Inner Pages Styles
   =================================================================== */

/* Portal Header - shown on authenticated pages */
.portal-header {
    background-color: var(--portal-navy);
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.portal-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--portal-header-height);
}

.portal-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-header-brand a {
    color: #fff;
    text-decoration: none;
}

.portal-brand-text {
    font-weight: 700;
    font-size: 18px;
}

.portal-header-divider {
    color: rgba(255, 255, 255, 0.4);
}

.portal-header-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.portal-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-user-name {
    font-size: 14px;
    font-weight: 500;
}

.portal-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--portal-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-avatar-initials {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.portal-logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.portal-logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Portal Banner */
.portal-banner {
    position: relative;
    background: linear-gradient(135deg, var(--portal-navy) 0%, var(--portal-navy-dark) 100%);
    padding: 30px 0;
    color: #fff;
}

.portal-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/img/portal/banner-pattern.svg');
    background-repeat: repeat;
    opacity: 0.05;
}

.portal-banner-content {
    position: relative;
    z-index: 1;
}

.portal-user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.portal-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--portal-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.portal-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-profile-initials {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.portal-profile-info {
    flex: 1;
}

.portal-profile-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}

.portal-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.portal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.portal-meta-item i {
    font-size: 12px;
    opacity: 0.7;
}

/* Portal Body / Content Area */
.portal-body {
    background-color: #f5f7fa;
    min-height: calc(100vh - var(--portal-header-height));
}

.portal-content {
    padding: 30px 0;
}

/* Portal Sidebar */
.portal-sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px 0;
    position: sticky;
    top: calc(var(--portal-header-height) + 20px);
}

.portal-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-nav-section-title {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
}

.portal-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #515151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.portal-nav-link:hover {
    background-color: #f5f7fa;
    color: var(--portal-navy);
}

.portal-nav-link.active {
    background-color: rgba(25, 46, 89, 0.06);
    color: var(--portal-navy);
    border-left-color: var(--portal-gold);
    font-weight: 600;
}

.portal-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.portal-nav-divider {
    height: 1px;
    background-color: #eee;
    margin: 12px 20px;
}

.portal-nav-logout {
    color: var(--portal-maroon);
}

.portal-nav-logout:hover {
    background-color: rgba(110, 10, 36, 0.06);
    color: var(--portal-maroon-dark);
}

/* Portal Main Content */
.portal-main-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 24px;
    min-height: 400px;
}

/* Portal Cards */
.portal-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-bottom: 20px;
}

.portal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.portal-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--portal-navy);
    margin: 0;
}

.portal-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(25, 46, 89, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--portal-navy);
    font-size: 18px;
}

/* Portal Page Titles */
.portal-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--portal-navy);
    margin: 0 0 20px 0;
}

.portal-page-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
}

/* Portal Footer */
.portal-footer {
    background-color: #fff;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.portal-footer-text {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Portal Responsive Styles */
@media (max-width: 991px) {
    .portal-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .portal-profile-avatar {
        width: 60px;
        height: 60px;
    }

    .portal-profile-initials {
        font-size: 22px;
    }

    .portal-profile-name {
        font-size: 20px;
    }

    .portal-profile-meta {
        gap: 12px;
    }

    .portal-meta-item {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .portal-user-profile {
        flex-direction: column;
        text-align: center;
    }

    .portal-profile-meta {
        justify-content: center;
    }

    .portal-main-content {
        padding: 16px;
    }
}

/* ===================================================================
   Portal Dashboard Specific Styles
   =================================================================== */

/* Portal Content Area */
.portal-content-area {
    background-color: #f5f7fa;
}

/* Stat Cards */
.portal-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.portal-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(25, 46, 89, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--portal-navy);
    font-size: 20px;
    flex-shrink: 0;
}

.portal-stat-content {
    display: flex;
    flex-direction: column;
}

.portal-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.portal-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--portal-navy);
}

/* Schedule List */
.portal-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-schedule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.portal-schedule-item:hover {
    background-color: #f0f2f5;
}

.portal-schedule-item.current {
    background-color: rgba(25, 46, 89, 0.06);
    border-left-color: var(--portal-gold);
}

.portal-schedule-time {
    display: flex;
    flex-direction: column;
    min-width: 100px;
    flex-shrink: 0;
}

.portal-schedule-period {
    font-weight: 600;
    color: var(--portal-navy);
    font-size: 14px;
}

.portal-schedule-hours {
    font-size: 12px;
    color: #666;
}

.portal-schedule-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portal-schedule-subject {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 4px;
}

.portal-schedule-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

.portal-schedule-room,
.portal-schedule-teacher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.portal-schedule-badge {
    background-color: var(--portal-gold);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Empty State */
.portal-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.portal-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.portal-empty-state p {
    margin: 0;
    font-size: 15px;
}

/* Quick Links */
.portal-quick-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
}

.portal-quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.portal-quick-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.portal-quick-link-content {
    display: flex;
    flex-direction: column;
}

.portal-quick-link-title {
    font-weight: 600;
    color: var(--portal-navy);
    font-size: 15px;
    margin-bottom: 2px;
}

.portal-quick-link-desc {
    font-size: 13px;
    color: #666;
}

/* Responsive adjustments for schedule */
@media (max-width: 575px) {
    .portal-schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .portal-schedule-time {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
    }

    .portal-schedule-meta {
        flex-direction: column;
        gap: 4px;
    }

    .portal-stat-card {
        padding: 16px;
    }

    .portal-quick-link {
        padding: 16px;
    }
}

/* ===================================
   Portal Timetable Styles
   =================================== */

/* Timetable Container */
.portal-timetable-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: opacity 0.2s ease;
}

/* Loading state for AJAX navigation */
.portal-timetable-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.portal-timetable-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(25, 46, 89, 0.2);
    border-top-color: var(--portal-navy);
    border-radius: 50%;
    animation: timetable-spin 0.8s linear infinite;
}

@keyframes timetable-spin {
    to { transform: rotate(360deg); }
}

/* Timetable Header Bar - Navy gradient like old version */
.portal-timetable-header-bar {
    background: linear-gradient(135deg, var(--portal-navy) 0%, #0f1d3a 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.portal-timetable-header-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-timetable-header-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.portal-timetable-header-title h3 i {
    color: var(--portal-gold);
}

.portal-timetable-term-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Week Navigation in Header Bar */
.portal-timetable-week-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-timetable-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.portal-timetable-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.portal-timetable-nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.portal-timetable-week-display {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    min-width: 160px;
    text-align: center;
}

.portal-timetable-btn-today {
    background: var(--portal-gold);
    border: 2px solid var(--portal-gold);
    color: var(--portal-navy);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.portal-timetable-btn-today:hover {
    background: var(--portal-gold-light);
    border-color: var(--portal-gold-light);
    color: var(--portal-navy);
}

/* Old header styles - keep for backwards compatibility */
.portal-timetable-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.portal-timetable-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-timetable-title .portal-page-title {
    margin-bottom: 0;
}

.portal-term-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(25, 46, 89, 0.1);
    color: var(--portal-navy);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.portal-week-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-nav-btn {
    background: var(--portal-navy);
    border: 2px solid var(--portal-navy);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.portal-nav-btn:hover {
    background: var(--portal-navy-light);
    border-color: var(--portal-navy-light);
    color: white;
}

.portal-nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.portal-week-display {
    background: #f5f7fa;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--portal-navy);
    min-width: 160px;
    text-align: center;
}

.portal-btn-today {
    background: var(--portal-gold);
    border: 2px solid var(--portal-gold);
    color: var(--portal-navy);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.portal-btn-today:hover {
    background: var(--portal-gold-light);
    border-color: var(--portal-gold-light);
    color: var(--portal-navy);
}

/* Timetable Table */
.portal-timetable-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Table inside container doesn't need extra styling */
.portal-timetable-container .table-responsive {
    background: white;
}

.portal-timetable-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 700px;
}

.portal-timetable-table th,
.portal-timetable-table td {
    padding: 10px 8px;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
    font-size: 14px;
}

.portal-timetable-table th {
    background: #f8f9fb;
    font-weight: 700;
    text-align: center;
}

.portal-timetable-table th.period-header {
    width: 90px;
    background: #f8f9fb;
}

/* Day Headers */
.portal-timetable-table .day-header {
    background: linear-gradient(180deg, #f1f3f6 0%, #e9ebef 100%);
    padding: 12px 8px;
}

.portal-timetable-table .day-header .day-name {
    font-weight: 700;
    color: var(--portal-navy);
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.portal-timetable-table .day-header .day-date {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    display: block;
}

.portal-timetable-table .day-header .day-num {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    display: block;
}

/* Today header */
.portal-timetable-table .day-header.is-today {
    background: linear-gradient(180deg, var(--portal-gold) 0%, var(--portal-gold-light) 100%);
}

.portal-timetable-table .day-header.is-today .day-name,
.portal-timetable-table .day-header.is-today .day-date,
.portal-timetable-table .day-header.is-today .day-num {
    color: var(--portal-navy);
}

.today-chip {
    display: inline-block;
    background: var(--portal-navy);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 6px;
    vertical-align: middle;
}

/* Past header */
.portal-timetable-table .day-header.is-past {
    background: #e5e7eb;
}

.portal-timetable-table .day-header.is-past .day-name,
.portal-timetable-table .day-header.is-past .day-date,
.portal-timetable-table .day-header.is-past .day-num {
    color: #888;
}

/* Closed header */
.portal-timetable-table .day-header.is-closed {
    background: var(--portal-maroon);
}

.portal-timetable-table .day-header.is-closed .day-name,
.portal-timetable-table .day-header.is-closed .day-date,
.portal-timetable-table .day-header.is-closed .day-num {
    color: white;
}

/* Period Column */
.portal-timetable-table .period-cell {
    background: #f8f9fb;
    text-align: center;
    font-weight: 600;
}

.portal-timetable-table .period-name {
    font-weight: 700;
    color: var(--portal-navy);
    font-size: 15px;
    display: block;
}

.portal-timetable-table .period-time {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    display: block;
}

/* Data Cells */
.portal-timetable-table td {
    min-height: 65px;
    height: 65px;
}

.portal-timetable-table td.is-today {
    background: rgba(197, 145, 44, 0.12);
}

.portal-timetable-table td.is-past {
    background: #f9fafb;
}

.portal-timetable-table td.is-past .class-name,
.portal-timetable-table td.is-past .class-room,
.portal-timetable-table td.is-past .class-teacher {
    opacity: 0.65;
}

.portal-timetable-table td.is-closed {
    background: #fef2f2;
}

/* Class Content */
.portal-timetable-table .class-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portal-timetable-table .class-name {
    font-weight: 700;
    color: var(--portal-navy);
    font-size: 14px;
}

.portal-timetable-table .class-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.portal-timetable-table .class-room {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--portal-maroon);
    font-size: 12px;
    font-weight: 600;
}

.portal-timetable-table .class-room i {
    font-size: 11px;
}

.portal-timetable-table .class-teacher {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.portal-timetable-table .class-teacher i {
    font-size: 11px;
}

.portal-timetable-table .empty-slot {
    color: #ccc;
    font-size: 16px;
    text-align: center;
    display: block;
}

/* Holiday Banner */
.portal-holiday-banner {
    background: white;
    color: var(--portal-navy);
    padding: 4rem 2rem;
    text-align: center;
}

.portal-holiday-banner i.fa-umbrella-beach {
    font-size: 4rem;
    color: var(--portal-maroon);
    margin-bottom: 1.5rem;
    display: block;
}

.portal-holiday-banner h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--portal-navy);
}

.portal-holiday-banner p {
    font-size: 1.05rem;
    color: var(--portal-text-secondary);
    margin: 0 0 2rem 0;
}

.portal-holiday-banner .portal-timetable-btn-today {
    display: inline-flex;
}

/* Responsive Timetable */
@media (max-width: 767px) {
    .portal-timetable-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-week-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .portal-timetable-header-bar {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .portal-timetable-header-title {
        align-items: center;
    }

    .portal-timetable-week-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .portal-timetable-table {
        min-width: 600px;
    }
}

/* ===================================
   Portal Results Styles
   =================================== */

.portal-results-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.portal-results-group {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.portal-results-header {
    background: linear-gradient(135deg, var(--portal-navy) 0%, var(--portal-navy-light) 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-results-subject {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.portal-results-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.portal-results-list {
    padding: 0;
}

.portal-result-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
    flex-wrap: wrap;
}

.portal-result-item:last-child {
    border-bottom: none;
}

.portal-result-main {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.portal-result-code {
    flex-shrink: 0;
    min-width: 80px;
}

.portal-result-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--portal-navy);
}

.portal-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portal-result-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.portal-result-desc {
    font-size: 13px;
    color: #666;
}

.portal-result-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.portal-result-credits,
.portal-result-level {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.portal-result-credits i,
.portal-result-level i {
    color: var(--portal-gold);
}

.portal-result-grade {
    min-width: 120px;
    text-align: right;
}

.portal-grade-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.portal-grade-badge.grade-excellence {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
}

.portal-grade-badge.grade-merit {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
}

.portal-grade-badge.grade-achieved {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.portal-grade-badge.grade-notachieved {
    background: #f1f5f9;
    color: #64748b;
}

.portal-grade-badge.grade-pending {
    background: #fef3c7;
    color: #92400e;
}

.portal-grade-badge.grade-mark {
    background: linear-gradient(135deg, #192E59 0%, #1e3a6e 100%);
    color: white;
}

.portal-grade-badge.grade-na {
    background: #f1f5f9;
    color: #94a3b8;
    font-style: italic;
}

.portal-grade-badge.grade-notsubmitted {
    background: #fff1f2;
    color: #be123c;
}

/* Responsive Results */
@media (max-width: 767px) {
    .portal-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .portal-result-main {
        flex-direction: column;
        gap: 8px;
    }

    .portal-result-code {
        flex-direction: row;
        gap: 8px;
    }

    .portal-result-grade {
        text-align: left;
        min-width: auto;
    }

    .portal-results-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ===================================
   Portal Office 365 Styles
   =================================== */

.portal-page-intro {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.portal-o365-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
}

.portal-o365-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.portal-o365-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.portal-o365-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portal-o365-title {
    font-weight: 600;
    color: var(--portal-navy);
    font-size: 16px;
}

.portal-o365-desc {
    font-size: 13px;
    color: #666;
}

.portal-o365-arrow {
    color: #999;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.portal-o365-card:hover .portal-o365-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Office 365 */
@media (max-width: 575px) {
    .portal-o365-card {
        padding: 16px;
    }

    .portal-o365-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* ===================================================================
   About Area — Horizontal Feature Grid
   =================================================================== */

@media (min-width: 992px) {
    .tp-about-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        margin-left: 0;
    }

    .tp-about-list .tp-about-list-item {
        margin-bottom: 0;
    }

    .tp-about-list .tp-about-list-icon {
        margin-right: 14px;
    }

    .tp-about-list .tp-about-list-title {
        font-size: 16px;
    }

    .tp-about-list .tp-about-list-content p {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tp-about-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .tp-about-list .tp-about-list-item {
        margin-bottom: 0;
    }
}

/* ===================================================================
   Open Day Booking Form
   =================================================================== */

.tp-open-day-form-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.tp-open-day-form .form-label {
    color: #192E59;
    margin-bottom: 6px;
    font-size: 14px;
}

.tp-open-day-form .nice-select {
    width: 100%;
    float: none;
    height: 56px;
    line-height: 54px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #E6E8F0;
    background: var(--tp-common-white);
    box-shadow: 0px 1px 4px 0px rgba(48, 54, 81, 0.06) inset, 0px 1px 1px 0px rgba(48, 54, 81, 0.06);
    color: #303651;
    padding-left: 14px;
    padding-right: 40px;
}

.tp-open-day-form .nice-select:focus,
.tp-open-day-form .nice-select:active,
.tp-open-day-form .nice-select.open {
    outline: 3px solid #C5912C;
    outline-offset: 0;
    border-color: #192E59;
    box-shadow: 0 0 0 3px rgba(197, 145, 44, 0.25);
}

.tp-open-day-form .nice-select .current {
    display: block;
    line-height: 44px;
}

.tp-open-day-form .nice-select::after {
    color: #686A6D;
    right: 18px;
}

.tp-open-day-form .nice-select .list {
    width: 100%;
    box-shadow: none;
    padding: 10px 12px;
    filter: drop-shadow(0px 4px 14px rgba(8, 19, 34, 0.12));
    border: 1px solid #E6E8F0;
    border-radius: 6px;
    margin-top: 4px;
}

.tp-open-day-form .nice-select .option {
    color: #303651;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    min-height: 0;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 2px;
}

.tp-open-day-form .nice-select .option:hover {
    color: #192E59;
    background-color: #F4F5FA;
}

.tp-open-day-form .nice-select .option.selected {
    color: #192E59;
    font-weight: 600;
}

.tp-open-day-form .form-check {
    margin-bottom: 6px;
}

.tp-open-day-form .form-check-input:checked {
    background-color: #192E59;
    border-color: #192E59;
}

.tp-open-day-note {
    color: #6E0A24;
    font-style: italic;
    font-size: 14px;
    border-left: 3px solid #6E0A24;
    padding-left: 12px;
}

.tp-open-day-note p {
    margin-bottom: 0;
}

.tp-open-day-form-btn {
    margin-top: 10px;
}

.tp-open-day-form-btn .tp-btn-inner {
    width: auto;
    padding: 12px 40px;
}

@media (max-width: 767px) {
    .tp-open-day-form-wrapper {
        padding: 24px 20px;
    }
}

/* ===================================================================
   Footer — College / Primary sub-labels
   Makes "College:" and "Primary School:" labels slightly smaller and
   more subtle than the main "For further questions please call:" span.
   =================================================================== */
.tp-footer-contact-label {
    font-size: 12px !important;
    opacity: 0.8;
    margin-top: 4px;
    margin-bottom: 1px !important;
}

/* ===================================================================
   Inline link underlines
   main.css resets ALL links to text-decoration: none (a global
   template pattern for nav/button/card links). This restores
   underlines for inline links inside body text and section headers,
   where underlines are a key accessibility and usability indicator.
   =================================================================== */
.tp-section-title a,
.tp-section p a,
.tp-richtext-content a,
.tp-richcontent-wrap a,
.accordion-body a {
    text-decoration: underline;
}

/* ===================================================================
   About Area — mobile badge fix
   On <992px the absolute-positioned experience badge overlaps the
   thumb images. Let it flow inline beneath them instead.
   =================================================================== */
@media (max-width: 991px) {
    .tp-about-exprience {
        position: static;
        display: block;
        margin: 24px auto 0;
        right: auto;
        bottom: auto;
    }
    .tp-about-exprience-text {
        justify-content: center;
    }
}

/* Tighten the image overlap on narrow widths so the gold shape
   and dot pattern don't extend off-canvas. */
@media (max-width: 767px) {
    .tp-about-thumb-2 {
        margin-left: -40px;
        margin-top: 40px;
    }
    .tp-about-exprience-count {
        font-size: 64px; /* 90px is too large at mobile scale */
    }
}
