:root {
    --primary-color: #0059ff;
    --secondary-color: #109fff;
    --hover-color: #0043be;
    --text-light: #f2f2f2;
    --text-dark: #333;
    --bg-light: #f9f9f9;
    --bg-gray: #efefef;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Modern, robust font stack */
}

body {
    margin: 0;
    font-family: var(--font-family);
    width: 100%;
    margin: 0 auto;
    color: var(--text-dark);
}

* {
    box-sizing: border-box;
}

/* Global Content Container */
.page-container {
    width: 70%;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-inner-container {
    width: 70%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    z-index: 2;
}

/* --- Header & Logo --- */
.header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.header::after {
    content: "";
    display: table;
    clear: both;
}

.Logo,
.Details {
    float: left;
    padding: 1%;
}

.Logo {
    width: 315px;
    height: auto;
    text-align: center;
}

.LogoPict {
    width: 100%;
    /* height: 75%; Removed fixed height for better aspect ratio control */
    background-color: transparent;
    display: flex;
    /* Flexbox for centering if no image */
    justify-content: center;
    align-items: center;
    min-height: 150px;
    /* Min height to maintain shape */
    margin: 0 auto;
}

.LogoName {
    width: 100%;
    margin-top: 10px;
}

.Details {
    width: calc(100% - 315px - 4%);
    /* Responsive width calculation */
    text-align: left;
    padding-left: 20px;
}

/* Responsive Logo/Details */
@media screen and (max-width: 768px) {

    .Logo,
    .Details {
        width: 100%;
        float: none;
        text-align: center;
    }

    .Details {
        padding-left: 1%;
    }

    .Logo {
        margin: 0 auto;
    }
}

/* --- Navigation Bar --- */
.topnav {
    background-color: var(--primary-color);
    overflow: visible;
    /* Changed to visible so dropdown isn't clipped */
    position: sticky;
    /* Sticky navbar for robustness */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on small screens if needed, but we use media queries */
    justify-content: center;
    align-items: stretch;
}

.topnav a {
    float: left;
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 16px;
    /* Slightly smaller for better fit */
    transition: background-color 0.3s;
}

.topnav a:hover,
.dropdown:hover .dropbtn,
.topnav a.active {
    background-color: var(--hover-color);
    color: white;
}

.topnav .icon {
    display: none;
}

/* --- Language Dropdown --- */
.dropdown {
    float: left;
    overflow: visible;
    /* Changed from hidden to visible for smooth dropdown */
    /* border-left: 1px solid rgba(255, 255, 255, 0.1); Removed as requested */
    /* Separator removed */
    display: flex;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 8px;
    /* Space between flag and arrow */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    /* Increased width */
    white-space: nowrap;
    /* Prevent wrapping */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 4px;
    top: 100%;
    /* Position below button */
}

.dropdown-content a {
    float: none;
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Responsive Nav */
@media screen and (max-width: 900px) {

    /* Trigger hamburger earlier for cleaner look */
    .topnav a:not(:first-child),
    .dropdown .dropbtn {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
        background-color: var(--primary-color);
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .topnav.responsive .dropdown {
        float: none;
        width: 100%;
    }

    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }

    .topnav.responsive .dropdown-content {
        position: relative;
        width: 100%;
        box-shadow: none;
        background-color: #eee;
    }
}

/* --- Layout Columns --- */
.row {
    display: flex;
    flex-wrap: wrap;
    /* Flex wrap for responsiveness */
    margin: 0;
}

.column {
    padding: 10px;
    height: auto;
}

.column.side {
    flex: 20%;
    max-width: 20%;
}

.column.middle {
    flex: 60%;
    max-width: 60%;
    background-color: var(--bg-gray);
    padding: 20px;
    min-height: 490px;
    /* Matched to carousel image height (450px) + approx padding/margins */
}

/* Carousel/Image styling */
.carousel-item img {
    height: 450px;
    /* Reduced to avoid scrolling */
    min-height: 300px;
    object-fit: contain;
    width: 100%;
    border-radius: 4px;
}

/* Responsive Columns */
@media screen and (max-width: 768px) {

    .column.side,
    .column.middle {
        flex: 100%;
        max-width: 100%;
    }

    /* Removed order properties to restore natural HTML order: Side (Left) -> Middle -> Side (Right) */
}

/* --- Footer --- */
.footer {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: var(--primary-color);
    /* Restored to Blue theme */
    padding: 20px 0;
    color: white;
}

.space {
    flex: 1;
    min-width: 200px;
    /* Minimum width for robustness */
    margin: 10px;
    padding: 20px;
    height: auto;
    background-color: var(--secondary-color);
    /* Lighter blue for footer items */
    text-decoration: none;
    color: white;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.2s, background-color 0.2s;
}

.space:hover {
    transform: translateY(-5px);
    background-color: var(--hover-color);
}

.space h3 {
    margin: 0;
    font-size: 1.2rem;
}

@media screen and (max-width: 600px) {
    .footer {
        flex-direction: column;
    }

    .space {
        width: 90%;
        margin: 10px auto;
    }

    .space {
        width: 90%;
        margin: 10px auto;
    }
}

/* --- Training & Certification Redesign --- */
.hero-container {
    position: relative;
    width: 100%;
    height: 60vh;
    /* Adjust based on image aspect ratio requirement */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    /* Align text to bottom */
}

.hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    width: 100%;
    padding: 40px;
    color: white;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: bold;
}

.hero-overlay p {
    font-size: 1.2rem;
    margin: 10px 0 0;
}

.split-section {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.split-box {
    flex: 1;
    min-width: 300px;
    /* Collapse on mobile */
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align text bottom-left like mockup? Or center? Mockup shows text bottom left/center with icon */
    padding: 40px;
    color: white;
}

/* Specific styling to match the mockup */
.split-box.blue {
    background-color: #007bff;
    /* Bright blue like the mockup */
}

.split-box.yellow {
    background-color: #ffd700;
    /* Yellow */
    color: white;
    /* Or black depending on contrast, mockup looks like white text on yellow */
}

.split-box h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.split-box p {
    font-size: 1rem;
}

@media screen and (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 2rem;
    }

    .split-box {
        flex: 100%;
    }
}

/* --- R&D Page Redesign --- */

/* R&D Hero Section */
.rnd-hero {
    position: relative;
    width: 100%;
    /* Keep aspect ratio or min-height */
    min-height: 600px;
    /* Adjust as needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    /* Text at bottom */
    color: white;
}

.rnd-hero-overlay {
    background: linear-gradient(to top, #002366, transparent);
    /* Seamless transition */
    width: 100%;
    padding: 40px 5%;
    /* 5% padding sides */
}

.rnd-hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.rnd-hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 1200px;
    margin-bottom: 20px;
    text-align: justify;
}

/* R&D Project Grid */
.projects-section {
    padding: 40px 5%;
    background-color: #002366;
    /* Deep blue background based on image */
    color: white;
}

.projects-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns (Design 2 Default) */
    gap: 20px;
}

/* ... skipped ... */

/* R&D Responsive */
@media screen and (max-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .rnd-hero-title {
        font-size: 2rem;
    }

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

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

    .rnd-hero {
        min-height: 500px;
    }
}

/* --- MIA Master Button System --- */
/* Gunakan class ini agar desain tombol terpusat (Mirroring) */
.mia-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    /* Pusat pengaturan kelengkungan sudut */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--font-family);
    line-height: 1.5;
}

/* Style Utama (Primary) - Biru */
.mia-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.mia-btn-primary:hover {
    background-color: var(--hover-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    color: white;
}

/* Style Sekunder (Outline) - Border Biru */
.mia-btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mia-btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Style Aksi (Call to Action) - Kuning/Emas */
.mia-btn-cta {
    background-color: #FFD700;
    color: #333;
}

.mia-btn-cta:hover {
    background-color: #ffc107;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

/* --- New Master Card Design (Unified) --- */
.course-card {
    border-radius: 15px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
    /* Match new size */
    background-color: white;
    /* Width provided by container (flex basis) */
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Card Categories/Colors */
.card-preschool {
    background-color: #FFC107;
}

.card-element {
    background-color: #FF4444;
}

.card-junior {
    background-color: #3344AA;
}

.card-senior {
    background-color: #888888;
}

.card-image-area {
    background-color: white;
    border-radius: 10px;
    height: 150px;
    width: 100%;
    margin-bottom: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-title-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: black;
    line-height: 1.2;
}

.card-desc-text {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price-text {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 5px;
    z-index: 1;
}

/* Link covering the whole card */
.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* --- Design 2: Blue Bottom Card (Visual Reference) --- */
.card-design-2 {
    display: flex;
    flex-direction: column;
    border: 1px solid #109fff;
    background-color: white;
    /* Base white */
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 350px;
    /* Taller */
    position: relative;
    border-radius: 10px;
}

.card-design-2:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-design-2 .card-image-area {
    width: 100%;
    /* Fixed height for image (The "Big Box") */
    height: 240px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #109fff;
    margin: 0;
    border-radius: 0;
    flex-shrink: 0;
}

.card-design-2 .card-content {
    /* The "Small Box" - Light Blue */
    background-color: #109fff;
    color: white;
    padding: 15px;
    flex: 1;
    /* Fills remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Title at top */
    text-align: left;
    position: relative;
    /* For absolute positioning of date */
}

.card-design-2 .card-title-text {
    font-family: 'Humnst777 Cn BT', sans-serif;
    /* Requested Font */
    font-size: 1.4rem;
    /* Adjusted for this font */
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    line-height: 1.2;
}

.card-design-2 .card-desc-text {
    font-family: 'Humnst777 Cn BT', sans-serif;
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    /* Space for date */
}

.card-design-2 .card-price-text {
    /* "Date" at bottom left */
    position: absolute;
    bottom: 10px;
    left: 15px;
    /* Left aligned */
    right: auto;
    /* Reset right */
    font-family: 'Humnst777 Cn BT', sans-serif;
    font-size: 1rem;
    color: #e0e0e0;
    background: transparent;
    padding: 0;
    font-weight: normal;
}

/* --- New Footer Styles (Adapted from MIA Academy) --- */
/* Utility Classes */
.fw-section {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #0c1d52;
    /* Ensure full width background */
}

.content-container {
    width: 100%;
    max-width: 95%;
    /* Increase width as requested */
}

/* Footer Section */
.footer-section {
    background-color: #0c1d52;
    border-top: 1px solid #D9D9D9;
    background-color: #0c1d52;
    border-top: 1px solid #D9D9D9;
    color: #FFFFFF;
    display: flex;
    /* Ensure flex behavior */
    flex-direction: column;
    /* Stack children vertically */
    align-items: center;
    /* Center children horizontally */
}

.footer-copyright {
    width: 100%;
    max-width: 95%;
    /* Match content container */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px 0;
    margin-top: 20px;
    font-size: 14px;
    font-family: 'Source Sans 3', sans-serif;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer {
    display: flex;
    padding: 32px 0;
    width: 70%;
    margin: 0 auto;
    flex-direction: row;
    justify-content: space-between;
}

.footer-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: auto;
    min-width: 250px;
    max-width: 350px;
    gap: 0px;
    flex-wrap: wrap;
    color: white;
}

.footer-logo-addr {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    flex: none;
    margin-bottom: 24px;
}

.logo-placeholder-box {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    flex-shrink: 0;
    margin-right: 20px;
    /* Added spacing */
}

.footer-address {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    line-height: 160%;
    max-width: 400px;
}

.footer-address p {
    margin: 0 0 16px 0;
}

.footer-contact h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.footer-contact p {
    margin: 0 0 16px 0;
}

.footer-socials {
    align-items: flex-start;
    gap: 8px;
    border-left: none;
    padding-left: 0;
    padding-bottom: 20px;
    margin-top: 24px;
}

.find-us-title {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    /* Added spacing */
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon-img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

.social-icon-img:last-child {
    margin-right: 0;
}

.social-icon-img:hover {
    transform: scale(1.1);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    /* 4 columns */
    /* Tight fit columns */
    /* Equal columns */
    gap: 60px;
    /* Tighter gap matching photo 1 */
    /* Reduced from 20px */
    flex: none;
    /* Do not expand to fill */
    width: auto;
    /* Take up more space */
    justify-content: flex-start;
}

.footer-col h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 12px 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 4px;
}

.footer-col ul li a {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-col ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media screen and (max-width: 900px) {
    .site-footer {
        flex-direction: column;
        /* Stack vertically: Info top, Links bottom */
        align-items: flex-start;
        /* Left align */
        gap: 40px;
    }

    .footer-links-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns as requested */
        text-align: left;
    }

    .footer-top {
        width: 100%;
        align-items: flex-start;
        /* Left align */
        text-align: left;
    }

    .footer-logo-addr {
        align-items: flex-start;
        /* Left align */
    }

    .footer-address {
        text-align: left;
    }
}

@media screen and (max-width: 600px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Homepage Enhancements */
.text-blue {
    color: #109fff !important;
    /* Secondary Blue */
}

.btn-blue {
    display: inline-block;
    background-color: #109fff;
    color: #fff;
    /* White text on blue */
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn-blue:hover {
    background-color: #007bff;
    color: #fff;
}

.overview-header-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    /* Gap between icon and title */
    margin-bottom: 16px;
}

.custom-arrow-icon-circle {
    width: 32px;
    /* Smaller size (as requested "perkecil") */
    height: 32px;
    flex: none;
    border: 3px solid #109fff;
    /* Blue border */
    border-radius: 50%;
    position: relative;
    /* Removed margin-right as we use gap in wrapper now */
}

.custom-arrow-icon-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    width: 10px;
    /* Smaller arrow */
    height: 10px;
    border-right: 3px solid #109fff;
    /* Blue arrow */
    border-top: 3px solid #109fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.vision-mission-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Typography Update */
.helvetica-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

/* --- Services Section (Layanan Kami) --- */
.services-section-header {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #109fff;
    margin-top: 32px;
    /* Balanced Gap */
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns to center remaining items */
    /* 4 columns */
    gap: 16px;
    width: 100%;
}

.service-card {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card-image {
    width: 100%;
    height: 100%;
    /* Fixed 100% height - NO ZOOM/RESIZE on hover */
    background-size: cover;
    background-position: center;
    transition: none;
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    /* Default 30% overlay */
    background-color: #0c1d52;
    border-top: 4px solid #109fff;
    padding: 16px 24px;
    /* Added side padding */
    box-sizing: border-box;
    transition: height 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center title vertically */
    align-items: flex-start;
    /* Left align horizontally */
    overflow: hidden;
}

.service-card-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 30px;
    /* Increased by ~50% (20px -> 30px) */
    line-height: 1.1;
    color: #fff;
    margin: 0;
    text-align: left;
    /* Left align text */
    white-space: normal;
    /* Allow wrapping */
    width: 100%;
}

.service-card-desc {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    max-height: 0;
    /* REMOVE FROM FLOW */
    overflow: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
    margin-top: 0;
    /* NO MARGIN */
    text-align: left;
    /* Left align desc */
}

/* Hover Effects */
.service-card:hover .service-card-content {
    height: 70%;
    /* Expand overlay up */
    justify-content: flex-start;
    /* Align top */
    padding-top: 24px;
}

.service-card:hover .service-card-desc {
    opacity: 1;
    max-height: 200px;
    /* Expand to show text */
    transform: translateY(0);
    margin-top: 10px;
    /* Add margin only when visible */
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for laptops/tablets */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* 1 column for mobile */
    }
}

/* Card Specific Colors */
.service-card.card-rc .service-card-content {
    border-top-color: #0055aa;
    /* Dark Blue */
}

.service-card.card-sc .service-card-content {
    border-top-color: #109fff;
    /* Medium Blue */
}

.service-card.card-academy .service-card-content {
    border-top-color: #a8dcff;
    /* Light Blue (Default) */
}

.service-card.card-robotic .service-card-content {
    border-top-color: #f9a825;
    /* Yellow/Amber */
}

/* --- NEW FOOTER STYLES (Consolidated) --- */
/* Matches MIA_Academy_home.html layout */

.footer-section {
    background-color: #0c1d52;
    border-top: 1px solid #D9D9D9;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.site-footer {
    width: 70%;
    max-width: none;
    padding: 32px 0;
    margin: 0 auto;
}

.footer-copyright {
    width: 100%;
    max-width: 95%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px 0;
    margin-top: 20px;
    font-size: 14px;
    font-family: 'Source Sans 3', sans-serif;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Top: Logo, Address, Socials */
.footer-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 350px;
    width: auto;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-logo-addr {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    flex: none;
}

.footer-address {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    line-height: 160%;
    max-width: 400px;
}

.footer-address p {
    margin: 0 0 16px 0;
}

.footer-contact h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.footer-contact p {
    margin: 0 0 16px 0;
}

.footer-socials {
    align-items: flex-start;
    gap: 8px;
    border-left: none;
    padding-left: 0;
    padding-bottom: 20px;
    margin-top: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon-white {
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    border-radius: 4px;
}

/* Footer Bottom: Links Columns */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 60px;
    min-width: 750px;
    width: auto;
    justify-content: flex-start;
}

.footer-col h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 12px 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 4px;
}

.footer-col ul li a {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-col ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Responsive Media Queries for Footer --- */
@media (max-width: 768px) {
    .site-footer {
        width: 100%;
        padding: 32px 16px;
    }

    .footer-links-grid {
        display: flex;
        flex-direction: column;
        min-width: 0;
        width: 100%;
        gap: 32px;
    }

    .footer-top {
        min-width: 0;
        width: 100%;
    }
}