/* Proper alignment for section header and description */
.aligned-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 70px;
}

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

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-wrapper {
    flex-wrap: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-desktop a {
    padding: 0 0.5rem;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu-btn {
    flex: 0 0 auto;
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-mobile {
    display: none !important;
}
@media (max-width: 768px) {
    .nav-desktop {
        display: flex !important;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        justify-content: flex-start;
    }
    .nav-desktop a {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    .logo {
        margin-right: 1rem;
    }
    .nav-wrapper {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    .mobile-menu-btn {
        display: none !important;
    }
}

.nav-mobile a {
    text-decoration: none;
    color: #374151;
    padding: 0.5rem 0;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #134e4a 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    width: 33%;
    height: 100%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    align-items: stretch;
    transform: skewX(12deg);
    transform-origin: top right;
    display: flex;
    flex-direction: column;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fed7aa;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #a7f3d0;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover {
    background: white;
    color: #0d9488;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #0d9488;
}

.hero-image {
    position: relative;
}

/* Image Carousel Styles */
.image-carousel {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 5rem; /* Increased right padding to move right button left */
    pointer-events: auto;
}

.carousel-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    pointer-events: auto;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.service-header {
    padding: 1.5rem 2rem;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.service-header.industry {
    background: #f97316;
}

.service-header.education {
    background: #0d9488;
}

.service-list {
    padding: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #f9fafb;
    transform: translateX(10px);
}

.service-item i {
    color: #0d9488;
    font-size: 1.2rem;
}

.service-item span {
    color: #374151;
    font-weight: 500;
}

/* Laboratories Section */
.laboratories {
    padding: 80px 0;
    background: white;
}

.lab-section {
    margin-bottom: 0;
}

.lab-header {
    padding: 1.5rem 2rem;      /* Same as .service-header */
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 16px 16px 0 0;
    min-height: unset;         /* Remove if previously set */
    display: block;            /* Match .service-header */
    box-sizing: border-box;    /* Ensure padding is included in width */
}

.lab-header.automation {
    background: #0d9488;
}

.lab-header.ev {
    background: #f97316;
}

.lab-header.programs {
    background: #0d9488;
    padding: 1.5rem 2rem; /* ↓ reduce top/bottom padding */
    border-radius: 16px 16px 0 0;
}

.lab-header h2 {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lab-content {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 0 0 16px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Fix for the 3rd block layout - Force single column layout */
.lab-content.programs-content {
    display: block !important;
    grid-template-columns: none !important;
}

.lab-text p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.feature {
    color: #374151;
    font-size: 0.9rem;
}

.ev-features .feature {
    margin-bottom: 0.5rem;
}

.lab-images .main-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.small-images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.small-images img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.program-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    position: relative;
    transition: transform 0.3s ease;
}

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

.program-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0d9488;
    border-radius: 4px 0 0 4px;
}

.program-highlights {
    background: #f97316;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 0;
    margin-top: 0.8rem;
}

.program-highlights h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.highlight-column p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Programs Section */
.programs {
    padding: 0px 0 0px 0;
    background: #f9fafb;
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.program-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-header {
    padding: 1.5rem 2rem;
    color: white;
    font-weight: bold;
}

.program-header.internship {
    background: #f97316;
}

.program-header.placement {
    background: #0d9488;
}

.program-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.program-content {
    padding: 2rem;
}

.program-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.program-content img:hover {
    transform: scale(1.05);
}

.program-content p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.program-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.program-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
}

.program-features i {
    color: #0d9488;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background: #0d9488;
    color: white;
}

.partners .section-header h2 {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.partners .section-header p {
    color: #a7f3d0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    background: white;
    color: #374151;
    padding: 2rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.partner-logo:hover {
    transform: translateY(-5px);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: rgb(9, 15, 53);
    color: rgb(244, 235, 235);
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.2rem;
    color: #dcecec;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: #1f2937;
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f97316;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    color: #0d9488;
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

.info-item strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: #d1d5db;
    margin: 0;
}

.cta-section {
    background: linear-gradient(135deg, #0d9488, #f97316);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.cta-section h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-cta {
    background: white;
    color: #111827;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: whitesmoke;
    color: #0c131f;
    padding: 2rem 0;
    border-top: 1px solid #374151;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    filter: brightness(0.8);
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.tagline {
    font-size: 0.8rem !important;
    color: #6b7280;
}

/* Prevent vertical (portrait) viewing: show overlay message and hide main content */

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    .header {
        height: 56px;
        padding: 0 8px;
    }
    .nav-wrapper {
        padding: 0.3rem 0.5rem;
        gap: 0.5rem;
    }
    .logo-image {
        height: 36px;
    }
    .nav-desktop {
        display: none;
    }
    .nav-mobile {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem 0;
        border-top: 1px solid #e5e7eb;
        align-items: center;
        justify-content: flex-start;
    }
    .nav-mobile a {
        font-size: 0.95rem;
        padding: 0 0.3rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text h2 {
        font-size: 1.4rem;
    }
    .services-grid,
    .lab-content,
    .programs-grid,
    .contact-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .service-header,
    .lab-header,
    .program-header {
        font-size: 1rem;
        padding: 1rem;
    }
    .service-list,
    .program-content {
        padding: 1rem;
    }
    .btn,
    .btn-cta {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    .carousel-container {
        height: 180px;
    }
    .carousel-nav {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
    }
    .lab-images .main-image,
    .program-content img {
        height: 120px;
    }
    .small-images {
        grid-template-columns: 1fr 1fr;
    }
    .partner-logo img {
        max-width: 90px;
        max-height: 40px;
        width: 90px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 44px;
        padding: 0 4px;
    }
    .nav-wrapper {
        padding: 0.1rem 0.2rem;
        gap: 0.2rem;
    }
    .logo-image {
        height: 28px;
    }
    .nav-mobile {
        gap: 0.2rem;
        padding: 0.2rem 0;
    }
    .nav-mobile a {
        font-size: 0.85rem;
        padding: 0 0.15rem;
    }
    .container {
        padding: 0 5px;
    }
    .hero {
        padding: 60px 0 30px;
    }
    .hero-text h1 {
        font-size: 1.5rem;
    }
    .hero-text h2 {
        font-size: 1rem;
    }
    .section-header h2,
    .lab-header h2,
    .contact-header h2,
    .cta-section h3 {
        font-size: 1.2rem;
    }
    .features-grid,
    .small-images {
        grid-template-columns: 1fr;
    }
    .image-carousel {
        padding: 0.5rem;
    }
    .carousel-container {
        height: 120px;
    }
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .partner-logo img {
        max-width: 70px;
        max-height: 30px;
        width: 70px;
        height: 30px;
    }
}
@media (max-width: 768px) {
}
@media (max-width: 480px) {
}