/* --- Global Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Slideshow --- */
.slideshow-container { 
    width: 100%; 
    position: relative; 
    background-color: #000; 
    overflow: hidden;
}

/* Slide Images */
.mySlides { 
    display: none; 
    background-color: #000; /* Keeps a black background if the image is narrow */
}

.mySlides img { 
    width: 100%; 
    height: auto; 
    display: block; 
    max-height: 70vh; 
    /* CHANGE THIS FROM 'cover' TO 'contain' */
    object-fit: contain; 
}

/* Fading animation */
.fade { 
    animation-name: fade; 
    animation-duration: 1s; 
}
@keyframes fade { 
    from {opacity: 0.4} 
    to {opacity: 1} 
}

/* Arrows */
.prev, .next {
    cursor: pointer; 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    padding: 15px; 
    color: white; 
    font-weight: 900; 
    font-size: 24px;
    background-color: rgba(0,0,0,0.4); 
    text-decoration: none; 
    border-radius: 5px;
    z-index: 10;
    transition: background 0.3s ease;
}
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.7); }
.next { right: 0; }
.prev { left: 0; }

/* Dots */
.dot-container {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
    z-index: 10;
}
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active { background-color: #fff; }

@media (max-width: 991px) {
    .dot { width: 10px; height: 10px; margin: 0 4px; }
    .prev, .next { padding: 10px; font-size: 20px; }
}


/* --- Slogan --- */
.slogan-banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/banner1.jfif') no-repeat center center/cover;
    height: 100px; display: flex; justify-content: center; align-items: center;
}
.slogan-banner p { font-size: clamp(16px, 4vw, 24px); font-weight: 700; color: #fff; text-align: center; }

/* --- Sections --- */
.prod-section { padding: 50px 0; background-color: #cfcfcf; }
.container-wrapper { width: 92%; max-width: 1200px; margin: 0 auto; }

/* --- TVET & STEAM Cards --- */
.main-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 40px; }
.info-card { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.info-card-img { height: 220px; padding: 20px; display: flex; align-items: center; justify-content: center; }
.info-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.info-card-content { padding: 25px; text-align: center; }

.btn-primary {
    display: inline-block; padding: 10px 25px; border-radius: 25px;
    background: linear-gradient(120deg, #65a0ff, #77d4ff);
    color: #fff !important; text-decoration: none; font-weight: 600;
}

/* --- AI Section (Hover & Tap Logic) --- */
.ai-card-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px; margin-top: 40px; }
.ai-feature-card { 
    background: #fff; border-radius: 20px; padding: 20px; display: flex; 
    align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease; cursor: pointer;
}
.ai-feature-card img { max-width: 100%; height: auto; }

.center-highlight { 
    background: linear-gradient(120deg, #65a0ff, #77d4ff); 
    color: #fff; text-align: center; padding: 30px; border-radius: 20px;
    display: flex; flex-direction: column; justify-content: center; min-height: 220px;
}

/* Hide text by default */
.text-left, .text-right { display: none; opacity: 0; }

/* This class is added by JavaScript on tap/hover */
.show-text { display: block !important; opacity: 1 !important; animation: fadeIn 0.4s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Our Team (Transparent Background) --- */
.company-overview-section {
    position: relative; width: 100%; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
}
.company-overview-section::before {
    content: ''; position: absolute; inset: 0;
    background: url('../img/index/GOTT_1.jpeg') center/cover no-repeat;
    filter: brightness(50%); z-index: 1;
}
.company-overview-message {
    position: relative; z-index: 2; width: 90%; max-width: 900px;
    background: rgba(0, 0, 0, 0.2); padding: 40px; border-radius: 30px;
    color: #fff; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); text-align: center;
}
.company-overview-message h2 { font-size: 45px; margin-bottom: 20px; }
.company-overview-message p { font-size: 18px; line-height: 1.8; text-align: justify; }

/* --- Partners --- */
.coorporate-company { padding: 60px 0; background: #fff; text-align: center; }
.coorporate-company-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 0 20px; }
.company-logo { width: 100%; max-width: 160px; height: 100px; background-size: contain; background-repeat: no-repeat; background-position: center; }

.logo1 { background-image: url('../img/index/partners/UTM.png'); }
.logo2 { background-image: url('../img/index/partners/UTHM.png'); }
.logo3 { background-image: url('../img/index/partners/UMT.png'); }
.logo4 { background-image: url('../img/index/partners/UNIMAP.jfif'); }
.logo5 { background-image: url('../img/index/partners/intel1.png'); }
.logo6 { background-image: url('../img/index/partners/88 CAPTAINS.png'); }
.logo7 { background-image: url('../img/index/partners/KK.png'); }
.logo8 { background-image: url('../img/index/partners/UM.png'); }

/* --- Mobile Fixes --- */
@media (max-width: 991px) {
    .ai-card-row { grid-template-columns: 1fr; gap: 15px; }
    .center-highlight { order: 2; min-height: 150px; }
    #ai-left { order: 1; }
    #ai-right { order: 3; }
    .main-card-grid { grid-template-columns: 1fr; }
    .coorporate-company-row { grid-template-columns: repeat(2, 1fr); }
    .company-overview-message h2 { font-size: 28px; }
    .company-overview-message p { font-size: 14px; text-align: center; }
}

/* --- Dots for slideshow --- */
.dot-container {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

@media (max-width: 991px) {
    .dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}
