/* =========================================================
   CA TECHWORKS PUBLIC WEBSITE STYLES
   Modern Luxury Design - Inspired by africaqs.com
   ========================================================= */

/* Import Professional Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* CSS Variables - Modern Luxury Theme */
:root {
    --primary-dark: #0a1628;
    --primary-blue: #0a4fb9;
    --primary-light: #2563eb;
    --secondary-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-teal: #14b8a6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #f1f5f9;
    --medium-gray: #64748b;
    --dark-gray: #1e293b;
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 64px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 40px rgba(10, 79, 185, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --gradient-primary: linear-gradient(135deg, #0a4fb9 0%, #2563eb 50%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #0a1628 0%, #1e293b 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* =========================================================
   NAVIGATION - Modern Luxury Design
   ========================================================= */

.navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--white);
    padding: 14px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
    border-bottom: 1px solid transparent;
    transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, border-color .35s ease, padding .35s ease;
}

.navbar.scrolled,
.navbar.is-scrolled {
    background: rgba(10, 22, 40, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    max-width: 380px;
}

.navbar-logo {
    display: block;
    height: 78px !important;
    width: auto !important;
    max-height: 78px !important;
    max-width: 360px !important;
    object-fit: contain !important;
    object-position: left center;
    background: transparent !important;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    /* dark logo on dark hero → force light/white for visibility */
    filter:
        brightness(0) invert(1)
        drop-shadow(0 1px 0 rgba(255,255,255,.35))
        drop-shadow(0 4px 12px rgba(0,0,0,.35));
    transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}

.navbar-brand:hover {
    transform: none;
    text-shadow: none;
}

.navbar-brand:hover .navbar-logo {
    transform: translateY(-1px) scale(1.02);
    filter:
        brightness(0) invert(1)
        drop-shadow(0 1px 0 rgba(255,255,255,.45))
        drop-shadow(0 6px 16px rgba(0,0,0,.4));
}

.navbar-brand:focus-visible .navbar-logo {
    outline: 2px solid rgba(56, 189, 248, 0.85);
    outline-offset: 3px;
    border-radius: 8px;
}

.navbar.is-scrolled .navbar-logo,
.navbar.scrolled .navbar-logo {
    filter:
        brightness(0) invert(1)
        drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.navbar-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar-nav a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    font-size: 15px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    text-decoration: none;
}

.navbar-nav a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav a:hover::after {
    width: 100%;
}

.btn-apply {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-glow);
}

.btn-apply::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-apply:hover::before {
    left: 100%;
}

.btn-apply:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(10, 79, 185, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .navbar-nav.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: 12px;
        right: 12px;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 14px 18px 20px;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        z-index: 9999;
        box-shadow: 0 24px 48px rgba(0,0,0,.5);
    }

    .navbar-nav.mobile-active > a,
    .navbar-nav.mobile-active .nav-dropdown > .nav-link {
        width: 100%;
        padding: 15px 4px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        color: #fff;
    }

    .navbar-nav.mobile-active .navbar-dropdown-menu {
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        background: rgba(255,255,255,0.05);
        border: none;
        border-radius: 10px;
        margin: 4px 0 8px;
        padding: 6px 8px;
        box-shadow: none;
    }

    .navbar-nav.mobile-active .navbar-dropdown-menu a {
        display: block;
        padding: 13px 14px;
        border-radius: 8px;
        color: #fff;
    }

    .navbar-nav.mobile-active a:last-child,
    .navbar-nav.mobile-active .nav-dropdown:last-child > .nav-link {
        border-bottom: none;
    }
}

/* SVG Decorative Elements */
.svg-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.svg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: blobFloat 20s infinite ease-in-out;
}

.svg-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.svg-blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    top: 60%;
    right: -5%;
    animation-delay: 5s;
}

.svg-blob-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-purple);
    bottom: 10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

/* Section with SVG decorations */
.section-with-decoration {
    position: relative;
    overflow: hidden;
}

.section-with-decoration .container {
    position: relative;
    z-index: 1;
}

/* =========================================================
   HERO SECTION - Modern Luxury Design
   ========================================================= */

.hero-section {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.2s ease-in;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(10, 79, 185, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
    background-size: 60px 60px;
    opacity: 0.6;
    animation: float 25s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(15px); }
    100% { transform: translateY(0) translateX(0); }
}

.hero-section .container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: slideUp 0.8s ease-out;
    letter-spacing: -1px;
}

.hero-section h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
    animation: slideUp 1s ease-out 0.2s backwards;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: slideUp 1.2s ease-out 0.4s backwards;
}

/* Floating bubbles animation */
.hero-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: bubbleFloat 15s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 100px;
    height: 100px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 80%;
    top: 60%;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 80px;
    height: 80px;
    left: 60%;
    top: 30%;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    width: 40px;
    height: 40px;
    left: 30%;
    top: 70%;
    animation-delay: 6s;
}

.bubble:nth-child(5) {
    width: 120px;
    height: 120px;
    left: 50%;
    top: 80%;
    animation-delay: 8s;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) translateX(15px) scale(1.1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-60px) translateX(-10px) scale(1);
        opacity: 0.1;
    }
    75% {
        transform: translateY(-30px) translateX(20px) scale(1.05);
        opacity: 0.12;
    }
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-family: var(--font-heading);
    text-decoration: none;
    font-size: 16px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--off-white);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 32px rgba(255,255,255,0.1);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-gradient:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 48px rgba(10, 79, 185, 0.4);
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 80px 0;
    position: relative;
}

.section-dark {
    background: var(--primary-dark);
    color: var(--white);
}

.section-light {
    background: var(--off-white);
    position: relative;
}

.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(0,0,0,0.03)"/></svg>');
    background-size: 30px 30px;
    z-index: 0;
}

.section-light > .container {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.section-dark .section-title h2 {
    color: var(--white);
}

.section-dark .section-title h2::after {
    background: var(--accent-cyan);
}

.section-title p {
    font-size: 18px;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 25px auto 0;
}

.section-dark .section-title p {
    color: rgba(255,255,255,0.8);
}

/* =========================================================
   CARDS - Modern Luxury Design
   ========================================================= */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(10, 79, 185, 0.1);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-image {
    transform: scale(1.08);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--primary-blue);
}

.card-text {
    color: var(--medium-gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.card-footer {
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

/* Image Card with Overlay */
.image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.image-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.image-card:hover img {
    transform: scale(1.1);
}

.image-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 22, 40, 0.95));
    padding: 32px;
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.image-card:hover .image-card-overlay {
    transform: translateY(0);
}

.image-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.image-card p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* =========================================================
   GRID LAYOUTS
   ========================================================= */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* =========================================================
   FEATURED ITEMS
   ========================================================= */

.feature-item {
    text-align: center;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-blue);
    transition: all 0.4s ease;
    display: inline-block;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-cyan);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.feature-text {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* =========================================================
   PROJECTS
   ========================================================= */

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.project-badge.live {
    background: var(--success);
    color: var(--white);
}

.project-badge.completed {
    background: var(--primary-blue);
    color: var(--white);
}

.project-badge.under-construction {
    background: var(--warning);
    color: var(--text-dark);
}

.project-info {
    padding: 20px;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.project-tech {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 15px;
}

/* =========================================================
   SERVICES - Modern Luxury Design
   ========================================================= */

.service-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(10, 79, 185, 0.2);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    font-size: 56px;
    margin-bottom: 24px;
    color: var(--primary-blue);
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(8deg);
    color: var(--accent-cyan);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--primary-blue);
}

.service-description {
    color: var(--medium-gray);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

/* Training Program Card with Image */
.training-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.training-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.training-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.training-card:hover .training-card-image {
    transform: scale(1.08);
}

.training-card-content {
    padding: 28px;
}

.training-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.training-card p {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.training-card .program-details {
    margin-bottom: 20px;
}

.training-card .btn {
    width: 100%;
    text-align: center;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 80px;
    color: var(--light-gray);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 700;
    color: var(--primary-dark);
}

.testimonial-position {
    font-size: 14px;
    color: var(--medium-gray);
}

/* =========================================================
   GALLERY
   ========================================================= */

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 16/9;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 20px;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translateY(20px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--medium-gray);
    font-size: 16px;
}

/* =========================================================
   PARTNERS
   ========================================================= */

.partners-section {
    background: var(--off-white);
    padding: 60px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-logo {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact-section {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 24px;
    color: var(--primary-light);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* =========================================================
   FOOTER - Modern Luxury Design
   ========================================================= */

.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: none;
    border: none;
}

.footer-logo {
    display: block;
    height: 70px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter:
        brightness(0) invert(1)
        drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px !important;
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    font-family: var(--font-heading);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(10, 79, 185, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* =========================================================
   RESPONSIVE DESIGN - Enhanced
   ========================================================= */

@media (max-width: 992px) {
    .navbar-nav {
        gap: 20px;
    }

    .navbar-nav a {
        font-size: 14px;
    }

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

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

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

    .hero-section h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-section h1 {
        font-size: 40px;
    }

    .hero-section p {
        font-size: 18px;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

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

    .projects-grid,
    .news-list,
    .gallery-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .news-filters,
    .gallery-filters,
    .project-filters {
        flex-wrap: wrap;
    }

    .news-filters .filter-btn,
    .gallery-filters .filter-btn,
    .project-filters .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .featured-news-grid {
        grid-template-columns: 1fr;
    }

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

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

    .svg-blob {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .navbar-brand {
        font-size: 22px;
    }

    .navbar-logo {
        height: 58px !important;
        max-height: 58px !important;
        max-width: 260px !important;
    }
}

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* =========================================================
   INTERNSHIP DEPARTMENT LAYOUTS
   ========================================================= */

.internship-department-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.internship-department-row:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.internship-department-row.reverse {
    direction: rtl;
}

.internship-department-row.reverse > * {
    direction: ltr;
}

.department-content h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.department-content > p {
    color: var(--dark-gray);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 16px;
}

.department-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.department-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.internship-department-row:hover .department-image img {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .internship-department-row {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }

    .internship-department-row.reverse {
        direction: ltr;
    }

    .department-image img {
        height: 250px;
    }
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pt-4 { padding-top: 40px; }

.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }
.pb-4 { padding-bottom: 40px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* =========================================================
   ADDITIONAL COMPONENTS
   ========================================================= */

.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 40px;
    font-size: 18px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--light-gray);
    transition: all 0.4s ease;
}

.team-card:hover .team-photo {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.team-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    color: var(--white);
    font-size: 48px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-heading);
}

.team-position {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.team-department {
    color: var(--medium-gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.team-bio {
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 1.6;
}

.cohort-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.cohort-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cohort-info {
    padding: 20px;
    background: var(--white);
}

.cohort-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.cohort-info p {
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.badge-student {
    background: var(--primary-light);
    color: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.step-card p {
    color: var(--medium-gray);
    font-size: 14px;
    line-height: 1.6;
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-details {
    list-style: none;
    padding: 0;
    margin: 15px 0 20px;
}

.program-details li {
    padding: 5px 0;
    color: var(--medium-gray);
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.program-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 24px;
    color: var(--primary-blue);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    padding: 10px 20px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* =========================================================
   PROJECTS - Clean Modern Layout (africaqs.com style)
   ========================================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 32px;
}

.project-card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.project-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.project-card-modern:hover::before {
    transform: scaleX(1);
}

.project-card-modern img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card-modern:hover img {
    transform: scale(1.05);
}

.project-badge-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.project-badge-modern.live {
    background: rgba(16, 185, 129, 0.9);
    color: var(--white);
}

.project-badge-modern.completed {
    background: rgba(10, 79, 185, 0.9);
    color: var(--white);
}

.project-badge-modern.student {
    background: rgba(139, 92, 246, 0.9);
    color: var(--white);
}

.project-badge-modern.in-progress {
    background: rgba(245, 158, 11, 0.9);
    color: var(--white);
}

.project-info-modern {
    padding: 28px;
}

.project-info-modern h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-card-modern:hover .project-info-modern h3 {
    color: var(--primary-blue);
}

.project-tech-modern {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech-modern span {
    background: var(--off-white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.project-description-modern {
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
}

.project-links-modern {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.project-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-filters .filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: var(--radius-md);
}

.project-detail-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.project-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.project-long-content {
    line-height: 1.8;
    margin-bottom: 30px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tech-tag {
    background: var(--off-white);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   NEWS - Modern Layout (kLab style)
   ========================================================= */

.featured-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-bottom: 50px;
}

.news-card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.news-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-card-modern.featured {
    border: 2px solid var(--primary-blue);
}

.news-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-card-modern:hover .news-card-image img {
    transform: scale(1.08);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.news-card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
    align-self: flex-start;
}

.news-card-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card-modern:hover .news-card-content h3 {
    color: var(--primary-blue);
}

.news-excerpt {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
}

.news-date {
    color: var(--medium-gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: var(--accent-cyan);
    gap: 10px;
}

.news-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.news-filters .filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: var(--radius-md);
}

.news-list-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

.news-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-excerpt-detail {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 30px;
    font-style: italic;
}

.news-body {
    line-height: 1.8;
    margin-bottom: 30px;
}

.news-actions {
    display: flex;
    gap: 15px;
}

/* =========================================================
   GALLERY - Modern Filtered Layout (matta.rw style)
   ========================================================= */

.gallery-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.gallery-filters .filter-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-right: 8px;
}

.gallery-filters .filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.gallery-filters .filter-btn:hover {
    transform: translateY(-2px);
}

.gallery-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.gallery-item-modern {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-item-modern img,
.gallery-item-modern video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item-modern:hover img,
.gallery-item-modern:hover video {
    transform: scale(1.1);
}

.gallery-overlay-modern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 22, 40, 0.95));
    padding: 24px;
    color: var(--white);
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.gallery-item-modern:hover .gallery-overlay-modern {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay-modern h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gallery-overlay-modern p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.gallery-overlay-modern .gallery-category {
    display: inline-block;
    background: var(--gradient-primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.gallery-placeholder-modern {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--medium-gray);
    font-size: 16px;
    flex-direction: column;
    gap: 12px;
}

.gallery-placeholder-modern i {
    font-size: 32px;
}

/* =========================================================
   TESTIMONIALS - Modern Layout
   ========================================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 32px;
}

.testimonial-card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-card-modern::before {
    content: '"';
    font-size: 80px;
    color: var(--light-gray);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.testimonial-content-modern {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.testimonial-text-modern {
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.testimonial-author-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.testimonial-avatar-modern {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-gray);
    transition: border-color 0.3s ease;
}

.testimonial-card-modern:hover .testimonial-avatar-modern {
    border-color: var(--primary-blue);
}

.testimonial-info-modern {
    flex: 1;
}

.testimonial-name-modern {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 18px;
    margin-bottom: 4px;
}

.testimonial-position-modern {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 4px;
}

.testimonial-institution-modern {
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 500;
}

.testimonial-rating-modern {
    color: var(--warning);
    font-size: 18px;
    margin-top: 12px;
}

.testimonial-video-wrapper-modern {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.testimonial-video-modern {
    width: 100%;
    border-radius: var(--radius-md);
}

/* =========================================================
   ENHANCED ANIMATIONS & INTERACTIONS
   ========================================================= */

/* Additional smooth animations for interactions */
.project-card-modern:hover,
.news-card-modern:hover,
.gallery-item-modern:hover,
.testimonial-card-modern:hover,
.internship-department-row:hover {
    animation: cardGlow 0.6s ease;
}

@keyframes cardGlow {
    0% {
        box-shadow: var(--shadow-md);
    }
    50% {
        box-shadow: 0 0 30px rgba(10, 79, 185, 0.3);
    }
    100% {
        box-shadow: var(--shadow-xl);
    }
}

/* Staggered animations for grid items */
.news-list-modern .news-card-modern:nth-child(1) { animation-delay: 0.1s; }
.news-list-modern .news-card-modern:nth-child(2) { animation-delay: 0.2s; }
.news-list-modern .news-card-modern:nth-child(3) { animation-delay: 0.3s; }
.news-list-modern .news-card-modern:nth-child(4) { animation-delay: 0.4s; }
.news-list-modern .news-card-modern:nth-child(5) { animation-delay: 0.5s; }
.news-list-modern .news-card-modern:nth-child(6) { animation-delay: 0.6s; }

.projects-grid .project-card-modern:nth-child(1) { animation-delay: 0.1s; }
.projects-grid .project-card-modern:nth-child(2) { animation-delay: 0.2s; }
.projects-grid .project-card-modern:nth-child(3) { animation-delay: 0.3s; }
.projects-grid .project-card-modern:nth-child(4) { animation-delay: 0.4s; }
.projects-grid .project-card-modern:nth-child(5) { animation-delay: 0.5s; }
.projects-grid .project-card-modern:nth-child(6) { animation-delay: 0.6s; }

.gallery-grid-modern .gallery-item-modern:nth-child(1) { animation-delay: 0.1s; }
.gallery-grid-modern .gallery-item-modern:nth-child(2) { animation-delay: 0.15s; }
.gallery-grid-modern .gallery-item-modern:nth-child(3) { animation-delay: 0.2s; }
.gallery-grid-modern .gallery-item-modern:nth-child(4) { animation-delay: 0.25s; }
.gallery-grid-modern .gallery-item-modern:nth-child(5) { animation-delay: 0.3s; }
.gallery-grid-modern .gallery-item-modern:nth-child(6) { animation-delay: 0.35s; }

.testimonials-grid .testimonial-card-modern:nth-child(1) { animation-delay: 0.1s; }
.testimonials-grid .testimonial-card-modern:nth-child(2) { animation-delay: 0.2s; }
.testimonials-grid .testimonial-card-modern:nth-child(3) { animation-delay: 0.3s; }

.internship-department-row:nth-child(1) { animation-delay: 0.1s; }
.internship-department-row:nth-child(2) { animation-delay: 0.2s; }
.internship-department-row:nth-child(3) { animation-delay: 0.3s; }
.internship-department-row:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced button animations */
.btn-primary:hover,
.btn-secondary:hover,
.btn-gradient:hover {
    animation: buttonPulse 0.4s ease;
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Image hover animations */
img {
    transition: transform 0.3s ease;
}

.news-card-modern:hover img,
.project-card-modern:hover img,
.gallery-item-modern:hover img,
.department-image:hover img {
    transform: scale(1.08);
}

/* Smooth scroll behavior enhancements */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img[src]:not([src=""]) {
    animation: imageFadeIn 0.5s ease;
}

@keyframes imageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Text selection styling */
::selection {
    background: var(--primary-blue);
    color: var(--white);
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}


/* =========================================================
   ABOUT PAGE ADDITIONS
   Append this block to the end of your existing stylesheet.
   Reuses the CSS variables already defined in :root — no theme
   duplication, just new components + animation triggers.
   ========================================================= */

/* ---------- Scroll-reveal base states ----------
   .fade-in-up / .fade-in-left / .fade-in-right / .zoom-in already
   exist in your stylesheet with a hidden starting state and a
   ".visible" end state. The about.php page toggles ".visible" via
   IntersectionObserver — nothing else to wire up. Stagger classes
   (.stagger-1 .. .stagger-6) also already exist and are reused here. */

/* ---------- Hero: tech circuit background ---------- */
.hero-section--about {
    padding-top: 160px;
}

.tech-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
}

.tech-grid-bg svg {
    width: 100%;
    height: 100%;
}

.circuit-path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: drawCircuit 3.2s ease-out forwards;
}

.circuit-path:nth-of-type(2) { animation-delay: 0.3s; }
.circuit-path:nth-of-type(3) { animation-delay: 0.6s; }
.circuit-path:nth-of-type(4) { animation-delay: 0.9s; }

@keyframes drawCircuit {
    to { stroke-dashoffset: 0; }
}

.circuit-nodes circle {
    animation: nodePulse 2.4s ease-in-out infinite;
    transform-origin: center;
}

.circuit-nodes circle:nth-child(2n) { animation-delay: 0.6s; }
.circuit-nodes circle:nth-child(3n) { animation-delay: 1.1s; }

@keyframes nodePulse {
    0%, 100% { opacity: 0.5; r: 4; }
    50% { opacity: 1; r: 6; }
}

.hero-kicker {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    margin-bottom: 18px;
    animation: slideUp 0.8s ease-out;
}

/* ---------- Image frame accent ---------- */
.about-image-frame {
    position: relative;
}

.frame-accent {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 70px;
    height: 70px;
    opacity: 0.8;
    pointer-events: none;
}

/* ---------- Mission/Vision icon wrapper ---------- */
.mv-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* ---------- Core values grid ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    text-align: center;
    color: var(--medium-gray);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-blue);
}

.value-icon {
    color: var(--primary-blue);
    margin-bottom: 14px;
    transition: transform 0.4s ease, color 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.12) rotate(-4deg);
    color: var(--accent-cyan);
}

.value-card h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Stats band ---------- */
.stats-band {
    position: relative;
    background: var(--gradient-dark);
    color: var(--white);
    padding: 70px 0;
    overflow: hidden;
}

.stats-decoration {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    pointer-events: none;
}

.stats-decoration svg {
    width: 100%;
    height: 100%;
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    margin-top: 8px;
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.3px;
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 28px;
    border-left: 2px solid var(--light-gray);
}

.timeline-item {
    position: relative;
    padding: 0 0 40px 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--light-gray);
}

.timeline-year {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: var(--primary-blue);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.timeline-content p {
    color: var(--medium-gray);
    line-height: 1.6;
    font-size: 15px;
}

/* ---------- Feature card SVG icons (What We Do) ---------- */
.feature-icon-svg {
    color: var(--primary-blue);
    margin-bottom: 18px;
    transition: transform 0.4s ease, color 0.3s ease;
}

.feature-card:hover .feature-icon-svg {
    transform: scale(1.15) rotate(6deg);
    color: var(--accent-cyan);
}

/* ---------- Why choose us ---------- */
.whyus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.whyus-card {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.whyus-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.whyus-number {
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--light-gray);
    z-index: 0;
}

.whyus-card h4 {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.whyus-card p {
    position: relative;
    z-index: 1;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    background: var(--gradient-dark);
    color: var(--white);
    padding: 90px 0;
    overflow: hidden;
    text-align: center;
}

.cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-decoration svg {
    width: 100%;
    height: 100%;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.25;
}

.cta-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

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

/* =========================================================
   MEDIA SLIDER (About, Internship, shared)
   ========================================================= */

.ctw-media-slider-wrap {
    margin: 24px 0 40px;
}

.ctw-media-slider-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark-gray, #1e293b);
}

.ctw-media-slider-track-outer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctw-media-slider-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 16px;
    flex: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ctw-media-slider-track::-webkit-scrollbar {
    display: none;
}

.ctw-media-slide {
    flex: 0 0 min(320px, 78vw);
    scroll-snap-align: start;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    background: var(--white, #fff);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.ctw-media-slide img,
.ctw-media-slide-video video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #000;
}

.ctw-media-slide-caption {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray, #1e293b);
    margin: 0;
}

.ctw-media-slider-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--white, #fff);
    color: var(--primary-blue, #0a4fb9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
    transition: all 0.25s ease;
}

.ctw-media-slider-btn:hover {
    background: var(--primary-blue, #0a4fb9);
    color: #fff;
    border-color: transparent;
}

.ctw-media-slider-btn svg {
    width: 20px;
    height: 20px;
}

/* Partner logo gallery on About page */
.partners-logo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    align-items: center;
}

.partner-logo-card {
    background: var(--white, #fff);
    border-radius: var(--radius-md, 12px);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.1));
}

.partner-logo-card img {
    max-width: 120px;
    max-height: 70px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
}

.partner-logo-card span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--medium-gray, #64748b);
}

@media (max-width: 768px) {
    .ctw-media-slider-btn {
        display: none;
    }

    .ctw-media-slide {
        flex-basis: 85vw;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 34px;
    }

    .cta-content h2 {
        font-size: 26px;
    }
}
/* =========================================================
   SHARED HERO TYPEWRITER
   ========================================================= */
.ctw-hero-type-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 1.2em;
    line-height: 1.12;
}

.ctw-hero-type-title .ctw-hero-typewriter {
    display: inline;
    font-weight: inherit;
    color: inherit;
}

.ctw-hero-type-title .ctw-hero-typed-accent {
    background: linear-gradient(120deg, #67e8f9 0%, #38bdf8 40%, #a78bfa 75%, #67e8f9 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: ctw-hero-type-gradient 4.5s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(103, 232, 249, 0.28));
}

.ctw-hero-type-title .ctw-hero-type-caret {
    display: inline-block;
    width: 0.08em;
    height: 0.9em;
    margin-left: 0.1em;
    border-radius: 2px;
    background: linear-gradient(180deg, #a5f3fc, #67e8f9);
    box-shadow: 0 0 14px rgba(103, 232, 249, 0.55);
    animation: ctw-hero-type-caret-blink 0.85s steps(1) infinite;
    vertical-align: -0.08em;
    flex-shrink: 0;
}

.ctw-hero-type-title.is-typing .ctw-hero-type-caret {
    animation: none;
    opacity: 1;
}

@keyframes ctw-hero-type-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ctw-hero-type-caret-blink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ctw-hero-type-title .ctw-hero-type-caret { animation: none; opacity: 1; }
    .ctw-hero-type-title .ctw-hero-typed-accent { animation: none; }
}
