
/* =========================================
   PANDEY MATHEMATICS CLASSES, ROHTAK
   Premium Website Styling
========================================= */

/* 1. BASIC SETTINGS */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f7fc;
    color: #263445;
    line-height: 1.6;
}


/* 2. HEADER */

header {
    background: linear-gradient(135deg, #0b1f40, #173c70);
    color: white;
    text-align: center;
    padding: 38px 15px;
}

header h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 750;
    letter-spacing: 0.5px;
}

header p {
    font-size: 17px;
    margin: 5px 0;
    color: #e1eaf7;
}

header p:nth-of-type(1) {
    color: #ffd166;
    font-size: 19px;
    font-weight: 600;
}


/* 3. NAVIGATION BAR */

nav {
    background-color: #102a56;
    padding: 16px 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 17px;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover {
    color: #ffd166;
}


/* 4. SOCIAL MEDIA SECTION */

.youtube-section {
    text-align: center;
    padding: 24px 20px;
    margin: 18px auto;
    max-width: 1100px;
    border-top: 3px solid #ffd166;
}

.youtube-section h2 {
    color: #102a56;
    font-size: 23px;
    margin-top: 0;
    margin-bottom: 8px;
    border: none;
}

.youtube-section p {
    font-size: 15px;
    color: #526174;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-block;
    color: white;
    padding: 11px 25px;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.youtube-button {
    background-color: #e62117;
}

.youtube-button:hover {
    background-color: #b8140c;
}

.instagram-button {
    background: #d62976;
}

.instagram-button:hover {
    background: #a91e5d;
}

.facebook-button {
    background: #1877F2;
}

.facebook-button:hover {
    background: #105bbd;
}


/* 5. HERO SECTION */

.hero {
    text-align: center;
    padding: 95px 20px;
    background: linear-gradient(135deg, #e4edff, #ffffff, #edf4ff);
}

.hero h2 {
    color: #102a56;
    font-size: 39px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 750;
}

.hero p {
    font-size: 19px;
    line-height: 1.8;
    color: #39485c;
}

.hero p:first-of-type {
    font-weight: 600;
}


/* 6. MAIN BUTTON */

.main-button {
    display: inline-block;
    background: #102a56;
    color: white;
    padding: 15px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 18px;
    transition: 0.3s;
}

.main-button:hover {
    background: #d49a20;
    color: #102a56;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16,42,86,0.2);
}


/* 7. CONTENT SECTIONS */

.section {
    background-color: white;
    margin: 35px auto;
    padding: 40px;
    max-width: 1100px;
    border-radius: 13px;
    box-shadow: 0 5px 22px rgba(16,42,86,0.07);
}

.section h2 {
    color: #102a56;
    font-size: 29px;
    margin-top: 0;
    border-bottom: 2px solid #e7edf7;
    padding-bottom: 12px;
}

.section h3 {
    color: #173c70;
}

.section p {
    font-size: 17px;
    line-height: 1.8;
    color: #465366;
}


/* 8. COURSE CARDS */

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.course-card {
    background: #f5f8fe;
    padding: 27px;
    border-radius: 12px;
    border: 1px solid #e1eaf7;
    border-top: 4px solid #173c70;
    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 9px 22px rgba(16,42,86,0.13);
    background: white;
}

.course-card h3 {
    color: #102a56;
    margin-top: 0;
    font-size: 20px;
}

.course-card p {
    font-size: 16px;
    line-height: 1.7;
}


/* 9. FACULTY CARDS */

.faculty-card {
    background: #f5f8fe;
    padding: 22px 25px;
    margin: 18px 0;
    border-left: 4px solid #d49a20;
    border-radius: 9px;
    transition: 0.3s;
}

.faculty-card:hover {
    background: #edf3fc;
    transform: translateX(4px);
}

.faculty-card h3 {
    margin-top: 0;
    color: #102a56;
    font-size: 21px;
}

.faculty-card p {
    margin-bottom: 0;
}


/* 10. FOOTER */

footer {
    background: linear-gradient(135deg, #0b1f40, #102a56);
    color: white;
    text-align: center;
    padding: 28px 15px;
    margin-top: 40px;
}

footer p {
    color: white;
    margin: 7px 0;
    font-size: 15px;
}


/* 11. WHATSAPP FLOATING BUTTON */

.whatsapp-button {
    position: fixed;
    bottom: 70px;
    right: 15px;
    background: #25D366;
    color: white;
    padding: 14px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.whatsapp-button:hover {
    background: #1da851;
    transform: translateY(-3px);
}


/* 12. MOBILE RESPONSIVE DESIGN */

@media (max-width: 600px) {

    header {
        padding: 27px 12px;
    }

    header h1 {
        font-size: 26px;
    }

    header p {
        font-size: 15px;
    }

    nav {
        padding: 12px 5px;
    }

    nav a {
        display: inline-block;
        margin: 7px 9px;
        font-size: 13px;
    }

    .youtube-section {
        margin: 14px 10px;
        padding: 22px 14px;
    }

    .youtube-section h2 {
        font-size: 20px;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a {
        padding: 10px 17px;
        font-size: 14px;
    }

    .hero {
        padding: 65px 16px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        margin: 20px 12px;
        padding: 25px 20px;
    }

    .section h2 {
        font-size: 23px;
    }

    .section p {
        font-size: 16px;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .course-card {
        padding: 22px;
    }

    .whatsapp-button {
        bottom: 50px;
        right: 12px;
        padding: 12px 17px;
        font-size: 13px;
    }

    footer {
        padding: 23px 12px;
    }
}

/* GOOGLE REVIEWS SECTION */

.google-review-section {
    background: white;
    max-width: 1100px;
    margin: 35px auto;
    padding: 45px 25px;
    text-align: center;
    border-radius: 13px;
    box-shadow: 0 5px 22px rgba(16,42,86,0.08);
}

.google-review-section h2 {
    color: #102a56;
    font-size: 29px;
}

.google-review-section > p {
    color: #526174;
    font-size: 16px;
}

.google-rating {
    margin: 25px 0;
}

.rating-number {
    font-size: 43px;
    font-weight: bold;
    color: #102a56;
}

.rating-stars {
    display: block;
    color: #fbbc04;
    font-size: 30px;
    letter-spacing: 4px;
}

.google-rating p {
    margin: 8px 0 2px;
    font-weight: bold;
    color: #263445;
}

.google-rating small {
    color: #777;
}

.google-review-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
}

.read-review-button,
.write-review-button {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.read-review-button {
    background: #102a56;
    color: white;
}

.write-review-button {
    background: #fbbc04;
    color: #222;
}

.read-review-button:hover,
.write-review-button:hover {
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .google-review-section {
        margin: 20px 12px;
        padding: 28px 15px;
    }

    .google-review-section h2 {
        font-size: 23px;
    }

    .google-review-buttons a {
        width: 100%;
    }
}
