/* CodeAmble 2026 Blog & Advertisement Hub Stylesheet */

/* Custom theme enhancements */
:root {
    --blog-glow-blue: 0 0 25px rgba(0, 206, 201, 0.4);
    --blog-glow-purple: 0 0 25px rgba(108, 92, 231, 0.4);
    --blog-glow-accent: 0 0 25px rgba(232, 67, 147, 0.4);
    --glass-card: rgba(10, 11, 24, 0.55);
}

/* Immersive background decoration */
.blog-page {
    position: relative;
    overflow: hidden;
}

.blog-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    pointer-events: none;
    z-index: 1;
}

.blog-glow-orb {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    animation: floatOrb 20s ease-in-out infinite alternate;
}

.blog-glow-orb--1 {
    top: 10%;
    left: -10%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.blog-glow-orb--2 {
    top: 50%;
    right: -10%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

.blog-glow-orb--3 {
    bottom: 10%;
    left: 20%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-40px) scale(1.1); }
}

/* Hero Section */
.blog-hero {
    position: relative;
    padding: 180px 0 100px;
    z-index: 10;
    text-align: center;
    background: radial-gradient(circle at bottom center, rgba(108, 92, 231, 0.08), transparent 70%);
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 206, 201, 0.08);
    border: 1px solid rgba(0, 206, 201, 0.25);
    color: var(--secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(0, 206, 201, 0.1);
    margin-bottom: 25px;
}

.blog-hero-badge i {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 8px var(--secondary); }
}

.blog-hero h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.blog-hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Responsive Side-by-Side Grid */
.blog-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .blog-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Glassmorphism Cards */
.blog-glass-card {
    background: var(--glass-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.blog-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 60%);
    pointer-events: none;
}

.blog-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 92, 231, 0.25);
    box-shadow: 0 25px 60px rgba(108, 92, 231, 0.15), 0 0 30px rgba(0, 206, 201, 0.05);
}

/* Event Details & Overview */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
}

.overview-card {
    text-align: center;
}

.overview-card-icon {
    width: 70px;
    height: 70px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--secondary);
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 206, 201, 0.5);
    transition: transform 0.3s;
}

.overview-card:hover .overview-card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent);
    background: rgba(232, 67, 147, 0.1);
    border-color: rgba(232, 67, 147, 0.2);
}

.overview-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 12px;
}

.overview-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Interactive Hackathon Roadmap Simulator */
.calculator-section {
    margin-bottom: 100px;
    position: relative;
    z-index: 10;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group-custom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group-custom label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
}

.option-card-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.option-card-btn i {
    font-size: 1.5rem;
}

.option-card-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.option-card-btn:hover {
    border-color: rgba(108, 92, 231, 0.3);
    color: #fff;
    background: rgba(108, 92, 231, 0.05);
}

.option-card-btn.active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.15));
    border-color: var(--secondary);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 206, 201, 0.15);
    transform: translateY(-2px);
}

/* Custom Cyber Range Slider */
.slider-container {
    position: relative;
    padding-top: 10px;
}

.cyber-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
}

.cyber-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--secondary);
    transition: transform 0.1s, background-color 0.2s;
}

.cyber-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 8px;
}

/* Result Visualization console */
.calculator-results {
    background: rgba(5, 6, 14, 0.85);
    border: 1px solid rgba(0, 206, 201, 0.15);
    border-radius: 20px;
    padding: 30px;
    box-shadow: inset 0 0 20px rgba(0, 206, 201, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.console-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--secondary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.console-dot--red { background: #ff7675; }
.console-dot--yellow { background: #ffeaa7; }
.console-dot--green { background: #55efc4; }

.roadmap-display {
    min-height: 250px;
}

.roadmap-step-box {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.roadmap-step-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.roadmap-step-subtitle {
    font-size: 0.85rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 700;
}

.roadmap-tasks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.roadmap-tasks-list li {
    display: flex;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.roadmap-tasks-list li i {
    color: var(--secondary);
    margin-top: 3px;
}

.roadmap-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 20px;
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(232, 67, 147, 0.3);
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.console-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Timeline Layout */
.timeline-section {
    margin-bottom: 100px;
    position: relative;
    z-index: 10;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

.timeline-item-left {
    float: left;
    width: 45%;
    text-align: right;
}

.timeline-item-right {
    float: right;
    width: 45%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--secondary);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--secondary), inset 0 0 5px var(--secondary);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--secondary);
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 20px var(--secondary);
}

.timeline-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.timeline-item:hover .timeline-item-card {
    border-color: rgba(108, 92, 231, 0.2);
    background: rgba(108, 92, 231, 0.03);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.1);
    transform: translateY(-2px);
}

.timeline-item-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 10px;
}

.timeline-item-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Timeline specific badges */
.timeline-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.timeline-badge--free { background: rgba(85, 239, 196, 0.1); border: 1px solid rgba(85, 239, 196, 0.2); color: #55efc4; }
.timeline-badge--paid { background: rgba(250, 177, 160, 0.1); border: 1px solid rgba(250, 177, 160, 0.2); color: #fab1a0; }
.timeline-badge--waiver { background: rgba(116, 185, 255, 0.1); border: 1px solid rgba(116, 185, 255, 0.2); color: #74b9ff; }

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-item-left, .timeline-item-right {
        width: calc(100% - 45px);
        float: right;
        text-align: left;
        padding-left: 15px;
    }
    .timeline-item:hover .timeline-dot {
        transform: scale(1.2);
    }
}

/* Accordion FAQs */
.faq-section {
    margin-bottom: 100px;
    position: relative;
    z-index: 10;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover, .faq-item.active {
    border-color: rgba(108, 92, 231, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.faq-trigger {
    width: 100%;
    padding: 24px 30px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-trigger h4 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: none;
    transition: color 0.3s;
}

.faq-item.active .faq-trigger h4 {
    color: var(--secondary);
}

.faq-icon-box {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.faq-item.active .faq-icon-box {
    transform: rotate(180deg);
    background: var(--secondary);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--secondary);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-content-inner {
    padding: 0 30px 30px;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Call to Action Container */
.cta-banner-wrapper {
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
}

.cta-banner {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15) 0%, rgba(0, 206, 201, 0.1) 100%);
    border: 1px solid rgba(0, 206, 201, 0.25);
    box-shadow: 0 20px 50px rgba(0, 206, 201, 0.08), inset 0 0 30px rgba(108, 92, 231, 0.1);
    text-align: center;
    padding: 60px 40px;
}

.cta-banner h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Responsive enhancements for mobile devices */
@media (max-width: 768px) {
    .section {
        padding: 2.5rem 4% !important;
    }
    .blog-glass-card {
        padding: 20px 12px !important;
        border-radius: 16px !important;
    }
    .calculator-results {
        padding: 15px 12px !important;
        gap: 15px !important;
        border-radius: 16px !important;
    }
    .option-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .option-card-btn {
        padding: 12px 8px !important;
        gap: 6px !important;
    }
    .option-card-btn i {
        font-size: 1.25rem !important;
    }
    .option-card-btn span {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .slider-labels {
        font-size: 0.65rem !important;
    }
    .roadmap-metrics {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 12px !important;
    }
    .metric-value {
        font-size: 1.2rem !important;
    }
    .roadmap-step-title {
        font-size: 1.15rem !important;
    }
    .faq-trigger {
        padding: 18px 15px !important;
    }
    .faq-content-inner {
        padding: 0 15px 15px !important;
    }
}




