/* ===================== */
/* DIMANDAL E-Learning    */
/* Professional Design    */
/* ===================== */

/* ===== ROOT VARIABLES ===== */
:root {
    /* Primary Colors - E-learning Theme */
    --primary: #5B5BFF;      /* Vibrant Purple/Blue */
    --secondary: #FF6B6B;    /* Coral Red */
    --tertiary: #4ECDC4;     /* Turquoise */
    --accent: #FFD93D;       /* Golden Yellow */
    
    /* Neutral Colors */
    --dark: #1a1a2e;         /* Very Dark Blue */
    --darker: #0f3460;       /* Dark Navy */
    --gray-dark: #3a3a3a;    /* Dark Gray */
    --gray: #666666;         /* Medium Gray */
    --gray-light: #f5f5f5;   /* Light Gray */
    --light: #f0f4ff;        /* Very Light Blue */
    --white: #ffffff;        /* White */
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Fonts */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow: 0 4px 12px rgba(91, 91, 255, 0.15);
    --shadow-lg: 0 10px 30px rgba(91, 91, 255, 0.2);
    --shadow-xl: 0 20px 50px rgba(91, 91, 255, 0.25);
    
    /* Radius */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #7b7bff 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--light);
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-image {
    width: 80px;
    height: 80px;
    margin-right: var(--spacing-sm);
}
.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    flex: 2;
    justify-content: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--gray-dark);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 9999;
    }

    .nav-menu.active {
        display: flex;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--light) 0%, #ffffff 100%);
    padding: var(--spacing-2xl) 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content {
    padding-right: var(--spacing-xl);
}

.badge {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--primary);
}

.hero h1 {
    color: var(--dark);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.hero-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.info-item {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.info-item h3 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
}

.info-item p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #F0F4FF 0%, #E8F0FF 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.hero-image-placeholder svg {
    width: 100%;
    height: 100%;
}

/* MOBILE IMAGE HIDDEN ON DESKTOP */
.hero-mobile-image {
    display: none;
}

/* MOBILE VERSION */
@media (max-width: 768px) {

    .hero-image-placeholder {
        display: none;
    }

    .hero-mobile-image {
        display: block;

        width: 100%;
        max-width: 340px;

        margin: 0 auto;

        border-radius: 20px;

        object-fit: cover;

        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }
}
.stats-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  background: #f5f7fb;
}

.stats-container {
  width: 100%;
  max-width: 1100px;
  background: #ffffff;
  border-radius: 18px;
  padding: 35px 20px;
  
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.stat-box {
  text-align: center;
  flex: 1;
}

.stat-box h2 {
  font-size: 42px;
  color: #2563eb;
  margin-bottom: 10px;
  font-weight: 700;
}

.stat-box p {
  font-size: 16px;
  color: #555;
}


@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
    text-align: center;
  }

  .stat-box h2 {
    font-size: 36px;
  }
}
/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

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

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.about-card {
    background: var(--light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.about-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.about-card h3 {
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.about-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* ===== CEO SECTION ===== */
.ceo-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    color: var(--white);
}

.ceo-content {
    max-width: 800px;
    margin: 0 auto;
    justify-content: space-between;
    gap: 60px;
    display: flex;
    flex-direction: row;
    width:100%
    
}

.ceo-text {
    flex: 1;
    text-align: left;
     width: auto;
}

.ceo-content h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.ceo-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.ceo-image {
    width: auto;
}
.ceo-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    object-fit: cover;

    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.ceo-signature {
    background: rgba(255,255,255,0.08);
    padding: 28px;
    border-radius: 18px;

    margin: 40px auto 0;

    width: 100%;
    max-width: 700px;

    border-left: 4px solid var(--secondary);

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
}

.ceo-signature p {
    margin-bottom: 12px;
    color: rgba(255,255,255,0.92);
    font-size: 1rem;
    line-height: 1.7;
}

.ceo-signature p:last-child {
    margin-bottom: 0;
}
/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

    .ceo-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

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

    .ceo-content h2 {
        font-size: 2rem;
        text-align: center;
    }

    .ceo-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .ceo-image img {
        width: 100%;
        max-width: 320px;
    }

    
    .ceo-signature {
        width: 100%;
        padding: 22px;

        text-align: center;

        border-left: none;
        border-top: 4px solid var(--secondary);

        border-radius: 16px;
    }

    .ceo-signature p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* .ceo-signature {
    background: rgba(255,255,255,0.1);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-xl);
margin-left: auto;
margin-right: auto;
    border-left: 4px solid var(--secondary);
    justify-content: center;
    display: flex;
     flex-direction: column;
     align-items: left;
     width:50%;
}


.ceo-signature p {
    margin-bottom: var(--spacing-sm);
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    line-height: 1.8;
} */

/* ===== MISSION SECTION ===== */
.mission-section {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.mission-card {
    background: linear-gradient(135deg, var(--light) 0%, #f5f0ff 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.mission-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.mission-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 0;
}

.values-section {
    margin-top: var(--spacing-2xl);
}

.values-section h3 {
    text-align: center;
    color: var(--dark);
    margin-bottom: var(--spacing-xl);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.value-item {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-light);
    position: relative;
    padding-left: var(--spacing-xl);
}

.value-number {
    position: absolute;
    top: -10px;
    left: var(--spacing-lg);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.value-item h4 {
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.value-item p {
    color: var(--gray);
    margin-bottom: 0;
}

/* ===== COURSES SECTION ===== */
.courses {
    padding: var(--spacing-2xl) 0;
    background: var(--light);
}

.course-category {
    margin-bottom: var(--spacing-2xl);
}

.category-title {
    color: var(--dark);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.course-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
}

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

.course-tag {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-card h4 {
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.course-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.course-time {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    color: inherit;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: inherit;
    margin-bottom: 0;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--light) 0%, #ffffff 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.contact-info h2 {
    color: var(--dark);
    margin-bottom: var(--spacing-lg);
}

.contact-info p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.detail-item {
    margin-bottom: var(--spacing-lg);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.detail-item p {
    color: var(--gray-dark);
    margin: 0;
}

.contact-closing {
    color: var(--dark);
    font-size: 1.05rem;
}

.contact-form {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--dark);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 91, 255, 0.1);
}

.contact-form .btn {
    width: 100%;
}

.gallery-section {
    padding: 60px 0;
    background: #f8fafc;
}

.gallery-section .section-header {
    text-align: center;
    margin-bottom: 35px;
}

.gallery-section .section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.gallery-section .section-header p {
    color: #666;
}

/* GRID */
.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* IMAGES */
.gallery-grid img {
    width: 100%;
    height: 220px;

    object-fit: cover;

    border-radius: 16px;

    transition: 0.3s ease;
    cursor: pointer;
}

/* HOVER EFFECT */
.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* MOBILE */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid img {
        height: 180px;
    }
}

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

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--spacing-sm);
}

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

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col a {
    color: rgba(255,255,255,0.8);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-visual {
        order: -1;
    }

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

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

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

    .hero-info {
        grid-template-columns: 1fr;
    }

    .hero-image-placeholder {
        max-width: 300px;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .hero {
        padding: var(--spacing-xl) 0;
        min-height: auto;
    }

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

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

    .contact-form {
        padding: var(--spacing-lg);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 0.6s ease-out;
}

.course-card {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

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

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

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