/* =========================
   GOOGLE FONT
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* =========================
   ROOT COLORS
========================= */
:root {
    --primary: #005baa;
    --secondary: #0f172a;
    --light: #f5f7fb;
    --white: #ffffff;
    --text: #222;
    --gray: #666;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 18px;
}


/* =========================
   GLOBAL CONTAINER
========================= */
section,
footer {
    padding: 80px 7%;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 2.3rem;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-heading p {
    max-width: 700px;
    margin: auto;
    color: var(--gray);
}


/* =========================
   BUTTONS
========================= */
.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s ease;
    margin-right: 15px;
    margin-top: 10px;
}

.primary-btn {
    background: var(--primary);
    color: var(--white);
}

.primary-btn:hover {
    background: #00448a;
    transform: translateY(-2px);
}

.secondary-btn {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.secondary-btn:hover {
    background: var(--primary);
    color: var(--white);
}


/* =========================
   NAVBAR
========================= */
header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 7%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.main-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
}

.secondary-name {
    font-size: 0.85rem;
    color: var(--gray);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary);
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}


/* =========================
   HERO SECTION
========================= */
.hero-section {
    background: linear-gradient(to right, #f8fbff, #eef5fc);
    padding-top: 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 60px;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--secondary);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 25px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    color: var(--primary);
    font-weight: 500;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}


/* =========================
   TRUST SECTION
========================= */
.trust-section {
    background: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.trust-box {
    background: var(--light);
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
}

.trust-box:hover {
    transform: translateY(-5px);
}

.trust-box h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.trust-box p {
    color: var(--gray);
}


/* =========================
   SERVICES
========================= */
.services-section {
    background: #f8fafc;
}

.services-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray);
}


/* =========================
   ABOUT SECTION
========================= */
.about-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-content p {
    margin-bottom: 20px;
    color: var(--gray);
}


/* =========================
   WHY SECTION
========================= */
.why-section {
    background: #f8fafc;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.why-box {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.why-box:hover {
    transform: translateY(-5px);
}

.why-box h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.why-box p {
    color: var(--gray);
}


/* =========================
   PORTFOLIO
========================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.portfolio-item img {
    transition: 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}


/* =========================
   TESTIMONIALS
========================= */
.testimonial-section {
    background: #f8fafc;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.testimonial-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.testimonial-card strong {
    color: var(--primary);
}


/* =========================
   BLOG SECTION
========================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.blog-card p {
    color: var(--gray);
}


/* =========================
   CTA SECTION
========================= */
.cta-section {
    background: linear-gradient(to right, var(--primary), #0b77d5);
    color: var(--white);
    text-align: center;
}

.cta-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-wrapper p {
    max-width: 700px;
    margin: auto;
    margin-bottom: 30px;
}

.cta-section .secondary-btn {
    border-color: white;
    color: white;
}

.cta-section .secondary-btn:hover {
    background: white;
    color: var(--primary);
}


/* =========================
   FOOTER
========================= */
footer {
    background: #0f172a;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h3 {
    margin-bottom: 20px;
}

.footer-grid p,
.footer-grid a {
    color: #cbd5e1;
}

.footer-grid ul li {
    margin-bottom: 12px;
}

.footer-socials {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    color: #94a3b8;
}


/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 1100px) {

    .hero-content,
    .about-wrapper,
    .services-grid-clean,
    .trust-grid,
    .why-grid,
    .portfolio-grid,
    .testimonial-grid,
    .blog-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

.hero-text {
    text-align: left !important;
}

.hero-image {
    max-width: 100% !important;
}

.hero-image img {
    max-width: 100% !important;
}
@media (max-width: 768px) {

    section,
    footer {
        padding: 70px 5%;
    }

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-content,
    .about-wrapper,
    .services-grid-clean,
    .trust-grid,
    .why-grid,
    .portfolio-grid,
    .testimonial-grid,
    .blog-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-heading h2,
    .about-content h2,
    .cta-wrapper h2 {
        font-size: 1.8rem;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* ===================================
   IMPROVED BLOG PAGE
=================================== */

.blog-hero-section {
    background: linear-gradient(to right, var(--primary), #0b77d5);
    color: #ffffff;
    text-align: center;
    padding: 90px 7%;
}

.blog-hero-content {
    max-width: 850px;
    margin: auto;
}

.blog-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-hero-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.blog-dual-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    padding: 80px 7%;
    background: #f8fafc;
}

.english-column,
.urdu-column {
    background: #ffffff;
    padding: 40px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.blog-column-header {
    margin-bottom: 30px;
}

.blog-column-header span {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #eef5fc;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.blog-column-header h2 {
    color: var(--secondary);
    margin-bottom: 8px;
}

.blog-column-header p {
    color: #666;
}

.blog-card-3d {
    background: #ffffff;
    color: var(--secondary);
    padding: 26px;
    margin-bottom: 22px;
    border-radius: 18px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.blog-card-3d:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 14px 35px rgba(0,91,170,0.16);
}

.blog-card-3d h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

.blog-card-3d p {
    color: #666;
    font-size: 0.95rem;
}

.urdu-column {
    direction: rtl;
    text-align: right;
}

.urdu-column .blog-column-header span {
    margin-right: 0;
    margin-left: auto;
}

.urdu-blog-card h3 {
    font-size: 1.35rem;
    line-height: 2.2;
}

.urdu-blog-card p {
    font-size: 1.05rem;
    line-height: 2.4;
}

/* Modal */

.blog-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(4px);
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    height: 88vh;
    margin: 4vh auto;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
}

#blogFrame {
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 34px;
    font-size: 42px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10000;
}

/* Nastaliq Urdu support */

[lang="ur"] {
    font-family: 'Noto Nastaliq Urdu', serif !important;
    direction: rtl;
    text-align: right;
    line-height: 2.6;
    font-weight: 500;
}

/* Mobile */

@media (max-width: 900px) {
    .blog-dual-columns {
        grid-template-columns: 1fr;
    }

    .blog-hero-content h1 {
        font-size: 2.2rem;
    }

    .english-column,
    .urdu-column {
        padding: 30px 22px;
    }
}

/* ===================================
   CONTACT PAGE
=================================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.contact-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.contact-card p {
    color: #666;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.map-section {
    background: #f8fafc;
}

.map-container-enclosed {
    border-top: 5px solid var(--primary) !important;
}

.recent-blogs-container {
    padding: 80px 7%;
    background: #ffffff;
}

.blog-grid-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.blog-card-mini {
    background: #f8fafc;
    padding: 28px;
    border-radius: 18px;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.blog-card-mini:hover {
    transform: translateY(-5px);
}

.blog-card-mini h4 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.blog-card-mini p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* SOCIAL ICONS */

.social-icon {
    transition: 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
}

/* MOBILE */

@media (max-width: 768px) {

    .contact-grid,
    .blog-grid-mini {
        grid-template-columns: 1fr;
    }

}

/* ===================================
   DIGITAL SERVICES PAGE
=================================== */

.urdu-promo-box {
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 1100px;
    margin: auto;
}

.urdu-promo-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.8;
}

.urdu-promo-box p {
    color: #666;
    line-height: 2;
    font-size: 1.05rem;
}

.digital-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.digital-service-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.digital-service-card:hover {
    transform: translateY(-6px);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: #eef5fc;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
}

.digital-service-card h3 {
    margin-bottom: 18px;
    color: var(--secondary);
}

.digital-service-card p {
    color: #666;
    margin-bottom: 20px;
}

.digital-service-card ul {
    margin-bottom: 25px;
    padding-left: 18px;
}

.digital-service-card ul li {
    margin-bottom: 10px;
    color: #444;
    list-style: disc;
}

@media (max-width: 1100px) {

    .digital-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .digital-services-grid {
        grid-template-columns: 1fr;
    }

    .urdu-promo-box {
        padding: 30px 25px;
    }

    .urdu-promo-box h2 {
        font-size: 1.5rem;
    }

}

/* ===================================
   PRINTING PAGE
=================================== */

.printing-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.printing-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.printing-card:hover {
    transform: translateY(-6px);
}

.printing-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: #eef5fc;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
}

.printing-card h3 {
    margin-bottom: 18px;
    color: var(--secondary);
}

.printing-card p {
    color: #666;
    margin-bottom: 20px;
}

.printing-card ul {
    margin-bottom: 25px;
    padding-left: 18px;
}

.printing-card ul li {
    margin-bottom: 10px;
    color: #444;
    list-style: disc;
}

@media (max-width: 1100px) {

    .printing-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .printing-services-grid {
        grid-template-columns: 1fr;
    }

}

/* ===================================
   URDU NASTALIQ FONT
=================================== */

.urdu-text,
.urdu-promo-box,
.urdu-column,
.print-details,
.digi-details {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    text-align: right;
    line-height: 2.2;
}

[lang="ur"] {
    font-family: 'Noto Nastaliq Urdu', serif !important;
    direction: rtl;
    text-align: right;
    line-height: 2.4;
    font-weight: 500;
}

/* ===================================
   LEGAL PAGES
=================================== */

.legal-hero {
    background: linear-gradient(to right, var(--primary), #0b77d5);
    color: #ffffff;
    text-align: center;
    padding: 90px 7%;
}

.legal-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.legal-hero p {
    max-width: 720px;
    margin: auto;
    opacity: 0.95;
}

.legal-section {
    background: #f8fafc;
    padding: 80px 7%;
}

.legal-card {
    max-width: 950px;
    margin: auto;
    background: #ffffff;
    padding: 45px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 6px solid var(--primary);
}

.legal-card h2 {
    color: var(--secondary);
    margin-bottom: 20px;
}

.legal-card h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-card p {
    color: #555;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .legal-hero h1 {
        font-size: 2.1rem;
    }

    .legal-card {
        padding: 30px 22px;
    }
}

/* ===================================
   ADMISSIONS PAGE FIX
=================================== */

.admission-info-section {
    background: #ffffff;
}

.admission-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.admission-step-card {
    background: #f8fafc;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.admission-step-card span {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.admission-step-card h3 {
    color: var(--secondary);
    margin-bottom: 12px;
}

.admission-step-card p {
    color: #666;
}

.admission-main-section {
    background: #f8fafc;
}

.admission-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 35px;
    align-items: start;
}

.admission-details-card,
.admission-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.admission-details-card h2,
.admission-form-card h2 {
    color: var(--secondary);
    margin-bottom: 25px;
}

.admission-list li {
    margin-bottom: 16px;
    color: #555;
}

.payment-box,
.qr-box {
    background: #f8fafc;
    padding: 25px;
    border-radius: 18px;
    margin-top: 25px;
}

.payment-box h3,
.qr-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.payment-box p {
    margin-bottom: 8px;
    color: #555;
}

.payment-box hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 18px 0;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    text-align: center;
    align-items: start;
}

.qr-grid img {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.qr-grid p {
    margin-top: 10px;
    font-weight: 600;
    color: var(--secondary);
}

.admission-note {
    margin-top: 20px;
    color: #666;
    font-size: 0.95rem;
}

.admission-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.admission-form input,
.admission-form select,
.admission-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.other-course-box {
    display: none;
}

.admission-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: center;
}

@media (max-width: 1100px) {
    .admission-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admission-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admission-steps-grid,
    .form-row,
    .qr-grid {
        grid-template-columns: 1fr;
    }

    .admission-details-card,
    .admission-form-card {
        padding: 30px 22px;
    }

    .qr-grid img {
        width: 110px !important;
        height: 110px !important;
        max-width: 110px !important;
    }
}

/* ===================================
   COURSES PAGE UPGRADE
=================================== */

.courses-hero {
    background: linear-gradient(to right, var(--primary), #0b77d5);
    color: #ffffff;
    text-align: center;
    padding: 100px 7%;
}

.courses-hero-content {
    max-width: 900px;
    margin: auto;
}

.courses-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.courses-hero p {
    font-size: 1.1rem;
    max-width: 760px;
    margin: 0 auto 25px;
    opacity: 0.95;
}

.courses-hero .hero-features {
    justify-content: center;
    color: #ffffff;
    margin-bottom: 20px;
}

.courses-download-box {
    background: #ffffff;
    padding: 50px 7%;
}

.prospectus-modern-card {
    max-width: 1100px;
    margin: auto;
    background: #f8fafc;
    padding: 35px;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.prospectus-modern-card h2 {
    color: var(--primary);
    margin-bottom: 8px;
}

.prospectus-modern-card p {
    color: #666;
}

.courses-section {
    background: #f8fafc;
    padding: 80px 7%;
}

.course-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 70px;
}

.course-card {
    background: #ffffff;
    padding: 28px 22px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: 0.3s ease;
    min-height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 14px 35px rgba(0,91,170,0.16);
}

.course-card h3 {
    color: var(--secondary);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.course-card span {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
}

/* Course Modal Modern Fix */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 850px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 22px;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 34px;
    cursor: pointer;
    color: #999;
}

.modal-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.modal-header h2 {
    color: var(--primary) !important;
    margin-bottom: 8px;
}

.outline-box {
    background: #f8fafc;
    padding: 25px;
    border-radius: 18px;
    margin-top: 24px;
    border-left: 5px solid var(--primary);
}

.outline-box h3 {
    color: var(--primary) !important;
    margin-bottom: 15px;
}

.outline-box ul {
    columns: 2;
    padding-left: 20px;
}

.outline-box li {
    margin-bottom: 10px;
    list-style: disc;
    color: #444;
}

/* Apply Nastaliq to Urdu modal paragraphs even if inline old style exists */

.modal-content div[style*="direction: rtl"],
.modal-content div[style*="text-align: right"] {
    font-family: 'Noto Nastaliq Urdu', serif !important;
    direction: rtl !important;
    text-align: right !important;
    line-height: 2.6 !important;
}

.modal-content div[style*="direction: rtl"] p,
.modal-content div[style*="text-align: right"] p {
    font-family: 'Noto Nastaliq Urdu', serif !important;
    font-size: 1.15rem !important;
    line-height: 2.6 !important;
}

/* Mobile */

@media (max-width: 1100px) {
    .course-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .prospectus-modern-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .courses-hero h1 {
        font-size: 2.1rem;
    }

    .course-grid-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 28px 20px;
    }

    .outline-box ul {
        columns: 1;
    }
}

/* ===================================
   SECONDARY BUTTON COLORS
=================================== */

/* Default secondary button */
.secondary-btn{
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.secondary-btn:hover{
    background: var(--primary);
    color: #ffffff;
}

/* ONLY for dark/blue hero sections */
.courses-hero .secondary-btn,
.blog-hero-section .secondary-btn,
.legal-hero .secondary-btn{
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
}

.courses-hero .secondary-btn:hover,
.blog-hero-section .secondary-btn:hover,
.legal-hero .secondary-btn:hover{
    background: #ffffff;
    color: var(--primary) !important;
}

/* ===================================
   CTA SECTION BUTTON FIX
=================================== */

.cta-section .primary-btn{
    background: #ffffff;
    color: var(--primary) !important;
    border: 2px solid #ffffff;
}

.cta-section .primary-btn:hover{
    background: transparent;
    color: #ffffff !important;
    border-color: #ffffff;
}

/* ===================================
   ACTIVE NAVIGATION LINK
=================================== */

.nav-links a.active{
    color: var(--primary);
    position: relative;
    font-weight: 700;
}

.nav-links a.active::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 20px;
}

/* ===================================
   CONTACT PAGE HERO UPGRADE
=================================== */

.contact-hero-section {
    background: linear-gradient(to right, var(--primary), #0b77d5);
    color: #ffffff;
    text-align: center;
    padding: 100px 7%;
}

.contact-hero-content {
    max-width: 850px;
    margin: auto;
}

.contact-small-title {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 22px;
}

.contact-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-hero-content p {
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto 28px;
    opacity: 0.95;
}

.contact-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-hero-section .primary-btn {
    background: #ffffff;
    color: var(--primary) !important;
    border: 2px solid #ffffff;
}

.contact-hero-section .primary-btn:hover {
    background: transparent;
    color: #ffffff !important;
}

.contact-hero-section .secondary-btn {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.75);
}

.contact-hero-section .secondary-btn:hover {
    background: #ffffff;
    color: var(--primary) !important;
}

.contact-main-section {
    background: #f8fafc;
}

@media (max-width: 768px) {
    .contact-hero-content h1 {
        font-size: 2.2rem;
    }

    .contact-hero-buttons .primary-btn,
    .contact-hero-buttons .secondary-btn {
        width: 100%;
    }
}

/* Blog hero upgrade */

.blog-small-title {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 22px;
}

.blog-hero-section {
    background: linear-gradient(to right, var(--primary), #0b77d5);
    color: #ffffff;
    text-align: center;
    padding: 100px 7%;
}

.blog-hero-content {
    max-width: 850px;
    margin: auto;
}

.blog-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-hero-content p {
    font-size: 1.1rem;
    max-width: 760px;
    margin: auto;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2.2rem;
    }
}

/* ===================================
   DESIGN STUDIO PAGE
=================================== */

.design-hero-section {
    background: linear-gradient(to right, var(--primary), #0b77d5);
    color: #ffffff;
    text-align: center;
    padding: 100px 7%;
}

.design-hero-content {
    max-width: 900px;
    margin: auto;
}

.design-small-title {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 22px;
}

.design-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.design-hero-content p {
    font-size: 1.1rem;
    max-width: 760px;
    margin: 0 auto 28px;
    opacity: 0.95;
}

.design-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.design-hero-section .primary-btn {
    background: #ffffff;
    color: var(--primary) !important;
    border: 2px solid #ffffff;
}

.design-hero-section .primary-btn:hover {
    background: transparent;
    color: #ffffff !important;
}

.design-hero-section .secondary-btn {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.75);
}

.design-hero-section .secondary-btn:hover {
    background: #ffffff;
    color: var(--primary) !important;
}

.design-promo-section {
    background: #ffffff;
}

.design-products-section {
    background: #f8fafc;
}

.design-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.design-service-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 22px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.design-service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 14px 35px rgba(0,91,170,0.16);
}

.design-service-card i {
    width: 70px;
    height: 70px;
    background: #eef5fc;
    color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 22px;
}

.design-service-card h3 {
    color: var(--secondary);
    font-size: 1.15rem;
}

/* Design modal cleanup */

.product-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.modal-body {
    padding: 30px;
    direction: rtl;
    text-align: right;
    font-family: 'Noto Nastaliq Urdu', serif !important;
}

.modal-body h2 {
    color: var(--primary) !important;
    margin-bottom: 15px;
}

.modal-body p {
    color: #555;
    line-height: 2.4;
}

.feature-list {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    margin: 22px 0;
}

.feature-list li {
    margin-bottom: 12px;
    color: #444;
}

.whatsapp-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff !important;
    padding: 15px 22px;
    border-radius: 50px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .design-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .design-hero-content h1 {
        font-size: 2.2rem;
    }

    .design-services-grid {
        grid-template-columns: 1fr;
    }

    .design-hero-buttons .primary-btn,
    .design-hero-buttons .secondary-btn {
        width: 100%;
    }
}

/* MODERN COURSES HERO */

.courses-hero-modern{
    width: 100%;
    background: #eef3f8;
    padding: 70px 6%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    overflow: hidden;
}

.courses-hero-text h1{
    font-size: 58px;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 24px;
    font-weight: 800;
}

.courses-hero-text p{
    font-size: 20px;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 30px;
    max-width: 700px;
}

.hero-badge{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,94,158,0.08);
    color: var(--primary);
    padding: 12px 22px;
    border-radius: 100px;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 14px;
}

.hero-features{
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 35px;
}

.hero-features span{
    background: white;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero-features i{
    color: var(--primary);
    margin-right: 6px;
}

.hero-buttons{
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.primary-btn{
    background: var(--primary);
    color: white;
    padding: 16px 34px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn:hover{
    transform: translateY(-3px);
    background: #004b80;
}

.secondary-btn-dark{
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 16px 34px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secondary-btn-dark:hover{
    background: var(--primary);
    color: white;
}

.courses-hero-image{
    position: relative;
}

.courses-hero-image img{
    width: 100%;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

@media(max-width: 992px){

    .courses-hero-modern{
        grid-template-columns: 1fr;
        padding: 60px 5%;
    }

    .courses-hero-text{
        order: 1;
    }

    .courses-hero-image{
        order: 2;
    }

    .courses-hero-text h1{
        font-size: 42px;
    }

    .courses-hero-text p{
        font-size: 18px;
    }
}

@media(max-width: 600px){

    .courses-hero-text h1{
        font-size: 34px;
    }

    .hero-buttons{
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn-dark{
        width: 100%;
        text-align: center;
    }

    .hero-features{
        gap: 12px;
    }

    .hero-features span{
        width: 100%;
    }
}

/* ===================================
   COURSES HERO BUTTON FIX
=================================== */

.courses-hero-modern .primary-btn,
.prospectus-modern-card .primary-btn {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--primary) !important;
}

.courses-hero-modern .primary-btn:hover,
.prospectus-modern-card .primary-btn:hover {
    background: #00448a !important;
    color: #ffffff !important;
}

.courses-hero-modern .secondary-btn-dark {
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    background: transparent !important;
}

.courses-hero-modern .secondary-btn-dark:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
}

/* ===================================
   UNIVERSAL BUTTON SYSTEM
=================================== */

.primary-btn,
.secondary-btn,
.secondary-btn-dark,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 58px;
    padding: 0 34px;

    border-radius: 14px;

    font-size: 17px;
    font-weight: 700;
    text-decoration: none;

    transition: all 0.3s ease;

    cursor: pointer;

    box-sizing: border-box;
}

/* PRIMARY BUTTON */

.primary-btn,
.btn {
    background: var(--primary);
    color: #ffffff !important;
    border: 2px solid var(--primary);
}

.primary-btn:hover,
.btn:hover {
    background: #00448a;
    border-color: #00448a;
    transform: translateY(-2px);
}

/* SECONDARY BUTTON */

.secondary-btn,
.secondary-btn-dark {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.secondary-btn:hover,
.secondary-btn-dark:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* HERO DARK BACKGROUND VERSION */

.courses-hero .secondary-btn,
.contact-hero-section .secondary-btn,
.blog-hero-section .secondary-btn,
.cta-section .secondary-btn {

    color: #ffffff !important;
    border-color: rgba(255,255,255,0.75);
}

.courses-hero .secondary-btn:hover,
.contact-hero-section .secondary-btn:hover,
.blog-hero-section .secondary-btn:hover,
.cta-section .secondary-btn:hover {

    background: #ffffff;
    color: var(--primary) !important;
}

/* MOBILE */

@media(max-width:768px){

    .primary-btn,
    .secondary-btn,
    .secondary-btn-dark,
    .btn{
        width: 100%;
    }
}

.student-resources-section{
    background: #f8fafc;
}

.resources-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.resource-card{
    background: white;
    padding: 35px 28px;

    border-radius: 22px;

    text-decoration: none;

    color: inherit;

    box-shadow: 0 10px 25px rgba(0,0,0,0.06);

    transition: 0.3s ease;
}

.resource-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.resource-card i{
    width: 70px;
    height: 70px;

    background: #eef5fc;

    color: var(--primary);

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    margin-bottom: 22px;
}

.resource-card h3{
    margin-bottom: 14px;
    color: var(--secondary);
}

.resource-card p{
    color: #666;
    line-height: 1.8;
}

@media(max-width:900px){

    .resources-grid{
        grid-template-columns: 1fr;
    }
}

