/* =================================
   Global Styles & Reset
   ================================= */
*{
    margin: 0;
    padding: 0;
    font-family:'Poppins', sans-serif ;
}

/* Global Heading Consistency */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* =================================
   Header & Hero Section
   ================================= */
.header{
    min-height: 100vh ;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url(images/background.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
}
nav{
    display: flex;
    /* reduced top spacing so the nav / toolbar and logo sit closer to the top */
    padding: 20px 6% 14px 6%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    /* increased default logo size; keep responsive with max-width */
    width: 220px;
    max-width: 100%;
    height: auto;
}
.nav-links{
    flex:1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto ;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.text-box h1{
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.text-box p{
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}
nav .fa{
    display: none
}

/* =================================
   Homepage Sections (Index)
   ================================= */

/* Hero Section Enhancements */
.homepage-section {
    width: 100%;
    padding: 80px 20px;
}

.homepage-section h2 {
    text-align: center;
    font-size: 2.4rem;
    color: #0d2b57;
    font-weight: 700;
    margin-bottom: 16px;
}

.homepage-section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* Four Tab Section */
.four-tabs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.four-tab {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(13, 43, 87, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.four-tab-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.four-tab:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(13, 43, 87, 0.15);
}

.four-tab-icon {
    font-size: 48px;
    color: #ff8c3a;
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.four-tab h3 {
    font-size: 1.6rem;
    color: #0d2b57;
    font-weight: 700;
    margin-bottom: 12px;
}

.four-tab p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.four-tab-btn {
    display: inline-block;
    background: #ff8c3a;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    align-self: center;
}

.four-tab-btn:hover {
    background: #e67e2f;
}

/* Quick Links Section */
.quick-links-section {
    background: #f7fafc;
    padding: 80px 20px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-link-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(13, 43, 87, 0.06);
    transition: all 0.3s ease;
}

.quick-link-card:hover {
    box-shadow: 0 10px 25px rgba(13, 43, 87, 0.12);
    transform: translateY(-4px);
}

.quick-link-card i {
    font-size: 36px;
    color: #ff8c3a;
    margin-bottom: 12px;
}

.quick-link-card h4 {
    font-size: 1.1rem;
    color: #0d2b57;
    font-weight: 600;
    margin-bottom: 8px;
}

.quick-link-card p {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.quick-link-card a {
    color: #ff8c3a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.quick-link-card a:hover {
    color: #e67e2f;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0d2b57 0%, #1a3a6e 100%);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.cta-section h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.cta-btn {
    display: inline-block;
    background: #ff8c3a;
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(255, 140, 58, 0.3);
}

.cta-btn:hover {
    background: #e67e2f;
    box-shadow: 0 12px 24px rgba(255, 140, 58, 0.4);
    transform: translateY(-2px);
}

/* Footer Styling */
.footer {
    background: #0d2b57;
    color: #ffffff;
}

.footer h4 {
    color: #ffffff;
}

.footer p {
    color: #e4edf9;
}

.footer i {
    color: #ff8c3a;
}

@media (max-width: 768px) {
    .text-box h1 {
        font-size: 2.5rem;
    }

    .text-box p {
        font-size: 1rem;
    }

    .homepage-section h2 {
        font-size: 1.8rem;
    }

    .four-tab h3 {
        font-size: 1.3rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .text-box h1{
        font-size: 20px;
    }
    .nav-links{
        position:absolute;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;

    }
    /* reduce nav padding on small screens so header remains compact */
    nav{
        padding: 12px 6%;
    }
    nav .fa{
        display: block;
        color:#fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    /* reduce logo size on small screens so header stays tidy */
    nav img{
        width: 140px;
    }


    .nav-links ul{
        padding: 30px;
    }

}
/* ----course---- */
.course{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

p{
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.course-col{
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
.course-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
@media(max-width: 700px) {
    .row{
        flex-direction: column;
    }
}
/* -------CAMPUS-------- */
.campus{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
/* -------Hides part of the image-------- */
.campus-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.campus-col img{
    width: 100%;
    display: block;
}
.layer{
    /* start transparent and hidden; reveal on hover */
    background: rgba(226,0,0,0);
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: background 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}

.campus-col:hover .layer{
    background: rgba(226,0,0,0.7);
    opacity: 1;
}
.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 50px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    transition: 0.5s;

}
.layer:hover h3{
    bottom: 49%;
    opacity: 1;

}

.facilities{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;

}
.facilities-col{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
}
.facilities-col img{
    width: 100%;
    border-radius: 10px;
}
.facilities-col p{
    padding: 0;
}
.facilities-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}
/* ===== Testimonials (soft cards) ===== */
.testimonials{
  width: 80%;
  margin: 0 auto;
  padding: 80px 0;
  text-align: center;
}

.testimonials h1{
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.testimonials > p{
  max-width: 760px;
  margin: 12px auto 48px;
  font-size: 20px;
  line-height: 1.6;
  color: #6b7280;
  padding: 0;
}

.testimonials .row{
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.testimonials-col{
  flex: 1 1 520px;
  max-width: 600px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-align: left;

  background: #fff3f0;
  border-radius: 20px;
  padding: 32px 36px;
  color: #111827;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}

.testimonials-col img{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 56px;
  margin: 0 8px 0 0;
}

.testimonials-col p{
  margin: 0 0 16px;
  padding: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #6b7280;
}

.testimonials-col h3{
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.testimonials-col .stars{
  margin-top: 6px;
  font-size: 16px;
  color: #f59e0b;
}
.testimonials-col i {
    color: #f08078;
    margin-right: 4px;
    font-size: 18px;
}
@media(max-width: 700px) {
    .testimonials-col img{
        margin-left: 0px;
        margin-right: 15px;
    }
}
/* ----footer---- */
.footer{
    width: 100%;
    text-align: center;
    padding: 30px 0;
}
.footer h4{
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}
.icons i{
    color: #dd6f67;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
}
.fa-heart-o{
    color: #ff0000;
}

/* ------ about us page ----- */
.sub-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url(images/background.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}
.sub-header h1{
    margin-top: 100px;
}
.about-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;;
    padding-bottom: 50px;
}
.about-col{
    flex-basis: 48%;
    padding: 30px 2px;
}
.about-col img{
    width: 100%;
}
.about-col h1{
    padding-top: 0;
}
.about-col p{
    padding: 15px 0 25px;
}
.red-btn{
    border: 1px solid #f44336;
    background:transparent;
    color: #f44336;
}
.red-btn:hover{
    color: #fff;
}
/* --- Dropdown base --- */
.nav-links ul li { position: relative; }
.nav-links ul li.has-dropdown > a { display: inline-flex; align-items: center; }

/* Hidden by default: styled as a translucent layered panel with blur. */
.nav-links ul li .dropdown {
    display: none;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    max-width: 320px;
    max-height: 60vh;
    overflow: auto;
    background: rgba(255,255,255,0.72); /* translucent */
    backdrop-filter: blur(6px); /* soft blur behind the panel (modern browsers) */
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 10px;
    padding: 6px 0;
    box-shadow: 0 12px 40px rgba(2,6,23,0.12);
    z-index: 1000;
    box-sizing: border-box;
    transition: opacity .18s ease, transform .18s ease;
    transform-origin: top left;
    pointer-events: none;
}

/* Show on hover (desktop) */
.nav-links ul li.has-dropdown:hover > .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(6px);
    visibility: visible;
    pointer-events: auto;
}

/* Show when toggled via JS (click) */
.nav-links ul li.has-dropdown.open > .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(6px);
    visibility: visible;
    pointer-events: auto;
}

/* Dropdown items */
.nav-links ul li .dropdown li { width: 100%; pointer-events: auto; }
.nav-links ul li .dropdown a {
    display: block;
    padding: 10px 14px;
    color: #111827; /* dark text for contrast */
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
    text-align: center; /* center dropdown text horizontally */
    pointer-events: auto;
}
.nav-links ul li .dropdown a:hover {
    background: rgba(15,23,42,0.04);
}

/* If dropdown is near the right edge (last one or last two items), anchor to the right so it opens leftwards */
.nav-links ul li.has-dropdown:nth-last-child(-n+2) > .dropdown {
    right: 0;
    left: auto;
    transform-origin: top right;
}

/* --- Mobile behavior --- */
@media (max-width: 700px) {
  /* Your menu becomes a slide-out; make dropdown stack and always visible under COURSE */
  .nav-links ul li .dropdown {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-top: 6px;
  }
  .nav-links ul li .dropdown a {
    padding: 8px 0 8px 16px; /* indent child links under COURSE */
    border-radius: 6px;
  }
}

/* =================================
   About Page Dropdowns
   ================================= */
.about-dropdowns {
    width: 80%;
    margin: 60px auto;
    padding: 40px 0;
}

.dropdowns-container h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.dropdown-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.dropdown-header {
    width: 100%;
    padding: 20px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: background 0.3s ease;
}

.dropdown-header:hover {
    background: #e9ecef;
}

.dropdown-header i {
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #ddd;
    max-height: 500px;
    overflow-y: auto;
}

.dropdown-content p {
    margin: 0;
    color: #555;
}

.dropdown-content a {
    color: #f44336;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.dropdown-content a:hover {
    color: #d32f2f;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .about-dropdowns {
        width: 90%;
    }

    .dropdowns-container h2 {
        font-size: 24px;
    }

    .dropdown-header {
        padding: 15px;
        font-size: 14px;
    }
}

/* =================================
   Blog Page Styles
   ================================= */
.blog-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 16px 60px;
}

.blog-intro {
    text-align: left;
    margin-bottom: 28px;
}

.blog-intro h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0b2345;
    margin-bottom: 8px;
}

.blog-intro p {
    font-size: 0.98rem;
    color: #6b7280;
}

/* ===== GRID: 3 COLUMNS ===== */
#blog-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 28px;
}

@media (max-width: 960px) {
    #blog-list {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 640px) {
    #blog-list {
        grid-template-columns: 1fr;
    }
}

/* ===== BLOG CARDS ===== */
.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    background: #f4f7ff;
    border-radius: 32px;
    padding: 28px 26px 24px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
    background: #edf3ff;
}

/* Subtle tint per category */
.post-anxiety { background: #f3f6ff; }
.post-sleep { background: #f5f7ff; }
.post-academic { background: #f3f9ff; }
.post-depression { background: #f7f4ff; }
.post-social { background: #f5f8ff; }
.post-mindfulness { background: #f3fbff; }
.post-talking { background: #f4f7ff; }
.post-balance { background: #f7f8ff; }
.post-confidence { background: #f6f4ff; }
.post-support { background: #f7f3ff; }

.post-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.03em;
    color: #425577;
    margin-bottom: 16px;
}

.post-title {
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
    color: #0b2345;
    margin: 0;
}

.post-learn {
    margin-top: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #0b2345;
    display: inline-flex;
    align-items: center;
}

.post-learn span {
    border-bottom: 3px solid #ff8c3a;
    padding-bottom: 3px;
}

/* ===== DETAIL VIEW ===== */
#blog-detail {
    display: none;
    margin-top: 40px;
}

.detail-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    padding: 26px 26px 24px;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.10);
}

.detail-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0b2345;
}

.detail-meta {
    font-size: 0.86rem;
    color: #6b7280;
    margin-bottom: 22px;
}

.detail-body p {
    line-height: 1.7;
    margin-bottom: 14px;
    font-size: 0.98rem;
    color: #1f2933;
}

.btn-row {
    margin-top: 20px;
}

.btn-back {
    appearance: none;
    border-radius: 999px;
    padding: 9px 18px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    color: #0b2345;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-back i {
    font-size: 0.85rem;
}

.btn-back:hover {
    background: #e5edff;
    border-color: #2563eb;
    transform: translateY(-1px);
}

@media (max-width: 650px) {
    .detail-card {
        padding: 20px 18px;
        border-radius: 20px;
    }
    .detail-title {
        font-size: 1.6rem;
    }
}
