/* Public homepage of the branch (resources/views/website/home.blade.php).
   Colours follow retinabd.org: deep red on white. */

:root {
    --ws-red: #780a0a;
    --ws-red-hover: #5e0808;
    --ws-red-soft: #fdeeee;
    --ws-red-line: #f3d0d0;
    --ws-ink: #121212;
    --ws-muted: #5d6270;
    --ws-tint: #faf7f6;
    --ws-card: #ffffff;
    --ws-line: #ececec;
    --ws-radius: 14px;
    --ws-shadow: 0 6px 24px rgba(30, 10, 10, .07);
    --ws-font: 'Hind Siliguri', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--ws-font); color: var(--ws-ink); background: #fff; font-size: 1.05rem; line-height: 1.65; }
a { color: var(--ws-red); }
.ws-red { color: var(--ws-red); }

/* Buttons */
.ws-btn-red { background: var(--ws-red); color: #fff; border: 0; border-radius: 10px; font-weight: 600; }
.ws-btn-red:hover, .ws-btn-red:focus { background: var(--ws-red-hover); color: #fff; }
.ws-btn-soft { background: var(--ws-red-soft); color: var(--ws-red); border: 1px solid var(--ws-red-line); border-radius: 10px; font-weight: 600; }
.ws-btn-soft:hover { background: #fbe1e1; color: var(--ws-red-hover); }
.ws-btn-dark { background: #171717; color: #fff; border-radius: 12px; font-weight: 600; padding: .45rem 1.1rem; }
.ws-btn-dark:hover { background: #000; color: #fff; }
.ws-btn-light { background: #fff; color: var(--ws-red); border-radius: 10px; font-weight: 600; }
.ws-btn-light:hover { background: var(--ws-red-soft); color: var(--ws-red-hover); }
.btn i { margin: 0 .2rem; }

/* Preview notice for logged-in users while the site is off */
.ws-preview-bar { background: #fff4d6; color: #6b4e00; text-align: center; padding: .45rem 1rem; font-size: .92rem; }
.ws-preview-bar a { font-weight: 600; margin-left: .5rem; }

/* Navigation */
.ws-nav { background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ws-line); padding: .55rem 0; }
.ws-nav .nav-link { color: var(--ws-ink); font-weight: 500; padding: .5rem .85rem !important; border-radius: 8px; }
.ws-nav .nav-link:hover { color: var(--ws-red); background: var(--ws-red-soft); }
/* Uploaded logos come in any shape: keep them to the bar's height and a sane width. */
.ws-nav .navbar-brand img, .ws-footer-logo { width: auto; max-width: min(240px, 60vw); object-fit: contain; }
.ws-nav .navbar-toggler { border: 0; font-size: 1.4rem; color: var(--ws-ink); }
.ws-nav .navbar-toggler:focus { box-shadow: none; }
.ws-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; text-decoration: none; }
.ws-whatsapp { background: #e8f8ee; color: #1fa855; }
.ws-whatsapp:hover { background: #d3f2df; color: #178a45; }

/* Announcement */
.ws-announcement { display: flex; align-items: center; gap: .75rem; background: var(--ws-red); color: #fff; border-radius: 10px; padding: .7rem 1.1rem; text-decoration: none; font-weight: 500; }
a.ws-announcement:hover { background: var(--ws-red-hover); color: #fff; }

/* Hero */
.ws-hero { padding: 3rem 0 2.5rem; background: radial-gradient(1200px 500px at 85% 10%, #fdf0f0 0%, #fff 60%); }
.ws-hero-title { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; line-height: 1.25; margin-bottom: 1rem; }
.ws-hero-sub { font-size: 1.2rem; color: #333; margin-bottom: 1rem; }
.ws-hero-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.25rem; }
.ws-hero-points li { display: flex; gap: .55rem; align-items: baseline; color: #2b2b2b; }
.ws-hero-points i { color: var(--ws-red); }
.ws-hero-media { border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(120, 10, 10, .18); background: #fff; }
.ws-hero-media img { display: block; object-fit: cover; aspect-ratio: 16 / 10; }
/* Logo shown when there is no hero picture: kept near its own size so it stays sharp. */
/* On load the first picture slides in from the right, like the later slides,
   instead of sitting still until the slideshow's first turn. */
@keyframes ws-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.ws-intro.carousel .carousel-item.active, .ws-intro:not(.carousel) > img { animation: ws-slide-in .6s ease-in-out both; }
.ws-hero-logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; }
.ws-hero-logo img { width: 80%; max-width: 340px; height: auto; aspect-ratio: auto; object-fit: contain; }

/* Quick links */
.ws-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.75rem; }
.ws-quick a { display: flex; align-items: center; gap: .8rem; background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--ws-ink); font-weight: 600; box-shadow: var(--ws-shadow); transition: transform .15s, border-color .15s; }
.ws-quick a:hover { transform: translateY(-2px); border-color: var(--ws-red-line); color: var(--ws-red); }
.ws-quick i { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--ws-red-soft); color: var(--ws-red); font-size: 1.15rem; }

/* Sections */
.ws-section { padding: 4.5rem 0; }
.ws-tint { background: var(--ws-tint); }
/* Two white sections in a row would stack their padding. */
.ws-section:not(.ws-tint) + .ws-section:not(.ws-tint) { padding-top: 0; }
.ws-heading { text-align: center; font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: 2.25rem; }
.ws-card { background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); box-shadow: var(--ws-shadow); height: 100%; }

/* Courses */
.ws-course { display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.ws-course:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(30, 10, 10, .12); }
.ws-course-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ws-course-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.ws-course h3 { font-size: 1.25rem; font-weight: 700; margin: .6rem 0 .9rem; line-height: 1.4; }
.ws-course ul { padding-left: 1.15rem; margin-bottom: 1.25rem; color: #333; }
.ws-course li { margin-bottom: .3rem; }
.ws-course li::marker { color: var(--ws-red); }
.ws-badge { align-self: flex-start; background: var(--ws-red-soft); color: var(--ws-red); border-radius: 999px; padding: .15rem .75rem; font-size: .85rem; font-weight: 600; }

/* About and features */
.ws-about { max-width: 820px; margin: 0 auto; text-align: center; color: #333; font-size: 1.12rem; }
.ws-about .ws-heading { margin-bottom: 1.25rem; }
.ws-feature { padding: 1.4rem 1.1rem; text-align: center; transition: transform .15s; }
.ws-feature:hover { transform: translateY(-3px); }
.ws-feature h3 { font-size: 1.1rem; font-weight: 700; margin: .9rem 0 .35rem; }
.ws-feature p { margin: 0; color: var(--ws-muted); font-size: .95rem; line-height: 1.5; }
.ws-feature-icon { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--ws-red); color: #fff; font-size: 1.45rem; }
.ws-feature-img { width: 58px; height: 58px; object-fit: contain; }

/* Success numbers */
.ws-stats { background: linear-gradient(135deg, var(--ws-red), #a11818); color: #fff; border-radius: 22px; padding: 2.5rem 1.5rem; text-align: center; }
.ws-stats h2 { font-weight: 700; font-size: clamp(1.4rem, 2.8vw, 2rem); margin-bottom: 1.5rem; }
.ws-stat { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 1.2rem .5rem; height: 100%; }
.ws-stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; }
.ws-stat span { opacity: .9; }

/* Testimonials */
.ws-testimonial { padding: 1.6rem; margin: 0; display: flex; flex-direction: column; }
.ws-quote { color: var(--ws-red); font-size: 1.6rem; opacity: .35; }
.ws-testimonial blockquote { margin: .6rem 0 1.2rem; color: #333; flex: 1; }
.ws-testimonial figcaption { display: flex; align-items: center; gap: .8rem; }
.ws-testimonial figcaption img, .ws-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.ws-avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--ws-red-soft); color: var(--ws-red); font-weight: 700; font-size: 1.3rem; }
.ws-testimonial figcaption strong { display: block; }
.ws-testimonial figcaption small { display: block; color: var(--ws-red); font-weight: 600; }

/* Gallery */
.ws-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.ws-photo { position: relative; border: 0; padding: 0; border-radius: var(--ws-radius); overflow: hidden; background: #ddd; aspect-ratio: 4 / 3; cursor: zoom-in; }
.ws-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ws-photo:hover img { transform: scale(1.05); }
.ws-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; color: #fff; text-align: left; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.ws-photo-modal { background: #000; border: 0; border-radius: 14px; overflow: hidden; }
.ws-photo-modal img { width: 100%; max-height: 80vh; object-fit: contain; }
.ws-photo-modal p { color: #fff; text-align: center; margin: .75rem; }
.ws-photo-modal .btn-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; }

/* Videos */
.ws-video-thumb, .ws-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--ws-radius); overflow: hidden; }
.ws-video-thumb { position: relative; padding: 0; background: #000; }
.ws-video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.ws-video-thumb:hover img { opacity: 1; }
.ws-video-thumb i { position: absolute; inset: 0; margin: auto; width: 1em; height: 1em; font-size: 3.6rem; color: #ff0000; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4)); }
.ws-video p { font-weight: 600; margin: .7rem 0 0; }

/* Contact */
.ws-contact { background: var(--ws-red); color: #fff; border-radius: 22px; padding: 2.5rem; }
.ws-contact h2 { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.ws-contact h2 span { color: #ffd4d4; }
.ws-contact-sub { opacity: .9; }
.ws-phone { display: inline-flex; align-items: center; gap: .6rem; font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 700; color: #fff; text-decoration: none; }
.ws-phone:hover { color: #ffe3e3; }
.ws-hours { opacity: .9; margin-top: .15rem; }
.ws-contact-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.ws-contact-list li { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .4rem; }
.ws-contact-list a { color: #fff; }
.ws-map { width: 100%; height: 320px; border: 0; border-radius: 16px; background: #fff; }
.ws-contact-logo { display: flex; align-items: center; justify-content: center; min-height: 220px; border-radius: 16px; background: #fff; padding: 1.5rem; }
.ws-contact-logo img { width: 80%; max-width: 340px; height: auto; }

/* Footer */
.ws-footer { background: #141414; color: #c9c9c9; padding: 3.5rem 0 1.5rem; font-size: .98rem; }
.ws-footer-logo { background: #fff; border-radius: 10px; padding: 4px 8px; margin-bottom: 1rem; }
.ws-footer h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: .9rem; }
.ws-footer ul { list-style: none; padding: 0; margin: 0; }
.ws-footer li { margin-bottom: .45rem; }
.ws-footer a { color: #e2e2e2; text-decoration: none; }
.ws-footer a:hover { color: #fff; text-decoration: underline; }
.ws-footer i { width: 1.2em; color: #ff8a8a; }
.ws-copy { border-top: 1px solid #2c2c2c; margin-top: 2.5rem; padding-top: 1.25rem; text-align: center; font-size: .9rem; color: #9a9a9a; }

/* Small screens */
@media (max-width: 991.98px) {
    .ws-nav .navbar-nav { padding: .75rem 0; }
    .ws-nav-actions { padding-bottom: .75rem; }
    .ws-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ws-hero { padding-top: 2rem; }
}
@media (max-width: 575.98px) {
    body { font-size: 1rem; }
    .ws-hero-points { grid-template-columns: 1fr; }
    .ws-quick { gap: .6rem; }
    .ws-quick a { flex-direction: column; text-align: center; padding: .9rem .6rem; font-size: .95rem; }
    .ws-section { padding: 3.25rem 0; }
    .ws-contact { padding: 1.75rem 1.25rem; }
    .ws-stats { padding: 2rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ws-course, .ws-feature, .ws-quick a, .ws-photo img { transition: none; }
    .ws-intro.carousel .carousel-item.active, .ws-intro:not(.carousel) > img { animation: none; }
}
