/* ===============================
   CSS RESET & ROOT VARIABLES
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0F172A;        /* Deep Navy */
    --accent: #2563EB;         /* Modern Blue */
    --accent-light: #38BDF8;   /* Sky Blue */
    --bg-main: #F8FAFC;        /* Off White */
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border: #E2E8F0;
}

/* ===============================
   GLOBAL STYLES
================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===============================
   HEADER & NAVBAR
================================ */
header {
    background: var(--primary);
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-light);
}

/* ===============================
   HERO SECTION
================================ */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 90px 40px;
    text-align: center;
}
.hero-content {
    max-width: 900px;
    margin: 0 auto;          /* centers content */
    display: block;          /* normal flow */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.cta-btn {
    background: var(--accent-light);
    color: var(--primary);
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
    background: white;
    transform: translateY(-3px);
}

/* ===============================
   SECTIONS COMMON
================================ */
section {
    padding: 70px 40px;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--primary);
}

/* ===============================
   IMAGE GALLERY
================================ */
.image-gallery {
    background: #f9f9f9; /* soft background for freshness */
    padding: 40px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* fixed 4 per row on large screens */
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 220px; /* fixed height for uniform rows */
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ===============================
   COURSES SECTION
================================ */
.courses {
    background: var(--bg-main);
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.course-card img {
    height: 80px;
    margin: auto;
}

.course-card h3 {
    margin: 15px 0 10px;
    color: var(--primary);
}

.course-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.course-card a {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    font-weight: 600;
}

/* ===============================
   YOUTUBE VIDEOS
================================ */
.youtube-videos {
    background: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.video-item iframe {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===============================
   UPCOMING CLASSES
================================ */
.upcoming-classes {
    background: var(--bg-main);
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.class-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease;
}

.class-item:hover {
    transform: translateY(-5px);
}

.class-item h3 {
    margin: 15px 0 10px;
    color: var(--primary);
}

.class-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===============================
   MODALS (COMMON)
================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 999;
    overflow-y: auto; /* Allows scrolling if modal is too tall */
}

.modal-content {
    background: white;
    max-width: 700px;
    width: 90%; /* responsive width */
    max-height: 80vh; /* restrict height to viewport */
    margin: 40px auto; /* smaller margin for mobile */
    padding: 30px;
    border-radius: 16px;
    position: relative;
    animation: scaleIn 0.3s ease;
    overflow-y: auto; /* enables scrolling inside modal */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* modern shadow */
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
}

/* Scrollbar styling for modern look */
.modal-content::-webkit-scrollbar 
{
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
/* Certificate Check Form */
#certificate-modal form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

#certificate-modal input[type="text"] {
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#certificate-modal input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.4);
}

#certificate-modal input[type="submit"] {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #0F172A;
    color: white;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

#certificate-modal input[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Center CAPTCHA and add spacing */
#certificate-modal .g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

/* ===============================
   FOOTER
================================ */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.95rem;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 60px 20px;
    }
.modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        margin: 20px auto;
    }
}


/* ===============================
   TRAINER SECTION – MODERN SIMPLE
================================ */

.trainer-section {
    background: white;
    padding: 70px 40px;
}

.trainer-card {
    max-width: 1000px;
    margin: auto;
    display: flex;
    gap: 35px;
    align-items: center;
    background: var(--card-bg);
    border-radius: 18px;
    padding: 35px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease;
}

.trainer-card:hover {
    transform: translateY(-6px);
}

/* Trainer Image */
.trainer-image-wrapper {
    position: relative;
}

.trainer-image-wrapper img {
    width: 260px;          /* increased size */
    height: auto;
    border-radius: 20px;
    border: 5px solid var(--accent);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}
/* Experience Badge */
.trainer-badge {
    bottom: -16px;
    font-size: 0.9rem;
    padding: 8px 18px;
}

/* Trainer Info */
.trainer-info h3 {
    font-size: 1.7rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.trainer-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.trainer-info p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Skills Tags */
.trainer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trainer-tags span {
    background: var(--bg-main);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .trainer-card {
        flex-direction: column;
        text-align: center;
    }

    .trainer-tags 
{
        justify-content: center;
    }

trainer-image-wrapper img 
{
        width: 220px;   /* still large on mobile */
    }
}



.lecture-notes {
    background: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.lecture-notes h2 {
    font-size: 28px;
    color: black;
    margin-bottom: 30px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}

.note-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.note-item:hover {
    transform: translateY(-5px);
}

.note-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.note-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.download-btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #0056b3;
}


/* ===============================
  MARQUEE
================================ */

   .marquee-container {
    width: 90%;                 /* width of the marquee */
    max-width: 800px;           /* optional, prevents too wide on large screens */
    margin: 30px auto;          /* centers horizontally and gives space above/below */
    overflow: hidden;
    background: linear-gradient(90deg, #2563eb, #1e40af);
    border-radius: 12px;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;         /* ensures text inside is centered */
}
.marquee {
    display: inline-block;       /* allows spans to move inline */
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}
.marquee span {
    margin: 0 50px;             /* spacing between emojis/text */
    font-size: 1.1rem;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
