/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Wix Madefor Display", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: 110px 0 0px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #a4bfcf84 30%, white 70%);
}

/* Floating Icons in Hero */
.hero-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-icon {
    position: absolute;
    font-size: 4rem;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.hero-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    color: #3b82f6;
    animation-delay: 0s;
}

.hero-icon:nth-child(2) {
    top: 30%;
    right: 20%;
    color: #10b981;
    animation-delay: 1s;
}

.hero-icon:nth-child(3) {
    top: 50%;
    left: 5%;
    color: #f59e0b;
    animation-delay: 2s;
}

.hero-icon:nth-child(4) {
    top: 10%;
    right: 5%;
    color: #ef4444;
    animation-delay: 3s;
}

.hero-icon:nth-child(5) {
    top: 30%;
    left: 20%;
    color: #8b5cf6;
    animation-delay: 4s;
}

.hero-icon:nth-child(6) {
    top: 50%;
    right: 5%;
    color: #07c5e7;
    animation-delay: 5s;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
}

.hero-macbook {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.hero-content h1 {
    color: black;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: #869cbe;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stats .stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* MacBook Frame */
.macbook-frame {
    width: 700px;
    height: 450px;
    background: #d1d5db;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.macbook-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.macbook-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
}
.macbook-image-placeholder img{
 width: 100%;      /* makes image fit container */
  height: auto;     /* keeps aspect ratio */
  object-fit: cover; /* crops to fill without stretching */
}
.macbook-image-placeholder p {
    margin-top: 1rem;
    font-size: 1rem;
    color: #64748b;
}

.macbook-base {
    width: 100%;
    height: 8px;
    background: #9ca3af;
    border-radius: 0 0 15px 15px;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.visit-website-btn {
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

/* Main Section */
.main-section {
    padding: 80px 0;
    background-color: #c2f2ff23;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.main-content {
    display: flex;
    gap: 40px;
}

/* Enhanced Blog Content Styling */
.content-left {
    flex: 1;
    min-width: 0;
    /* Prevents flex item from overflowing */
}

.content-block {
    /* background-color: #fff; */
    border-radius: 12px;
    padding: 50px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-block h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #1a1a1a;
    line-height: 1.3;
}

.content-block h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #333;
}

.content-block h4 {
    font-size: 24px;
    font-weight: 400;
    color: #036292;
    line-height: 1.3;
    text-transform: uppercase;
    padding: 5px 10px;
    background-color: #f0f2f4;
    display: inline;
}

.content-block p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #444;
    font-size: 20px;
}

.content-block ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.content-block li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
    font-size: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #555;
    margin: 10px 0 20px 0;
    border-bottom: 1px solid black;
    padding-bottom: 5px;
}

.blog-meta .meta-left {
    display: flex;
    gap: 20px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: #0d6efd;
    /* Bootstrap blue (change if you want) */
    font-size: 0.9rem;
}

/* Removed emoji styling */
.content-block h2 em,
.content-block h3 em {
    font-style: normal;
    display: inline-block;
    margin-right: 5px;
    transform: scale(1.2);
}

/* Image styling within content */
.content-block img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


/* Blockquote styling */
.content-block blockquote {
    border-left: 4px solid #2563eb;
    padding: 15px 20px;
    margin: 20px 0;
    background-color: #f8fafc;
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}

/* Code block styling */
.content-block pre {
    background-color: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: monospace;
}

/* Link styling */
.content-block a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px dotted #2563eb;
    transition: all 0.3s ease;
}

.content-block a:hover {
    color: #1e40af;
    border-bottom: 1px solid #1e40af;
}

.content-right {
    width: 350px;
    flex-shrink: 0;
}

.content-left h2 {
    font-size: 42px;
    margin-bottom: 20px;
    margin-top: 20px;
    color: #041a77;
    font-weight: 600;
}

.content-left p {
    margin-bottom: 30px;
    color: #666;
}

.content-block h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.blog-tags h3 {
    margin-bottom: 10px;
    color: #333;
}

.blog-tags p {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #0d6efd;
}


.blog-tags h3 {
    margin-bottom: 10px;
    color: #333;
}

.blog-tags p {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #0d6efd;
}

/* Sidebar Styling */
.sidebar-widget {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Categories */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #555;
}

/* Popular Guides */
.popular-guides {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-guides li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.popular-guides i {
    color: #0066cc;
    margin-right: 8px;
    font-size: 14px;
}

.popular-guides a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-guides a:hover {
    color: #0066cc;
}

/* Subscribe Box */
.subscribe-widget {
    position: sticky;
    top: 70px;
    margin-bottom: 0;
}

.subscribe-widget p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.subscribe-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.subscribe-form button {
    width: 100%;
    padding: 12px;
    background: #0066cc;
    color: #fff;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: #004c99;
}

/* Subscriber registration specific styles */
.subscribe-form input {
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.subscribe-form button {
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.subscribe-form button:disabled {
    background: #9ca3af !important;
    cursor: not-allowed;
    transform: none;
}

.subscribe-form button.loading {
    position: relative;
}

.subscribe-form button.success {
    background: #10b981 !important;
}

.subscribe-form button.success:hover {
    background: #059669 !important;
}

/* Subscription message styling */
#subscription-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    transition: opacity 0.3s ease;
}

#subscription-message.success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

#subscription-message.error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

/* Loading animations */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Input validation styling */
.subscribe-form input[style*="border-color: rgb(16, 185, 129)"] {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.subscribe-form input[style*="border-color: rgb(239, 68, 68)"] {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}


/* Form reset state */
.subscribe-form input.cleared,
.subscribe-form input[value=""] {
    border-color: #e5e7eb !important;
    box-shadow: none !important;
}

.subscribe-form input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Category Subscription Styles */
.category-subscription {
    margin-top: 15px;
}

.subscription-note {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.subscription-list {
    margin-bottom: 20px;
}

.category-item {
    margin-bottom: 12px;
    list-style: none;
}

.category-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.category-checkbox-label:hover {
    background-color: #f8fafc;
}

.category-checkbox {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.category-name {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.category-checkbox:checked+.checkmark+.category-name {
    color: #2563eb;
    font-weight: 600;
}

.subscription-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.subscription-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.subscription-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.subscription-btn.loading {
    position: relative;
    color: transparent;
}

.subscription-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-note {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8fafc;
    border-radius: 6px;
}

.login-note a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.login-note a:hover {
    text-decoration: underline;
}

/* Success/Error Messages */
.subscription-message {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
    display: none;
}

.subscription-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.subscription-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .content-right {
        width: 100%;
    }
}

/* Hero Icon Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(5deg);
    }

    66% {
        transform: translateY(-10px) rotate(-3deg);
    }
}