/* =============================
   HOME PAGE LAYOUT & BACKGROUND
   ============================= */
.home-scroll-container {
    width: 100%;
    min-height: 100vh;
    background-image: url('../images/home_page_bg.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #030712;
    display: flex;
    flex-direction: column;
}

.space-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
    text-align: center;
    font-size: larger;
    padding: 60px 20px 40px 20px;
}

.hero-logo {
    width: 300px;
    max-width: 80%;
    height: auto;
    margin-bottom: -20px;
    animation: zoomInLogo 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    font-family: var(--font-main);
    animation: slideDownTitle 1s ease-out forwards;
}

.cyan-text-1 {
    color: #16e6d8;
    text-shadow: 0 0 15px rgba(22, 230, 216, 0.4);
}

.purple-neon-text {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(168, 85, 247, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #ffffff;
    animation: fadeInSubtitle 1.4s ease-out forwards;
}

.hero-cta {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    animation: fadeInSubtitle 1.6s ease-out forwards;
}

.hero-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #062b16;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-join-btn:hover {
    background: #2fe571;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.ocean-horizon-section {
    position: relative;
    width: 100%;
    /* Increased top padding from 60px to 250px (or use 20vh) to push the text down */
    padding: 170px 6% 60px 6%; 
}

.stem-hero-text {
    /* Increased responsive font size clamp from max 4.8rem to 8.5rem */
    font-size: clamp(3.2rem, 8.5vw, 8.5rem); 
    font-weight: 900;
    line-height: 1.05; /* Tightened line height so large text stacks cleanly */
    margin: 0;
    text-align: left;
    font-family: var(--font-main);
    z-index: 2;
    background: linear-gradient(135deg, #1ea5ba 20%, #2dd78d 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 0px #020712) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
}

.stem-hero-text .dark-word {
    background: linear-gradient(135deg, #027584 0%, #FFBF00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.ocean-trench-section {
    background: transparent; 
    padding: 90px 0;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
}

.news-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px; 
}

.news-row-wrapper {
    width: 100%;
}

.row-title {
    color: #38bdf8;
    font-size: 1.75rem;
    margin-bottom: 15px;
    font-family: var(--font-main);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.news-feed-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px; 
    width: 100%;
    scrollbar-width: none;
    align-items: stretch;
}

.news-feed-grid::-webkit-scrollbar {
    display: none;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    flex: 0 0 280px;
    display: block;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%; 
    background: rgba(6, 11, 25, 0.45); 
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.news-card-link:hover .news-card {
    transform: translateY(-12px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
}

.news-thumbnail-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #090d16;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-link:hover .news-thumbnail {
    transform: scale(1.06);
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.link-card-wrapper {
    height: auto;
}

.direct-link-card {
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed rgba(56, 189, 248, 0.25);
    background: rgba(14, 22, 43, 0.3);
}

.link-center-body {
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.link-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}

.fb-circle {
    background: rgba(24, 119, 242, 0.15);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.insta-circle {
    background: rgba(225, 48, 108, 0.15);
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.3);
}

.news-card-link:hover .direct-link-card {
    border-style: solid;
}

.news-card-link:hover .fb-circle {
    background: #1877f2;
    color: #ffffff;
    transform: translateX(4px);
}

.news-card-link:hover .insta-circle {
    background: #e1306c;
    color: #ffffff;
    transform: translateX(4px);
}

.platform-tag {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    font-family: var(--font-main);
}
.platform-tag.fb {
    background: rgba(24, 119, 242, 0.12);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.25);
}
.platform-tag.insta {
    background: rgba(225, 48, 108, 0.12);
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.25);
}

.news-title {
    font-size: 1rem;
    color: #f8fafc;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
    font-family: var(--font-main);
}

.slider-arrow {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.3s ease, visibility 0.3s ease;
}

.slider-arrow.right {
    right: -25px;
}

.slider-arrow.left {
    left: -25px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.slider-arrow.left.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.slider-arrow:hover {
    background: #38bdf8;
    color: #020813;
    transform: scale(1.05);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.ocean-floor-section {
    padding: 60px 10%;
    font-family: var(--font-main);
}

.sub-text-box {
    background-color: rgba(10, 25, 47, 0.9);
    border: 2px solid #facc15; 
    padding: 30px;
    border-radius: 12px;
    max-width: 480px; 
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.25); 
    color: white;
}

.sub-text-box h2 {
    color: #facc15;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
    padding-bottom: 8px;
}

.quote-item {
    margin-bottom: 20px;
}
.quote-item:last-child {
    margin-bottom: 0;
}

.quote-text {
    font-size: 14px;
    line-height: 1.5;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.quote-author {
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    color: #38bdf8;
    text-align: right;
    padding-right: 10px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .slider-arrow {
        display: none !important;
    }
    .news-feed-grid {
        gap: 16px;
    }
    .news-card-link {
        flex: 0 0 280px;
    }
    .direct-link-card {
        height: 252px; 
    }
    .ocean-floor-section {
        padding: 40px 20px;
    }
    .sub-text-box {
        max-width: 100%;
    }
}

/* =============================
   ROBOTICS COMMUNITY CTA & FAQ
   ============================= */
.robotics-cta-section {
    padding: 80px 20px;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(37, 211, 102, 0.12), transparent 60%),
        radial-gradient(ellipse at 20% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
        #030712;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.robotics-faq-section {
    border-top: none;
}

.robotics-cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.robotics-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: #67e8f9;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.robotics-cta-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #f8fafc;
    font-weight: 800;
    margin: 0 0 16px;
}

.robotics-cta-accent {
    background: linear-gradient(90deg, #22d3ee, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.robotics-cta-text p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 30px;
}

.robotics-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.robotics-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.robotics-cta-btn:hover {
    transform: translateY(-2px);
}

.robotics-cta-btn.primary {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(251, 146, 60, 0.15));
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.5);
}

.robotics-cta-btn.primary:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(251, 146, 60, 0.28));
}

.robotics-cta-btn.wa {
    background: #25d366;
    color: #062b16;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.robotics-cta-btn.wa:hover {
    background: #2fe571;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* =============================
   CSS DUAL-LANGUAGE TOGGLE RULES
   ============================= */
html[lang="en"] [lang="bn"] {
    display: none !important;
}

html[lang="bn"] [lang="en"] {
    display: none !important;
}

@keyframes zoomInLogo {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDownTitle {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSubtitle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =============================
   HOME: ENGLISH SEO INTRO + GUIDES CLUSTER
   ============================= */
.home-seo-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 46px;
    color: #94a3b8;
    line-height: 1.9;
}
.home-seo-intro h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #e2e8f0;
    line-height: 1.4;
}
.home-seo-intro p {
    font-size: 1rem;
    margin-bottom: 14px;
}
.home-seo-intro strong {
    color: #67e8f9;
    font-weight: 600;
}
.home-seo-intro a {
    color: #38bdf8;
}

.home-guides {
    width: 100%;
    padding: 70px 0 24px;
    background:
        radial-gradient(900px 420px at 10% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
        radial-gradient(900px 420px at 90% 20%, rgba(168, 85, 247, 0.10), transparent 60%),
        #050b18;
    border-top: 1px solid rgba(56, 189, 248, 0.14);
    border-bottom: 1px solid rgba(56, 189, 248, 0.14);
}
.home-guides .hub-grid {
    margin-bottom: 36px;
}
.home-guides .newsletter {
    margin: 0 0 34px;
}

@media (max-width: 768px) {
    .home-seo-intro {
        padding: 0 18px 34px;
    }
    .home-seo-intro h2 {
        font-size: 1.3rem;
    }
    .home-guides {
        padding: 48px 0 12px;
    }
}
