@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
:root {
    --slii-dark-blue: #00238c;
    --slii-sky-blue: #0080ff;
    --highlight-coral: #ff8820;
    --bg-cream: #fcf9f4;
    --text-dark: #1a1a1a;
    --text-gray: #64748b;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Times New Roman';
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Entrance Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 1s ease forwards; }

/* --- Header --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}

.logo a { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.company-logo { height: 65px; width: auto; transition: 0.3s ease; }
.logo a:hover .company-logo { transform: scale(1.05); }

.company-name { font-size: 1.3rem; font-weight: 700; color: var(--text-dark); max-width: 220px; }

.nav-links { display: flex; gap: 25px; }
.nav-links a {
    text-decoration: none; color: var(--slii-dark-blue);
    font-weight: 600; font-size: 0.85rem; padding: 5px 0;
    position: relative; transition: 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--slii-sky-blue); }

.membership-btn {
    background: linear-gradient(135deg, var(--slii-dark-blue), var(--slii-sky-blue));
    color: white; padding: 10px 28px; border-radius: 6px;
    text-decoration: none; font-weight: 700; font-size: 0.9rem;
    transition: transform 0.3s;
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 128, 255, 0.3); }

/* --- Hero Slider Main Container --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    font-family: 'Poppins', sans-serif;
}

/* --- Individual Background Slides --- */
.slider-item {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    
    /* මුලින්ම හංගලා තියෙන්නේ */
    opacity: 0;
    visibility: hidden; 
    z-index: 1; 
    
    /* Animation එක smooth වෙන්න */
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

/* --- Active Slide (මේක තමයි click කරාම වැඩ කරන්නේ) --- */
.slider-item.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 5 !important; /* අනිත් slides වලට වඩා උඩින් පේන්න */
}



/* Slide එකේ තියෙන Text සහ Button */
.slider-content {
    position: relative;
    z-index: 10; /* හැමදේටම වඩා උඩින් */
    color: #ffffff;
}

.slider-item.active .slider-content {
    transform: translateY(0);
    opacity: 1;
}

/* --- Thumbnail Container --- */
.thumbnail-container {
    position: absolute;
    bottom: 160px;
    right: 50px;
    display: flex;
    gap: 20px;
    z-index: 100; /* හැමදේටම වඩා උඩින් තියෙන්න ඕනේ click එක වැඩ කරන්න */
}



.slider-btn {
    position: relative;
    display: inline-block;
    padding: 12px 35px; 
    /* Gradient එකක් භාවිතා කිරීමෙන් වඩාත් Premium පෙනුමක් ලැබේ */
    background: linear-gradient(45deg, #c36201, #ff8000); 
    color: #fff;
    font-size: 14px; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 50px; /* රවුම් හැඩය (Pill shape) වඩාත් ආකර්ෂණීයයි */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    /* මෘදු shadow එකක් */
    box-shadow: 0 5px 15px rgba(195, 98, 1, 0.4); 
    cursor: pointer;
}

/* Hover කරද්දී සිදුවන වෙනස්කම් */
.slider-btn:hover {
    background: linear-gradient(45deg, #0040ff, #001a6b); /* SLII නිල් පාටට මාරු වීම */
    transform: translateY(-3px); /* පොඩ්ඩක් උඩට එසවීම */
    box-shadow: 0 8px 25px rgba(0, 64, 255, 0.3);
    color: #ffffff;
}

/* බටන් එක ක්ලික් කරද්දී ලැබෙන effect එක */
.slider-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 64, 255, 0.2);
}

/* බටන් එක ඇතුළේ ලාවට යන සුදු පාට shine effect එකක් */
.slider-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.slider-btn:hover::after {
    left: 100%;
}

/* Hover කරද්දී */
.slider-btn:hover {
    background: #00238c;
    color: #fff;
    box-shadow: 4px 4px 0px #ff8000;
    transform: translate(-2px, -2px);
}

/* අර යටින් යන සුදු ඉර (Optional - ඕනේ නැත්නම් මේ කෑල්ල අයින් කරන්න) */
.slider-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.slider-btn:hover::before {
    width: 100%;
}


/* ==========================================
   WELCOME SECTION WITH LOADING & TEXT EFFECTS
   ========================================== */

.welcome-modern {
    padding: 100px 0;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.modern-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Left Side: Animated Text --- */
.modern-left {
    flex: 1;
}

/* 1. Typing Effect (Auto-changing text) */
.small-title {
    font-size: 14px;
    letter-spacing: 3px;
    color: #ff8000;
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
}

.small-title::after {
    content: "";
    animation: typingEffect 6s infinite;
    border-right: 2px solid #ff8000;
    padding-right: 5px;
    margin-left: 5px;
}

@keyframes typingEffect {
    0%, 10% { content: "WELCOME TO SLII |"; }
    35%, 45% { content: "SINCE 1981 |"; }
    70%, 80% { content: "SHAPING THE FUTURE |"; }
}

/* 2. Reveal Animation for Title */
.modern-title {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    color: #00238c;
    font-weight: 800;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 1s ease-out forwards;
}

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

/* 3. Shiny Gradient for 'Excellence' */
.gradient-text {
    background: linear-gradient(to right, #00238c 20%, #ff8000 50%, #00238c 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* --- ✨ THE LOADING DIVIDER (අලුත් එක) --- */
.modern-divider {
    width: 200px; /* පොඩ්ඩක් දිග කළා */
    height: 4px;
    background: rgba(0, 35, 140, 0.1); /* යටින් තියෙන පාර (Track) */
    margin: 25px 0;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.modern-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* Gradient එකක් වමේ ඉඳන් දකුණට යනවා */
    background: linear-gradient(90deg, transparent, #e1b804, #212e63, transparent);
    animation: progressLoading 2s infinite linear;
}

@keyframes progressLoading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- Right Side: Image & Card Layout --- */
.modern-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-wrap-all {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}

.image-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.main-feat-img {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}

/* Floating Card Placement */
.glass-info-card {
    position: absolute;
    right: -20px;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 20px;
    width: 250px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
}

/* Orbit Animations */
.image-container::before, .image-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.image-container::before {
    width: 280px; height: 280px;
    border-top-color: #ff8000; border-bottom-color: #ff8000;
    animation: orbitRotate 10s linear infinite;
}

.image-container::after {
    width: 340px; height: 340px;
    border-left-color: #00238c; border-right-color: #00238c;
    animation: orbitRotateCounter 15s linear infinite;
}

@keyframes orbitRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbitRotateCounter { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

.text-description {
    width: 100%;
    color: #555;
    line-height: 1.7;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .modern-flex { flex-direction: column; text-align: center; }
    .image-wrap-all { flex-direction: column; }
    .glass-info-card { position: relative; right: 0; margin-top: 20px; }
}

/* --- Premium Modern Button --- */
.modern-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    background: transparent;
    color: #00238c;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #00238c;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

/* Button එක ඇතුළෙන් පිරෙන පාට (Hover Effect) */
.modern-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #00238c;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

/* Arrow Icon එක */
.modern-link span {
    display: inline-block;
    transition: transform 0.4s ease;
    font-size: 18px;
}

/* Hover කරද්දී වෙන වෙනස්කම් */
.modern-link:hover {
    color: #ffffff;
    border-color: #00238c;
    box-shadow: 0 10px 20px rgba(0, 35, 140, 0.2);
    transform: translateY(-3px);
}

.modern-link:hover::before {
    width: 100%;
}

.modern-link:hover span {
    transform: translateX(5px); /* ඊතලය දකුණට පනිනවා */
}

/* Click කරද්දී පොඩි ගැස්සීමක් */
.modern-link:active {
    transform: translateY(-1px);
}






/* --- Enhanced Video Section --- */
.video-showcase-area {
    padding: 100px 0;
    background-color: #fcfdfe;
    position: relative;
    overflow: hidden;
}

/* Background decorative element */
.video-bg-accent {
    position: absolute;
    top: 50%;
    left: 0;
    width: 300px;
    height: 300px;
    background: rgba(0, 35, 140, 0.02);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.video-glass-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0, 35, 140, 0.08);
    border: 1px solid rgba(0, 35, 140, 0.03);
    position: relative;
    z-index: 5;
}

.video-row {
    display: flex;
    align-items: center;
    gap: 70px;
}

.video-holder {
    flex: 1.2;
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 25px;
    overflow: hidden;
    background: #000; /* Placeholder color before video loads */
}
#featured-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Details Styling */
.video-details {
    flex: 1;
}

.yt-badge-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.badge-yt {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-duration {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.video-details h2 {
    font-size: 2.8rem;
    color: #00238c;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.video-details h2 span {
    color: #38bdf8;
}

.video-details p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.learning-points {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.point {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.point i {
    color: #38bdf8;
}

/* Action Buttons */
.action-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-subscribe {
    background: #ff0000;
    color: #fff;
    padding: 16px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

.btn-subscribe:hover {
    transform: translateY(-5px);
    background: #cc0000;
}

.btn-outline-watch {
    color: #00238c;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 4px;
    transition: 0.3s;
}

.btn-outline-watch:hover {
    color: #38bdf8;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .video-glass-card { padding: 30px; }
    .video-row { flex-direction: column; text-align: center; }
    .learning-points { justify-content: center; }
    .action-row { flex-direction: column; }
}


/* --- Events Wrapper & Container --- */
.events-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.events-container {
    position: relative;
    width: 350px; /* මැද කාඩ් එකේ පළල */
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Event Card Style --- */
.event-card {
    position: absolute;
    width: 320px;
    height: 100%;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* මැද කාඩ් එක (Active) */
.event-card.active {
    opacity: 1;
    transform: translateX(0) scale(1.1);
    z-index: 10;
    pointer-events: auto;
}

/* වම් පැත්තේ පෙනෙන කාඩ් එක (Prev) */
.event-card.prev {
    opacity: 0.8;
    transform: translateX(-280px) scale(0.85);
    z-index: 5;
    filter: brightness(0.8);
}

/* දකුණු පැත්තේ පෙනෙන කාඩ් එක (Next) */
.event-card.next {
    opacity: 0.8;
    transform: translateX(280px) scale(0.85);
    z-index: 5;
    filter: brightness(0.8);
}

/* --- Navigation Buttons --- */
.event-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #00238c; /* SLII Dark Blue */
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    z-index: 100;
    cursor: pointer;
}
.left { left: 5%; }
.right { right: 5%; }

/* --- Events මාතෘකාව සහ අන්තර්ගතය මැදට ගැනීම --- */
.event-body {
    padding: 20px;
    text-align: center; /* සියලුම අකුරු මැදට කරයි */
    display: flex;
    flex-direction: column;
    align-items: center; /* Flex items මැදට කරයි */
}

.event-body h3 {
    margin: 10px 0;
    color: #00238c; /* SLII Dark Blue */
    font-size: 1.15rem;
    line-height: 1.4;
    width: 100%; /* මාතෘකාවට සම්පූර්ණ ඉඩ ලබා දීම */
}

/* ස්ථානය පෙන්වන කොටස මැදට කර ලස්සන කිරීම */
.event-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- View Event Details බොත්තම මැදට ගැනීම --- */
.view-details-btn {
    display: inline-block;
    margin-top: 15px;
    color: #0080ff; /* SLII Sky Blue */
    text-decoration: none;
    font-weight: bold;
    border: 1.5px solid #0080ff; /* බොත්තමක් ලෙස පෙනීමට border එකක් */
    padding: 7px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-details-btn:hover {
    background: #0080ff;
    color: #fff !important;
}

/* Event Date Tag එක මැදට ගැනීම */
.event-date-tag {
    display: inline-block;
    background: #f0f4f8;
    color: #0080ff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* ==========================================================================
   📅 SLII PREMIUM ACADEMIC & CPD CALENDAR WORKSPACE (NEXT-GEN CORPO)
   ========================================================================== */

.cpd-full-section {
    padding: 120px 0;
    background: #fdfdfd; /* ඉතාම පිරිසිදු, ඇසට පහසු Off-White පසුබිම */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cpd-full-section .about-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 🎯 Section Header --- */
.cpd-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.cpd-section-header .cpd-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff9100; /* Professional Accent Orange */
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 14px;
}

.cpd-section-header h2 {
    font-size: 2.6rem;
    color: #001a6b; /* SLII Signature Deep Blue */
    font-family: 'Lora', Georgia, serif;
    margin: 0 0 12px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cpd-section-header p {
    color: #64748b; /* Clean Slate Grey */
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* --- 📊 Main Workspace Split Layout --- */
.cpd-workspace-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: start;
}

/* --- 📅 Left Side: Calendar Container --- */
.calendar-side-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 50px rgba(0, 26, 107, 0.04); /* Soft corporate shadow */
    transition: transform 0.3s ease;
}

/* --- 📋 Right Side: Dynamic Details Panel --- */
.events-list-side {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(0, 26, 107, 0.03);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Subtle top border accent to give a premium portal look */
.events-list-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #001a6b, #ff9100);
}

/* Panel Internal States */
.panel-state-wrapper {
    animation: cpdPanelFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes cpdPanelFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-section-title {
    font-size: 1.35rem;
    color: #001a6b;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.panel-helper-text {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* --- 🚀 PHP Loop Output Elegant Event Strips --- */
.quick-events-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.quick-event-strip {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.quick-event-strip:hover {
    background: #ffffff;
    border-color: #ff9100;
    transform: translateX(6px);
    box-shadow: 0 12px 30px rgba(255, 145, 0, 0.08);
}

.strip-date-badge {
    background: #001a6b;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-right: 20px;
    box-shadow: 0 4px 12px rgba(0, 26, 107, 0.15);
}

.strip-title {
    font-size: 0.98rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
}

/* --- 🔸 ACTIVE EVENT STATE DESIGN --- */
.active-badge-meta {
    color: #ff9100;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

#panel-title {
    color: #001a6b;
    margin: 0 0 28px 0;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* Corporate Info Block Grid */
.info-details-card {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 30px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-row:first-child {
    padding-top: 0;
}

.detail-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.detail-label i {
    color: #001a6b;
    margin-right: 10px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.detail-value {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 700;
}

/* Description Typography */
.description-block {
    margin-bottom: 35px;
}

.description-block .detail-label {
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #94a3b8;
}

#panel-desc {
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.65;
    margin: 0;
}

/* Premium Back Action Button */
.btn-panel-back {
    width: 100%;
    margin-top: auto; /* Aligns button to the bottom perfectly */
    background: #001a6b;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 26, 107, 0.12);
}

.btn-panel-back i {
    transition: transform 0.2s ease;
}

.btn-panel-back:hover {
    background: #ff9100;
    box-shadow: 0 12px 30px rgba(255, 145, 0, 0.2);
}

.btn-panel-back:hover i {
    transform: translateX(-3px); /* Interactive back arrow micro-move */
}

/* ==========================================================================
   📱 MOBILE RESPONSIVE OPTIMIZATION
   ========================================================================== */
@media (max-width: 1024px) {
    .cpd-workspace-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cpd-section-header h2 {
        font-size: 2.1rem;
    }
    
    .events-list-side {
        min-height: auto;
    }
}

/* ============================================================
   CONNECT NOW SECTION (MODDED STYLE)
   ============================================================ */

/* --- Optimized Connect Now Section --- */
.connect-now-section {
    padding: 100px 0;
    /* Aligned with other sections but slightly different light theme */
    background-color: #f0f9ff; /* Very Light Blue background */
    background-image: radial-gradient(circle at top right, #e0f2fe 0%, transparent 70%);
    position: relative;
    overflow: hidden;
    color: #1e293b; /* Dark Gray text */
}

/* Background design circles (Subtle Blue) */
.connect-overlay-circles {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.15); /* More visible on light bg */
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.connect-header {
    text-align: center;
    margin-bottom: 60px;
}

.sub-badge {
    background: rgba(0, 35, 140, 0.08); /* SLII Dark Blue based */
    color: #00238c;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.connect-header h2 {
    font-size: 2.8rem;
    margin-top: 18px;
    font-family: 'Lora', serif;
    color: #00238c; /* Main SLII Blue */
    font-weight: 700;
}

.connect-header p {
    color: #475569;
    max-width: 600px;
    margin: 12px auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grid & Modern Cards */
.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.connect-card {
    background: #ffffff; /* Clean white card */
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 35, 140, 0.04); /* Subtle Shadow */
}

/* Interactive Hover effect */
.connect-card:hover {
    transform: translateY(-12px);
    border-color: #38bdf8; /* Highlight Sky Blue */
    box-shadow: 0 25px 50px rgba(0, 35, 140, 0.1);
}

/* Card Glow (for WhatsApp special) */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.connect-card:hover .card-glow {
    opacity: 1;
}

.connect-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 35, 140, 0.05); /* SLII Blue background */
    color: #00238c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 35, 140, 0.03);
}

.connect-card:hover .connect-icon {
    background: #00238c;
    color: #fff;
    transform: rotateY(360deg); /* Icon rotation animation */
}

.connect-info span {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.connect-info a {
    color: #1e293b;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

.connect-info a:hover {
    color: #38bdf8;
}

/* WhatsApp Specific Styling */
.whatsapp-theme .connect-icon {
    background: rgba(37, 211, 102, 0.08);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.1);
}

.whatsapp-theme:hover {
    border-color: #25d366;
}

.whatsapp-theme:hover .connect-icon {
    background: #25d366;
    color: #fff;
}

.whatsapp-theme:hover .card-glow {
    background: radial-gradient(circle, rgba(37, 211, 102, 0.05) 0%, transparent 70%);
}

/* Mobile responsive adjustments */
@media (max-width: 992px) {
    .connect-header h2 { font-size: 2.3rem; }
    .connect-info a { font-size: 1.4rem; }
}

@media (max-width: 768px) {
    .connect-now-section { padding: 80px 0; }
    .connect-header h2 { font-size: 1.9rem; }
    .connect-grid { grid-template-columns: 1fr; gap: 25px; }
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}

.logo a { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.company-logo { height: 65px; width: auto; }
.company-name { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); max-width: 220px; line-height: 1.2; }

.nav-links a {
    text-decoration: none; color: var(--slii-dark-blue);
    font-weight: 600; font-size: 0.85rem; margin: 0 10px;
    transition: 0.3s;
}
.nav-links a.active, .nav-links a:hover { color: var(--slii-sky-blue); }

.login-btn {
    background: linear-gradient(135deg, var(--slii-dark-blue), var(--slii-sky-blue));
    color: white; padding: 10px 25px; border-radius: 6px; text-decoration: none; font-weight: 700;
}

/* ============================================================
   SRI LANKA INSURANCE INSTITUTE - ABOUT PAGE STYLES (FULL)
   ============================================================ */

:root {
    --slii-dark-blue: #00238c;
    --slii-sky-blue: #0080ff;
    --highlight-coral: #ff8000;
    --text-gray: #475569;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #edf2f7;
}

/* --- Global Reset for About --- */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   SLIM & COMPACT ANIMATED HERO
   ============================================================ */

/* --- 1. Main Section Container (3D Grid Effect) --- */
.slim-hero-animated {
    position: relative;
    width: 100%;
    padding: 120px 0; /* 3D එක ලස්සනට පේන්න උස පොඩ්ඩක් වැඩි කළා */
    background-color: #ffffff; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* 3D කැමරා පර්ස්පෙක්ටිව් එක සෙට් කිරීම (අගය අඩු වෙද්දී 3D ගතිය වැඩි වේ) */
    perspective: 800px;
}

/* --- 3D Wave Grid Effect (පැත්තක සිට පිළිවෙළට ඉස්සී යන සහ යටින් පාට පෙනෙන කේතය) --- */
.slim-hero-animated::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -50%;
    width: 200%;
    height: 220%;
    
    /* 1. ප්‍රධාන කොටු දැල (Grid එක) */
    /* මෙතනදී අපි කොටු දැල සිහින්ව හදලා, ඒකට යටින් තැඹිලි (Orange) සහ නිල් පාට ගලාගෙන යන ලස්සන glow එකක් දෙනවා */
    background: 
        /* කොටු දැල (Grid Lines) */
        linear-gradient(rgba(33, 46, 99, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(33, 46, 99, 0.05) 2px, transparent 2px),
        
        /* කොටු අතර මැදින් මතු වී පෙනෙන SLII Orange & Light Blue Glow එක */
        linear-gradient(90deg, rgba(33, 46, 99, 0) 0%, rgba(255, 128, 0, 0.25) 45%, rgba(0, 64, 255, 0.25) 55%, rgba(33, 46, 99, 0) 100%);
        
    background-size: 50px 50px, 50px 50px, 400% 100%; /* Glow එකේ සයිස් එක විශාල කළා */
    background-position: center, center, 0% 0%;
    background-repeat: repeat, repeat, no-repeat;

    /* 3D Rotate සහ Perspective */
    /* X-axis එක වටා අංශක 60ක් නමා, Z-axis එකෙන් ලාවට කරකවා පැත්තක සිට එන පෙනුම (Isometric Wave) ලබා දීම */
    transform: rotateX(60deg) rotateZ(-10deg);
    transform-origin: center top;
    
    z-index: 1;
    
    /* වමේ සිට දකුණට පිළිවෙළට ඉස්සිලා යන 3D Wave Animation එක ක්‍රියාත්මක කිරීම */
    animation: gridWave 4s infinite linear;
    
    /* වටේට ලස්සනට fade out වෙන්න */
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* --- වමේ සිට දකුණට කොටු පිළිවෙළට පත්තුවෙමින් ඉස්සී යන Animation එක --- */
@keyframes gridWave {
    0% {
        /* background position මාරු කරමින් glow එක සහ 3D ගැඹුර වමේ සිට දකුණට ගෙනයාම */
        background-position: center, center, 100% 0%;
        transform: rotateX(58deg) rotateZ(-10deg) translateY(0px);
    }
    50% {
        /* මැද හරියට එද්දී කොටු ලාවට උඩට ඉස්සෙන ගතිය (Wave effect) වැඩි කිරීම */
        transform: rotateX(62deg) rotateZ(-10deg) translateY(-10px);
    }
    100% {
        background-position: center, center, -100% 0%;
        transform: rotateX(58deg) rotateZ(-10deg) translateY(0px);
    }
}

/* --- 2. Geometric Animated Lines (සුදු පසුබිමට ගැළපෙන සේ වෙනස් කළා) --- */
.bg-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    z-index: 1;
}

.bg-lines span {
    width: 1px;
    height: 100%;
    /* නිල් පාට සිහින් ඉරි */
    background: linear-gradient(to bottom, rgba(33, 46, 99, 0) 0%, rgba(33, 46, 99, 0.06) 50%, rgba(33, 46, 99, 0) 100%);
    position: relative;
}

/* ඉරි දිගේ ලාවට ගලාගෙන යන SLII නිල් පාට Laser Effect එක */
.bg-lines span::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(33, 46, 99, 0.3), transparent); 
    animation: dropLine 6s infinite linear;
}

.bg-lines .line-2::after { animation-delay: 2s; }
.bg-lines .line-3::after { animation-delay: 4s; }

@keyframes dropLine {
    0% { top: -20%; }
    100% { top: 120%; }
}

/* --- 3. Content Layout --- */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* --- 4. Typography (සුදු පසුබිමට ගැළපෙන තද වර්ණ) --- */
.reveal-text {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #212e63; /* පසුබිම සුදු නිසා ප්‍රධාන අකුරු SLII තද නිල් පාට කළා */
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

/* SLII Premium Blue Glow (සුදු පසුබිමේ කැපී පෙනෙන ලෙස) */
.blue-glow {
    color: #0040ff; /* වඩාත් තද නිල් පාටක් */
    text-shadow: 0 4px 12px rgba(0, 64, 255, 0.15);
    font-weight: 900;
}

/* --- 5. Interactive Hero Divider (Centered with Loading Effect) --- */
.hero-divider {
    width: 120px;
    height: 4px;
    background: rgba(33, 46, 99, 0.1); /* පසුබිම් සිහින් ඉර */
    border-radius: 10px;
    
    /* මචං මෙතන 0 කියන්නේ top, 
       auto කියන්නේ left සහ right (මේකෙන් තමයි මැදට ගන්නේ), 
       25px කියන්නේ bottom margin එක 
    */
    margin: 0 auto 25px auto; 
    
    position: relative;
    overflow: hidden;
}

/* Divider එක ඇතුළේ වමේ සිට දකුණට දිව යන loading bar එක (කලින් කෝඩ් එකමයි) */
.hero-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ff8000, transparent);
    animation: dividerLoading 2s infinite linear;
}

/* Loading එක දෙපැත්තට move වෙන හැටි */
@keyframes dividerLoading {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

@keyframes expandDivider {
    0% { width: 0; opacity: 0; }
    100% { width: 80px; opacity: 1; }
}

/* --- 6. Sub-text Animation --- */
.fade-in-slow {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #475569; /* කියවන්න ලේසි තද Slate/Grey පාටක් */
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 1.2s ease 0.5s forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .slim-hero-animated { padding: 30px 0; }
    .slim-content h1 { font-size: 1.8rem; }
    .slim-content p { font-size: 0.8rem; }
}

/* --- Main Content Section --- */
.about-section-main { padding: 100px 0; background: var(--white); }
.about-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 80px; 
    align-items: center; 
}

.sub-label { 
    color: var(--slii-sky-blue); 
    font-weight: 700; 
    letter-spacing: 3px; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    display: block;
}

.about-text-content h2 { 
    font-family: 'Lora', serif; 
    font-size: 3rem; 
    color: var(--slii-dark-blue); 
    margin: 15px 0; 
    line-height: 1.1; 
}

.about-text-content p { 
    font-size: 1.05rem; 
    color: var(--text-gray); 
    line-height: 1.7; 
    margin-bottom: 20px; 
    text-align: justify;
}

/* --- About Image Container Update --- */
.about-image-box { 
    position: relative; 
    padding-right: 20px; 
    padding-bottom: 20px; 
}

/* Images එක උඩ එක තැබීමට, උස/පළල පාලනයට සහ වම් පැත්ත Fade කිරීමට */
.about-image-shuffle {
    position: relative;
    width: 100%;
    height: 600px; /* ඔයා සෙට් කරපු උස */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

/* --- [NEW] වම් පැත්ත (Fonts තියෙන පැත්ත) සුදු පාටට Fade කරන කොටස --- */
.about-image-shuffle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%; /* රූපයේ වම් පැත්තේ සිට 40%ක් දුරට fade එක සිදුවේ */
    height: 100%;
    /* වමේ සිට දකුණට (to right) තද සුදු පාට සිට transparent වන gradient එක */
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 25%, 
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 5; /* Active image එකට උඩින් වැසීමට */
    pointer-events: none; /* Image එක උඩ ක්ලික් කිරීමට බාධාවක් නොවීම සඳහා */
}

/* සියලුම shuffle වෙන images මුලින් හංගා තැබීම */
.shuffle-item { 
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    border-radius: 30px; 
    opacity: 0; 
    visibility: hidden;
    z-index: 1; 
    /* Fade effect එක Smooth වෙන්න තත්පර 1ක transition එකක් */
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

/* Active වෙන image එක පමණක් ලස්සនට මතු වී පෙනීම (Fade In) */
.shuffle-item.active { 
    opacity: 1; 
    visibility: visible;
    z-index: 2; /* අනිත් ඒවට උඩින් පේන්න, හැබැයි gradient overlay එකට යටින් */
}

/* අර වටේට තියෙන Sky Blue බෝඩර් සැරසිල්ල */
.about-image-box::before {
    content: '';
    position: absolute;
    right: 0; 
    bottom: 0;
    width: 70%; 
    height: 70%;
    border: 10px solid var(--slii-sky-blue);
    border-radius: 30px;
    z-index: 0;
    opacity: 0.2;
}

/* --- Vision & Mission Cards --- */
.vision-mission-section { 
    padding: 60px 0 100px; 
    background: var(--light-bg); 
}

.dual-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-top: -120px; 
}

.v-m-card {
    background: var(--white); 
    padding: 50px 40px; 
    border-radius: 30px; 
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 35, 140, 0.08);
    transition: 0.4s ease;
    border-top: 6px solid var(--slii-sky-blue);
}

.v-m-card.mission { border-top-color: var(--highlight-coral); }
.v-m-card:hover { transform: translateY(-10px); }

.v-icon { font-size: 3rem; margin-bottom: 25px; display: block; }
.v-m-card h3 { font-family: 'Lora', serif; font-size: 1.8rem; color: var(--slii-dark-blue); margin-bottom: 15px; }

/* ============================================================
   MODDED STUDENT FACILITIES SECTION
   ============================================================ */

.premium-facilities-mod {
    padding: 100px 0;
    background-color: #f8fafc; /* Very light background for contrast */
}

/* --- Section Header (Cleaned) --- */
.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.sub-label {
    color: #ff8000; /* SLII Highlight Coral Color */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.section-header-center h2 {
    color: #00238c; /* SLII Dark Blue */
    font-size: 2.8rem;
    margin-bottom: 20px;
}

/* --- Facilities Grid (2x2) --- */
.facilities-mod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns like original */
    gap: 30px; /* space between cards */
}

/* --- The Modded Card --- */
.f-mod-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 35, 140, 0.04); /* Soft shadow */
    transition: 0.4s ease;
    border: 1px solid #edf2f7;
    position: relative;
    overflow: hidden;
    text-align: left;
}

/* Subtle accent line on top */
.f-mod-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0; /* starts empty */
    height: 4px;
    background: #0080ff; /* SLII Sky Blue accent */
    transition: width 0.4s ease;
}

/* Hover Effect: Card lifts, shadow grows, and sky blue line appears */
.f-mod-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 35, 140, 0.08);
    border-color: #0080ff;
}

.f-mod-card:hover::before {
    width: 100%; /* Line stretches across */
}

/* --- Icon Styling --- */
.f-icon-wrap {
    width: 60px;
    height: 60px;
    background: #f1f5f9; /* light blue bg for icon */
    color: #0080ff; /* Icon color */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.f-mod-card:hover .f-icon-wrap {
    background: #0080ff;
    color: #fff;
}

/* --- Text Styling --- */
.f-mod-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00238c;
    margin-bottom: 10px;
}

.f-mod-card p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* --- Simple Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpAnimation 0.8s forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.2s; }
.fade-in-up.delay-2 { animation-delay: 0.4s; }
.fade-in-up.delay-3 { animation-delay: 0.6s; }
.fade-in-up.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUpAnimation {
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustements (Stacks into 1 column) */
@media (max-width: 768px) {
    .facilities-mod-grid { grid-template-columns: 1fr; }
    .section-header-center h2 { font-size: 2rem; }
}

/* --- Modern Service Cards Container --- */
.services-modern-section {
    padding: 80px 5%;
    background: #fcf9f4; /* Light cream background */
}

.modern-services-grid {
    display: grid;
    /* This makes the cards smaller and fits more per row */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Individual Card Styling --- */
.mod-service-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 25px; /* Compact padding */
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
}

/* --- Floating Icon Box --- */
.mod-icon {
    width: 50px; /* Compact size */
    height: 50px;
    background: linear-gradient(135deg, #00238c, #0080ff); /* Your SLII colors */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 15px rgba(0, 35, 140, 0.2);
    transition: 0.3s ease;
}

/* --- Text Content --- */
.mod-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0080ff;
    margin-bottom: 8px;
}

.mod-content h3 {
    font-family: 'Lora', serif;
    font-size: 1.25rem; /* Smaller, modern heading */
    color: #00238c;
    margin-bottom: 12px;
    line-height: 1.3;
}

.mod-content p {
    font-size: 0.88rem; /* Professional compact font size */
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Hover Effects --- */
.mod-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 35, 140, 0.1);
    border-color: #0080ff;
}

/* Icon tilt on hover */
.mod-service-card:hover .mod-icon {
    transform: rotate(-5deg) scale(1.05);
}

/* Background Glow Effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: -1;
}

.mod-service-card:hover .card-glow {
    opacity: 1;
}

/* CSS updates for About page specifically */
        :root {
            --primary: #00238c;
            --secondary: #0080ff;
            --accent: #ff8000;
        }

        .about-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
        .sub-label { color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: 0.8rem; }
        
        /* ==========================================================================
   💼 ALWAYS VISIBLE - CONTINUOUS LIVE MISSION DESIGN
   ========================================================================== */

.single-mission-section {
    padding: 120px 5%;
    background: #ffffff; /* පිරිසිදු සුදු පසුබිම */
    text-align: center;
    overflow: hidden;
}

.single-mission-section .about-container {
    max-width: 850px;
    margin: 0 auto;
}

.mission-standalone-content {
    position: relative;
    padding: 20px 0;
}

/* 🏷️ ඉහළ ලේබලය */
.mission-mini-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    color: #0080ff; /* SLII Sky Blue */
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

/* 🏛️ ප්‍රධාන Heading එක */
.mission-standalone-content h3 {
    font-size: 2.4rem;
    color: #00238c; /* SLII Dark Blue */
    font-family: 'Lora', serif;
    margin: 0 0 30px 0;
    font-weight: 700;
}

/* 📜 ප්‍රධාන වැකිය - බලන් ඉද්දී මෘදු ලෙස Pulse වන ඇනිමේෂන් එකක් දැම්මා */
.premium-quote {
    margin: 0 auto;
    max-width: 750px;
    color: #334155;
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 500;
    font-style: italic;
    
    /* ✨ බලන් ඉද්දී සිදුවන මෘදු හුස්ම ගැනීමේ ඇනිමේෂන් එක */
    animation: textSoftPulse 4s infinite ease-in-out; 
}

/* 🧵 පහළින් වැටෙන රේඛාව - බලන් ඉද්දී දිග හැරෙමින් Glow වන ඇනිමේෂන් එකක් */
.mission-bottom-line {
    content: '';
    height: 3px;
    background: linear-gradient(90deg, #0080ff, #00238c, #0080ff);
    background-size: 200% auto;
    margin: 40px auto 0;
    border-radius: 2px;
    
    /* ✨ බලන් ඉද්දී නිරන්තරයෙන් සිදුවන ලේසර් ග්ලෝ ඇනිමේෂන් එක */
    animation: lineGlowFlow 3s infinite linear; 
    
    width: 80px;
    transition: width 0.4s ease;
}

/* ==========================================================================
   🌀 THE ALWAYS-LIVE KEYFRAMES (නිරන්තරයෙන්ම පණ ඇති ඇනිමේෂන්)
   ========================================================================== */

/* 1. අකුරු බලන් ඉද්දී මෘදු ලෙස දිලිසීම */
@keyframes textSoftPulse {
    0%, 100% {
        color: #334155;
    }
    50% {
        color: #00238c; /* මැදදී මෘදු ලෙස බ්‍රෑන්ඩ් කලර් එකට හැරීම */
    }
}

/* 2. පහළ ඉර දිගේ වර්ණ නිරන්තරයෙන් ගලාගෙන යාම (Laser Flow Effect) */
@keyframes lineGlowFlow {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 5px rgba(0, 128, 255, 0.2);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 15px rgba(0, 128, 255, 0.6); /* මැදදී ලයින් එක Glow වීම */
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 5px rgba(0, 128, 255, 0.2);
    }
}

/* ==========================================================================
   🔥 INTERACTIVE HOVER
   ========================================================================== */
.mission-standalone-content:hover .mission-bottom-line {
    width: 160px; /* මවුස් එක ගෙනිච්චාම තවත් පළල් වීම */
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
    .single-mission-section { padding: 80px 5%; }
    .mission-standalone-content h3 { font-size: 1.9rem; }
    .premium-quote { font-size: 1.1rem; line-height: 1.7; }
} 

        /* Stats in Text */
        .mini-stats-grid { display: flex; gap: 40px; margin-top: 30px; border-top: 1px solid #eee; padding-top: 20px; }
        .m-stat span { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
        .m-stat p { font-size: 0.8rem; color: #666; margin: 0; }

        /* Partner Grid */
        .partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
        .partner-item { background: white; padding: 30px; border-radius: 15px; border-bottom: 4px solid var(--secondary); transition: 0.3s; }
        .partner-item:hover { transform: translateY(-5px); }
        .partner-item i { font-size: 2rem; color: var(--secondary); margin-bottom: 15px; }

        @media (max-width: 768px) {
            .dual-grid { grid-template-columns: 1fr; margin-top: 20px; }
            .about-grid { grid-template-columns: 1fr; }
        }

       /* ==========================================================================
   🧡 TIMELINE - PURE CLEAN WHITE THEME WITH STRAIGHT ORANGE LASER LINE
   ========================================================================== */

.ultimate-map-section {
    padding: 100px 0;
    background: #ffffff; /* 🤍 100%ක්ම පිරිසිදු සුදු පසුබිම */
    overflow: hidden;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 5%;
}

.section-header-center h2 {
    font-size: 2.4rem;
    color: #00238c; /* SLII Core Dark Blue */
    font-family: 'Lora', serif;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
}

/* --- 🎛️ Slider Container --- */
.timeline-slider-container {
    width: 100%;
    overflow-x: auto;
    padding: 60px 5% 60px;
    scrollbar-width: thin;
}

/* Minimal White Theme Scrollbar */
.timeline-slider-container::-webkit-scrollbar { height: 6px; }
.timeline-slider-container::-webkit-scrollbar-track { background: #f1f5f9; }
.timeline-slider-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.timeline-slider-container::-webkit-scrollbar-thumb:hover { background: #ff8800; }

/* --- 🧵 The Slider Track --- */
.timeline-slider-track {
    display: flex;
    position: relative;
    padding-bottom: 60px;
    min-width: 1600px;
}

/* ==========================================================================
   ⚡ THE STRAIGHT ORANGE LASER LINE (නොනවතී ගලායන තැඹිලි ලේසර් කිරණය)
   ========================================================================== */
.timeline-slider-track::after {
    content: '';
    position: absolute;
    bottom: 53px; /* Dot එක මැදින්ම යන ගාණට උස සකස් කළා */
    left: 0;
    width: 100%;
    height: 3px; /* පිරිසිදු සිහින් කෙලින් රේඛාවක් */
    z-index: 2;
    
    /* 🧡 තැඹිලි පාට නියෝන් ලේසර් පසුබිම */
    background: #ff8800; 

    /* 🎛️ Linear Mask - මේකෙන් තමා තනි ඉරක් වටේටම තියෙන්නේ නැතුව ලේසර් බීම් එකක් වගේ වමේ ඉඳන් දකුණට පාවෙන්න හදන්නේ */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, transparent 100%);
    -webkit-mask-size: 400px 100%;
    mask-size: 400px 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    
    /* ✨ සුදු පසුබිමට ගැළපෙන Premium Orange Neon Glow එකක් */
    filter: drop-shadow(0 0 6px #ff8800) drop-shadow(0 0 12px rgba(255, 170, 0, 0.4));
    
    /* ලේසර් එක නොනවතී වමේ සිට දකුණට දිව යන ඇනිමේෂන් එක */
    animation: orangeLaserScan 3s linear infinite;
}

/* 🌀 ලේසර් කිරණය වමේ සිට දකුණට ස්මූත් ලෙස දිව යන Keyframe එක */
@keyframes orangeLaserScan {
    0% {
        -webkit-mask-position: -400px 0;
        mask-position: -400px 0;
    }
    100% {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
}

/* --- 📍 Slider Node Item --- */
.slider-node-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
    margin-right: 60px;
    position: relative;
}

/* --- 📦 Ultra-Clean Minimal Card --- */
.node-info-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 35, 140, 0.02);
    text-align: left;
    width: 100%;
    margin-bottom: 55px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.node-badge-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: #512b00; /* Year Badge එකත් Orange කළා */
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.node-info-card h3 {
    margin: 0 0 10px 0;
    color: #00238c; /* SLII Dark Blue */
    font-size: 1.15rem;
    font-weight: 700;
}

.node-info-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* --- 🔘 Minimal Timeline Dot --- */
.slider-dot {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border: 3px solid #cbd5e1; /* මුලින් ලා අළු පාටින් තියෙන ඩොට් එක */
    border-radius: 50%;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px #ffffff;
    position: absolute;
    bottom: 49px; /* කෙලින් ඉර යන මට්ටමට ගාණට මැච් වෙනවා */
}

/* ==========================================================================
   🔥 INTERACTIVE HOVER HIGHLIGHT
   ========================================================================== */
.slider-node-item:hover .node-info-card {
    transform: translateY(-10px);
    border-color: #ff8800; /* Hover එකත් Orange තේමාවට */
    box-shadow: 0 20px 40px rgba(255, 170, 0, 0.06);
}

/* මවුස් එක ලඟට ආවාම විතරක් Dot එක Orange පාටින් Neon එකක් වගේ පණ ගැන්වීම */
.slider-node-item:hover .slider-dot {
    background: #ff8800;
    border-color: #ff8800;
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(255, 170, 0, 0.2), 0 0 15px rgba(255, 170, 0, 0.8);
}
/* ============================================================
   INFINITE LOGO SLIDER (ACCREDITATION)
   ============================================================ */

.partner-slider-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

/* Header එක පොඩිවට */
.small-header { margin-bottom: 40px !important; }
.small-header h3 { font-size: 1.5rem; color: #00238c; }

/* Slider Container */
.logo-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* දෙපැත්තට Fade effect එකක් දාමු */
.logo-slider-wrapper::before,
.logo-slider-wrapper::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
}
.logo-slider-wrapper::before { left: 0; background: linear-gradient(to right, white 0%, transparent 100%); }
.logo-slider-wrapper::after { right: 0; background: linear-gradient(to left, white 0%, transparent 100%); }

.logo-track {
    display: flex;
    width: calc(250px * 12); /* Logo එකක පළල * මුළු ලෝගෝ ගණන */
    animation: scrollLogos 30s linear infinite; /* හෙමින් දිවෙන ඇනිමේෂන් එක */
}

/* Mouse එක ගෙනියද්දී Slider එක නවතිනවා */
.logo-track:hover {
    animation-play-state: paused;
}

.slide {
    width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.slide img {
    max-width: 150px;
    max-height: 60px;
    transition: 0.4s ease;
}

.slide img:hover {
    filter: grayscale(0%); /* පාට වෙනවා */
    opacity: 1;
    transform: scale(1.1);
}

/* Animation Logic */
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); } /* මුල් ලෝගෝ සෙට් එකේ ප්‍රමාණය */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .slide { width: 180px; }
    .logo-track { width: calc(180px * 12); }
    @keyframes scrollLogos {
        100% { transform: translateX(calc(-180px * 6)); }
    }
}

/* --- Chatbot UI --- */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    display: none; /* Hidden by default */
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    animation: chatFadeIn 0.3s ease-out;
}

@keyframes chatFadeIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chat-header {
    background: var(--slii-dark-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-info { display: flex; align-items: center; gap: 10px; }
.online-dot { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; }

.chat-content {
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    flex-grow: 1;
}

.message {
    padding: 12px 16px;
    border-radius: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
}

.bot-msg { 
    background: white; 
    color: #334155; 
    align-self: flex-start; 
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-msg { 
    background: var(--slii-sky-blue); 
    color: white; 
    margin-left: auto; 
    border-bottom-right-radius: 2px; 
}

/* Quick Question Buttons */
.quick-questions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.instruction { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; font-weight: 700; margin-bottom: 5px; }

.quick-questions button {
    background: #fff;
    border: 1px solid var(--slii-sky-blue);
    color: var(--slii-sky-blue);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
    font-size: 0.85rem;
}

.quick-questions button:hover {
    background: var(--slii-sky-blue);
    color: white;
}

/* Floating Toggle Button */
.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--slii-dark-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 35, 140, 0.3);
    z-index: 2000;
    transition: 0.3s;
}

.chat-toggle-btn:hover { transform: scale(1.1); }


/* --- Portfolio Hero --- */
.portfolio-hero {
    background: linear-gradient(rgba(0, 35, 140, 0.8), rgba(0, 35, 140, 0.8)), 
                url('images/slii.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 5%;
    text-align: center;
    color: white;
    /* Increased gap between Hero and Content */
    margin-bottom: 100px; 
}

.portfolio-hero h1 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    margin-top: 20px;
}

/* --- Portfolio Content Area --- */
.portfolio-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 100px;
}

/* Album Grid Logic */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.album-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.album-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 35, 140, 0.15);
}

.album-img {
    position: relative;
    height: 280px;
}

.album-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-count {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 35, 140, 0.85);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.album-info {
    padding: 25px;
}

.album-info h3 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    color: var(--slii-dark-blue);
    margin-bottom: 8px;
}

.album-info span {
    color: var(--slii-sky-blue);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Photos Detailed View */
.view-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.back-btn {
    background: transparent;
    border: 2px solid var(--slii-dark-blue);
    color: var(--slii-dark-blue);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
}

.back-btn:hover {
    background: var(--slii-dark-blue);
    color: white;
}

.current-album-title {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    color: var(--slii-dark-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    border-radius: 15px;
    transition: 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}



/* Responsive Mobile Fix */
@media (max-width: 768px) {
    .portfolio-hero h1 { font-size: 2.5rem; }
    .portfolio-hero { margin-bottom: 60px; }
    .albums-grid { grid-template-columns: 1fr; }
}

/* --- Courses Page Styles --- */
.courses-section { 
    padding: 60px 5% 100px; 
    background: #fcf9f4; 
}

.course-filter-wrapper {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#courseSearch {
    width: 100%;
    max-width: 600px;
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    outline: none;
}

#courseSearch:focus { border-color: var(--slii-sky-blue); }

.category-tabs { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    justify-content: center; 
}

.tab-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--slii-dark-blue);
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.tab-btn.active, .tab-btn:hover { 
    background: var(--slii-dark-blue); 
    color: white; 
}

/* Grid Layout */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Course Card Container */
.course-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%; /* Row එකේ තියෙන හැම කාඩ් එකක්ම එකම උසක් ගැනීමට */
    transition: 0.3s;
    border-top: 5px solid var(--slii-sky-blue);
}

.course-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

.course-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--slii-sky-blue);
    margin-bottom: 10px;
}

/* --- [FIXED] Course Title (H3) ---
   කැපෙන කෑලි සහ පරස්පරතා සියල්ල ඉවත් කර නම සම්පූර්ණයෙන්ම පෙන්වීමට සකස් කළා 
*/
.course-card h3 { 
    font-family: 'Lora', serif; 
    color: var(--slii-dark-blue); 
    margin-bottom: 20px; 
    
    height: auto; 
    max-height: none;
    overflow: visible; 
    display: block;
    -webkit-line-clamp: unset; 
    -webkit-box-orient: unset;
    
    font-size: 1.25rem; 
    line-height: 1.4;

    /* 🌟 මෙන්න මේ ලයින් 3 අලුතින් එකතු කරන්න මචං */
    display: inline-block; /* මුළු පළලම නොගෙන අකුරු ප්‍රමාණයට විතරක් Highlight වෙන්න */
    background: linear-gradient(180deg, transparent 60%, rgba(0, 35, 140, 0.08) 60%); /* SLII Dark Blue එකේ ලස්සන Tint එකක් පල්ලෙහාට වැටේ */
    padding: 0 4px;
    border-left: 3px solid var(--slii-sky-blue);
    padding-left: 10px;
}

/* --- Course Card Description (Paragraph) --- */
.course-card p { 
    font-size: 0.9rem; 
    color: #64748b; 
    margin-bottom: 20px; 
    
    /* !!! මේක අනිවාර්යයෙන්ම දාන්න මචං - එතකොටයි පේළි 4 සීමාව වැඩ කරන්නේ !!! */
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important; 
    -webkit-box-orient: vertical !important;  
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    
    line-height: 1.6; 
    height: 5.76rem !important; /* පේළි 4ක උස ස්ථාවරව හිර කරලා තැබීම */
    max-height: 5.76rem !important; 
    
}

/* --- Course Meta --- */
.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    
    /* ඉහළින් තියෙන හිස් ඉඩ ඔක්කොම අරන් බොත්තම යටටම තල්ලු කිරීම */
    margin-top: auto !important; 
}

.view-course-btn {
    text-align: center;
    text-decoration: none;
    background: var(--slii-dark-blue);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s;
}

.view-course-btn:hover { 
    background: var(--slii-sky-blue); 
}

/* 🌟 කාඩ් එක Hover වෙද්දී ඒක ඇතුළේ තියෙන H3 එකේ පාට විතරක් මාරු කිරීම */
.course-card:hover h3 {
    color: var(--slii-sky-blue) !important;
    transition: color 0.3s ease;
}

/* --- Contact Page Styles --- */
.contact-section { padding: 80px 5% 100px; background: #fcf9f4; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.contact-form-card h2 {
    font-family: 'Lora', serif;
    color: var(--slii-dark-blue);
    margin-bottom: 30px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--slii-sky-blue);
    box-shadow: 0 0 0 4px rgba(0, 128, 255, 0.1);
}

.submit-btn {
    width: 100%;
    background: var(--slii-dark-blue);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover { background: var(--slii-sky-blue); transform: translateY(-2px); }

/* Info Panel Styling */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.info-text h3 {
    font-size: 1.1rem;
    color: var(--slii-dark-blue);
    margin-bottom: 5px;
}

.info-text p { color: #64748b; font-size: 0.95rem; line-height: 1.6; }

.map-container { margin-top: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 15px; }

/* Responsive Mobile */
@media (max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* --- Team Page Styles --- */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 40px 5%;
}

.team-card {
    width: 250px;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* රවුම් පින්තූර */
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--slii-sky-blue);
}

.team-card h3 {
    font-size: 1.2rem;
    color: var(--slii-dark-blue);
}

.designation {
    color: var(--highlight-coral);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================================
   LATEST UPDATES: TITLES & CARDS IMPROVEMENTS
   ============================================================ */

/* --- Section Titles ලස්සන කිරීම --- */
.section-title {
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 3rem;
    color: var(--slii-dark-blue);
    margin: 80px 0 50px;
    position: relative;
    font-weight: 700;
}

/* Title එක යටින් එන Double Line (Modern look) */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--highlight-coral);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: #cbd5e1; /* Light gray line under the thick line */
}

/* --- News & Event Cards පළල සහ පෙනුම පාලනය --- */
.news-container, .events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-card, .event-card {
    width: 320px; /* Card එකකට නියමිත පළල */
    flex: 0 1 320px; /* Card එක ලොකු වැඩි වීම වළක්වයි */
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.news-card:hover, .event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 35, 140, 0.1);
}

/* පින්තූර නියම මට්ටමට සැකසීම */
.news-card img, .event-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

/* ============================================================
   UPDATED ULTRA SLIM & COMPACT DARK FOOTER
   ============================================================ */
.slii-footer-premium {
    background: #0a0f1d !important;
    color: #ffffff !important;
    padding: 0 5% 15px;
    position: relative;
    margin-top: 70px;
}

/* Floating CTA */
.footer-cta {
    background: linear-gradient(135deg, #00238c, #0080ff) !important;
    border-radius: 12px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.cta-text h3 { font-size: 1.2rem !important; color: white; margin: 0; }
.cta-text p { font-size: 0.8rem !important; color: rgba(255,255,255,0.7); margin: 0; }

.btn-footer-cta {
    background: #ffffff;
    color: #00238c;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

/* Footer Main Layout */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr; /* තීරු 3 බෙදා ගැනීම */
    gap: 30px;
    margin-top: -10px;
    padding-bottom: 20px;
}

.footer-logo-slim { 
    height: 40px;
    margin-bottom: 10px; 
}

.footer-brand p { font-size: 0.8rem; color: #94a3b8; line-height: 1.5; margin-bottom: 15px; }

/* Social Icons - හරස් අතට පේළියට */
.social-minimal {
    display: flex !important;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.social-minimal a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-minimal a:hover {
    background: #ffffff !important;
    color: #0a0f1d !important;
    transform: translateY(-3px);
}

/* Navigation Links - හරස් අතට පේළියට */
.footer-nav {
    display: flex !important;
    gap: 50px; /* Institute සහ Resources අතර පරතරය */
}

.link-group h4 { font-size: 0.75rem; color: #0080ff; margin-bottom: 12px; text-transform: uppercase; }

.link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-group ul li {
    margin-bottom: 8px;
}

.link-group ul li a {
    font-size: 0.85rem;
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: 0.3s;
}

.link-group ul li a:hover {
    color: #ffffff !important;
    padding-left: 5px;
}

/* Contact Details */
.footer-contact-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 10px;
}

.footer-contact-card h4 { font-size: 0.85rem; color: #fff; margin-bottom: 10px; }
.footer-contact-card p { font-size: 0.8rem; margin-bottom: 5px; color: #cbd5e1; }

/* Copyright Section */
.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
    text-align: center;
    color: #475569;
    font-size: 0.75rem;
}

/* --- Mobile Responsiveness --- */

@media (max-width: 768px) {
    /* Navbar එක ෆෝන් එකට ගැළපෙන ලෙස සකස් කිරීම */
    .navbar {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .nav-cta {
        margin-top: 15px;
    }

    /* Team Grid එකේ columns ගණන වෙනස් කිරීම */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .section-title {
        font-size: 24px;
        margin-top: 30px;
    }

    /* Hero section එකේ අකුරු කුඩා කිරීම */
    .portfolio-hero h1 {
        font-size: 28px;
    }

    /* Footer එක පේළියට සැකසීම */
    .footer-main-grid {
        grid-template-columns: 1fr; /* තීරු 1කට හැරවීම */
        text-align: center;
        gap: 30px;
    }

    .footer-contact-card {
        text-align: center;
    }


/* Portfolio Grid එක සකස් කිරීම */
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* ෆෝන් එකට අනුව column එක බැගින් වැටේ */
        gap: 15px;
        padding: 15px;
    }

    .portfolio-item {
        height: auto; /* රූපයේ ප්‍රමාණය අනුව හැඩගැසීමට */
        border-radius: 12px;
    }

    .portfolio-item img {
        width: 100%;
        height: 250px; /* ෆෝන් එකේදී image එකේ උස ස්ථිරව තබා ගැනීමට */
        object-fit: cover;
    }

    /* Portfolio පේජ් එකේ title සහ description */
    .portfolio-content {
        padding: 10px;
        text-align: center;
    }

    .portfolio-content h2 {
        font-size: 20px;
    }

    /* Courses Grid එක සකස් කිරීම */
    .courses-container {
        display: grid;
        grid-template-columns: 1fr; /* ෆෝන් එකේදී එක පේළියට එක බැගින් */
        gap: 20px;
        padding: 15px;
    }

    .course-card {
        display: flex;
        flex-direction: column; /* Image එක උඩට සහ විස්තර යටට එන ලෙස */
        width: 100%;
        margin: 0 auto;
    }

    .course-image {
        width: 100%;
        height: 200px;
    }

    .course-details {
        padding: 20px;
    }

    /* පාඨමාලා ගාස්තු හෝ කාලය පෙන්වන Table එකක් තිබේ නම් */
    .course-table {
        display: block;
        width: 100%;
        overflow-x: auto; /* ටේබල් එක ලොකු වැඩි නම් එහා මෙහා (scroll) කළ හැකි වීමට */
        white-space: nowrap;
    }

    .course-table th, .course-table td {
        padding: 10px;
        font-size: 14px;
    }

    /* --- Mobile Responsiveness --- */
        
        /* Mobile Menu Button - සාමාන්‍යයෙන් පේන්නේ නැහැ */
        .menu-toggle { display: none; }

        @media (max-width: 768px) {
            body { flex-direction: column; }

            /* 1. Sidebar එක ෆෝන් එකේදී උඩට ගැනීම */
            .sidebar { 
                width: 100%; 
                height: auto; 
                position: relative; 
                padding: 15px; 
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            
            .sidebar h2 { margin-bottom: 15px; }
            .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; width: 100%; }
            .nav-links li { margin: 0; }
            .nav-links a { padding: 10px 12px; font-size: 13px; }
            
            .logout-section { 
                position: relative; 
                bottom: 0; 
                width: 100%; 
                margin-top: 15px; 
                display: flex; 
                justify-content: center; 
            }

            /* 2. Main Content එකේ ඉඩ සැකසීම */
            .main-content { 
                margin-left: 0; 
                width: 100%; 
                padding: 20px; 
            }

            .top-header { flex-direction: column; text-align: center; gap: 10px; }
            .welcome-box { padding: 20px; text-align: center; }
            .btn-group { flex-direction: column; }
            
            /* 3. Stats Cards එක පේළියට එක බැගින් */
            .stats-container { grid-template-columns: 1fr; }
            
            .stat-card { padding: 15px; }
            .stat-info p { font-size: 24px; }
        }

        /* --- Base Styles (Desktop) --- */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-light); 
    margin: 0; 
    display: flex; 
    min-height: 100vh;
}

.sidebar { 
    width: 260px; 
    background: var(--sidebar-bg); 
    color: #fff; 
    padding: 25px; 
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.main-content { 
    flex-grow: 1;
    padding: 40px; 
    box-sizing: border-box;
    overflow-x: hidden;
}

/* --- Mobile Responsiveness (Max-width 768px) --- */
@media screen and (max-width: 768px) {
    body { 
        flex-direction: column !important; 
    }

    .sidebar { 
        width: 100% !important; 
        height: auto !important; 
        position: static !important; /* Fixed එක අයින් කරයි */
        padding: 20px !important;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .nav-links li {
        margin: 5px 0 !important;
    }

    .main-content { 
        width: 100% !important; 
        padding: 20px !important;
        margin: 0 !important;
    }

    .stats-container {
        grid-template-columns: 1fr !important; /* එක පේළියට එකයි */
    }

    .logout-section {
        position: static !important;
        margin-top: 20px !important;
        text-align: center;
    }
}

/* Desktop Sidebar (පරිගණක සඳහා) */
.sidebar {
    width: 250px;
    height: 100vh;
    background: #00238c;
    position: fixed;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-content {
    margin-left: 250px; /* Sidebar එකේ ඉඩ වෙන් කිරීම */
    padding: 20px;
    transition: all 0.3s ease;
}

/* Mobile Layout (අඟල් 768 ට වඩා අඩු screen සඳහා) */
@media (max-width: 768px) {
    .sidebar {
        width: 100%; /* Mobile වලදී මුළු පළලම ගන්නවා */
        height: auto;
        position: relative; /* Fixed එක අයින් කරනවා */
    }

    .main-content {
        margin-left: 0; /* Mobile වලදී පැත්තෙන් ඉඩක් අවශ්‍ය නැහැ */
        padding: 15px;
    }

    /* Sidebar එක ඇතුලේ තියෙන links ලස්සනට පේන්න */
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }

    .sidebar ul li {
        margin: 5px 10px;
    }

    
}


}

/* Section & Container */
    .cpd-full-section { padding: 60px 5%; background: #fdfdfd; }
    .cpd-container { 
        max-width: 1200px; margin: 0 auto; display: flex; gap: 25px; flex-wrap: wrap; 
    }

    /* Left Side - Calendar */
    .calendar-side { 
        flex: 2; min-width: 350px; background: #fff; padding: 20px; 
        border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); 
    }
    
    /* Right Side - Details Panel */
    .events-list-side { 
        flex: 1; min-width: 300px; background: #fff; padding: 25px; 
        border-radius: 15px; border-top: 5px solid #001a6b; 
        box-shadow: 0 5px 25px rgba(0,0,0,0.05); position: sticky; top: 100px; height: fit-content;
    }

    /* Calendar Tweaks */
    #cpd-calendar-ui { font-size: 0.85rem; height: 550px; }
    .fc-toolbar-title { font-size: 1.1rem !important; color: #001a6b !important; font-weight: 700; }
    .fc-button-primary { background: #001a6b !important; border: none !important; font-size: 0.8rem !important; }
    .fc-daygrid-event { background: #ff8000 !important; border: none !important; cursor: pointer; padding: 2px 5px !important; }

    /* Detail Panel Elements */
    .detail-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; display: block; }
    .detail-value { font-size: 15px; color: #333; font-weight: 600; margin-bottom: 15px; display: block; }
    .info-box { background: #f8faff; padding: 15px; border-radius: 10px; margin-top: 15px; border-left: 3px solid #ff8000; }

    
    
    /* News Ticker Container */
.news-ticker-container {
    background: #484747; /* SLII Blue */
    color: white;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid #ff8000; /* SLII Orange Accent */
}

/* "Latest News" Label */
.ticker-title {
    background: #090937;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    z-index: 2;
    position: relative;
    text-transform: uppercase;
    font-size: 13px;
}

/* Scrolling Text Wrapper */
.ticker-wrapper {
    display: flex;
    white-space: nowrap;
    animation: ticker-move 30s linear infinite; /* වේගය මෙතනින් පාලනය කරන්න */
}

.ticker-item {
    padding: 0 40px;
    font-size: 14px;
}

.ticker-item i {
    color: #ff8000;
    margin-right: 10px;
}

/* Animation Logic */
@keyframes ticker-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Text එක double කරලා තියෙන නිසා භාගයක් ගියාම reset වෙනවා */
}

/* Mouse එක උඩට ගියාම නවත්තන්න */
.news-ticker-container:hover .ticker-wrapper {
    animation-play-state: paused;
}

/* ==========================================================================
   INDEX HOMEPAGE - FULL MOBILE RESPONSIVE (ALL SCREEN SIZES)
   ========================================================================== */

.news-image-wrap,
.event-image-wrap {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.news-image-wrap img,
.event-image-wrap img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.news-section,
.events-section {
    overflow: hidden;
    padding: 0 0 20px;
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.25rem;
        margin: 50px 0 40px;
    }

    .welcome-modern {
        padding: 70px 0;
    }

    .modern-flex {
        gap: 30px;
    }

    .video-showcase-area {
        padding: 70px 0;
    }

    .video-details h2 {
        font-size: 2.2rem;
    }

    .cpd-full-section {
        padding: 80px 0;
    }

    .cpd-section-header h2 {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.85rem;
        margin: 40px 0 30px;
    }

    .welcome-modern {
        padding: 55px 0;
    }

    .modern-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .image-container {
        width: 260px;
        height: 260px;
    }

    .image-container::before {
        width: 230px;
        height: 230px;
    }

    .image-container::after {
        width: 280px;
        height: 280px;
    }

    .glass-info-card {
        width: 100%;
        max-width: 300px;
    }

    .text-description {
        text-align: center;
        padding: 0 10px;
    }

    .news-wrapper,
    .events-wrapper {
        height: auto;
        min-height: 460px;
        padding: 10px 0 50px;
    }

    .news-container,
    .events-container {
        width: min(100%, 300px);
        height: auto;
        min-height: 380px;
    }

    .news-card,
    .event-card {
        width: min(100%, 280px);
    }

    .news-card.active,
    .event-card.active {
        transform: translateX(0) scale(1.02);
    }

    .news-card.prev {
        transform: translateX(-130px) scale(0.85);
    }

    .news-card.next {
        transform: translateX(130px) scale(0.85);
    }

    .event-card.prev {
        transform: translateX(-130px) scale(0.85);
    }

    .event-card.next {
        transform: translateX(130px) scale(0.85);
    }

    .scroll-btn,
    .event-scroll-btn {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .scroll-btn.left,
    .event-scroll-btn.left {
        left: 2%;
    }

    .scroll-btn.right,
    .event-scroll-btn.right {
        right: 2%;
    }

    .video-showcase-area {
        padding: 55px 0;
    }

    .video-glass-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .video-row {
        gap: 30px;
    }

    .video-details h2 {
        font-size: 1.85rem;
    }

    .video-details p {
        font-size: 1rem;
    }

    .learning-points {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-subscribe {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .cpd-full-section {
        padding: 60px 0;
    }

    .cpd-full-section .about-container {
        padding: 0 16px;
    }

    .cpd-section-header {
        margin-bottom: 36px;
    }

    .cpd-section-header h2 {
        font-size: 1.75rem;
    }

    .calendar-side-card,
    .events-list-side {
        padding: 18px;
        border-radius: 18px;
    }

    .events-list-side {
        min-height: auto;
    }

    #cpd-calendar-ui {
        min-height: 380px;
    }

    .fc .fc-toolbar.fc-header-toolbar {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .fc-toolbar-title {
        font-size: 1rem !important;
    }

    .fc .fc-button {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }

    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .quick-event-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .strip-date-badge {
        margin-right: 0;
    }

    #panel-title {
        font-size: 1.35rem;
    }

    .footer-cta {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 24px;
        transform: translateY(-35%);
    }

    .footer-nav {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    #slii-chat-window {
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        height: min(70vh, 520px);
        bottom: 90px;
    }

    #slii-chat-trigger {
        bottom: 18px;
        right: 18px;
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.55rem;
        margin: 32px 0 24px;
    }

    .main-feat-img {
        width: 180px;
    }

    .news-wrapper,
    .events-wrapper {
        min-height: 420px;
    }

    .news-container,
    .events-container {
        width: min(100%, 260px);
        min-height: 360px;
    }

    .news-card,
    .event-card {
        width: min(100%, 250px);
    }

    .news-card.prev,
    .news-card.next,
    .event-card.prev,
    .event-card.next {
        opacity: 0 !important;
        pointer-events: none;
        transform: translateX(0) scale(0.85);
    }

    .news-card.active,
    .event-card.active {
        transform: translateX(0) scale(1);
    }

    .news-image-wrap img,
    .event-image-wrap img {
        height: 150px;
    }

    .video-details h2 {
        font-size: 1.55rem;
    }

    .yt-badge-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .connect-header h2 {
        font-size: 1.65rem;
    }

    .connect-info a {
        font-size: 1.15rem;
        word-break: break-word;
    }

    .stack-info h3 {
        font-size: 1.45rem;
    }
}