/* DealPick - Hostinger Coupon Codes */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #673DE6;
    --secondary-color: #2F1C6A;
    --accent-color: #FF5C35;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --dark-text: #1A1A1A;
    --gray-text: #666666;
    --border-color: #E0E0E0;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.header .container {
    height: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex: 1;
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark-text);
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    width: 180px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    padding: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn svg {
    display: block;
}

.search-btn:hover {
    background-color: var(--secondary-color);
}

.signin-btn {
    padding: 8px 20px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.signin-btn:hover {
    background-color: #e04a2a;
}

/* Profile Card Section */
.profile-card {
    background-color: var(--white);
}

.profile-cover {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

.profile-content {
    display: flex;
    gap: 30px;
    padding: 0 0 40px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.profile-avatar {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background-color: var(--white);
    border: 5px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.avatar-fallback {
    display: none;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 60px;
    font-weight: 900;
    align-items: center;
    justify-content: center;
}

.profile-info {
    flex: 1;
    padding-top: 70px;
}

.profile-header {
    margin-bottom: 12px;
}

.profile-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.verified-badge {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    background-color: var(--primary-color);
    padding: 3px;
    color: var(--white);
}

.profile-handle {
    color: var(--gray-text);
    font-size: 16px;
}

.profile-bio {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
    max-width: 600px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-text);
    font-size: 14px;
}

.meta-item svg {
    width: 16px;
    height: 16px;
}

.meta-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 13px;
    color: var(--gray-text);
}

.profile-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-btn.facebook {
    background-color: #1877f2;
}

.social-btn.twitter {
    background-color: #000;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.linkedin {
    background-color: #0a66c2;
}

.social-btn.youtube {
    background-color: #ff0000;
}

/* Coupons Section */
.coupons-section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray-text);
}

.coupons-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coupon-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

.coupon-left {
    flex: 0 0 140px;
    background-color: var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    text-align: center;
}

.coupon-discount {
    color: var(--white);
    font-weight: 900;
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.coupon-type {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.coupon-center {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coupon-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.coupon-description {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 10px;
    line-height: 1.5;
}

.coupon-expiry {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

.coupon-right {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    background-color: var(--light-bg);
    border-left: 1px dashed var(--border-color);
}

.coupon-code {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.code-text {
    background-color: var(--white);
    border: 2px dashed var(--primary-color);
    padding: 12px 15px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    letter-spacing: 1px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.code-visible {
    color: var(--primary-color);
}

.code-hidden {
    color: var(--gray-text);
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ccc 0%, #999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(3px);
    user-select: none;
}

.copy-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 25px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Remove old coupon responsive - handled in main responsive section */

/* Article Section */
.article-section {
    background-color: var(--white);
    padding: 50px 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.article-content p {
    color: var(--gray-text);
    margin-bottom: 15px;
    text-align: justify;
}

/* Footer Styles */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    padding-right: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo svg {
    display: block;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}

.footer-section h5 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

.footer-section address {
    font-style: normal;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info li svg {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.contact-info li a,
.contact-info li span {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li a:hover {
    color: var(--white);
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Newsletter Signup */
.newsletter-signup {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: 10px 16px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #e04a2a;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom-content p:last-child {
    margin-bottom: 0;
}

.footer-disclaimer {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-trust {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-trust span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* Page Specific Styles */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
}

.page-content {
    background-color: var(--white);
    padding: 50px 0;
    min-height: 50vh;
}

.page-content h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    margin-top: 30px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    color: var(--gray-text);
    margin-bottom: 15px;
}

.page-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-content ul li {
    color: var(--gray-text);
    margin-bottom: 8px;
    list-style: disc;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

/* Blog Section Styles */
.blog-section {
    padding: 50px 0;
}

.latest-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.featured-blogs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.blog-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card.featured {
    display: flex;
    flex-direction: column;
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.featured .blog-image img {
    height: 220px;
}

.blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.blog-category {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-date {
    color: var(--gray-text);
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured .blog-title {
    font-size: 22px;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: var(--secondary-color);
}

/* Search Page Styles */
.search-section {
    padding: 50px 0;
    min-height: 60vh;
}

.search-page-form {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}

.search-page-input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.search-page-input:focus {
    border-color: var(--primary-color);
}

.search-page-btn {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-page-btn:hover {
    background-color: var(--secondary-color);
}

.search-results {
    margin-top: 30px;
}

.search-results h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.no-results {
    text-align: center;
    color: var(--gray-text);
    padding: 40px 0;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* =====================================================
   MOBILE-FIRST RESPONSIVE STYLES
   Base styles are mobile, then scale up for larger screens
   ===================================================== */

/* Mobile Base Styles (up to 480px) */

/* Header - Mobile First */
.header {
    height: auto;
    padding: 10px 0;
}

.header-content {
    flex-direction: column;
    gap: 12px;
}

.logo svg {
    width: 120px;
    height: auto;
}

.nav-menu {
    width: 100%;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
}

.header-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.search-form {
    width: 100%;
    max-width: 280px;
}

.search-input {
    flex: 1;
    width: 100%;
    font-size: 16px;
    /* Prevents zoom on iOS */
}

.signin-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Profile Card - Mobile First */
.profile-cover {
    height: 150px;
}

.profile-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -40px;
    padding: 0 15px 30px;
    gap: 15px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-width: 3px;
}

.avatar-fallback {
    font-size: 36px;
}

.profile-info {
    padding-top: 10px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-name {
    font-size: 20px;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.verified-badge {
    width: 18px;
    height: 18px;
}

.profile-handle {
    font-size: 14px;
}

.profile-bio {
    font-size: 14px;
    line-height: 1.5;
}

.profile-meta {
    justify-content: center;
    gap: 12px;
    font-size: 12px;
}

.meta-item {
    font-size: 12px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
}

.profile-stats {
    justify-content: center;
    gap: 15px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 16px;
}

.stat-label {
    font-size: 11px;
}

.profile-social {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-btn {
    width: 38px;
    height: 38px;
}

.social-btn svg {
    width: 16px;
    height: 16px;
}

/* Coupons Section - Mobile First */
.coupons-section {
    padding: 30px 0;
}

.section-title {
    margin-bottom: 25px;
    padding: 0 10px;
}

.section-title h2 {
    font-size: 22px;
    line-height: 1.3;
}

.section-title p {
    font-size: 14px;
}

/* Coupon Card - Mobile First (Stacked Layout) */
.coupon-card {
    flex-direction: column;
}

.coupon-left {
    flex: 0 0 auto;
    padding: 15px;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.coupon-discount {
    font-size: 22px;
    margin-bottom: 0;
}

.coupon-type {
    font-size: 11px;
}

.coupon-center {
    padding: 15px;
}

.coupon-title {
    font-size: 16px;
}

.coupon-description {
    font-size: 13px;
}

.coupon-expiry {
    font-size: 12px;
}

.coupon-right {
    flex: 0 0 auto;
    border-left: none;
    border-top: 1px dashed var(--border-color);
    padding: 15px;
}

.coupon-code {
    flex-direction: column;
    gap: 10px;
}

.code-text {
    font-size: 13px;
    padding: 10px;
}

.copy-btn {
    padding: 12px 20px;
    font-size: 13px;
}

/* Article Section - Mobile First */
.article-section {
    padding: 30px 0;
}

.article-content {
    padding: 0 10px;
}

.article-content h2 {
    font-size: 22px;
}

.article-content h3 {
    font-size: 18px;
    margin-top: 25px;
}

.article-content p {
    font-size: 14px;
    text-align: left;
}

/* Footer - Mobile First */
.footer {
    padding: 40px 0 0;
}

.footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
}

.footer-about {
    padding-right: 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo svg {
    width: 100px;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    font-size: 14px;
}

.footer-section p {
    font-size: 13px;
}

.footer-social {
    justify-content: center;
}

.footer-social a {
    width: 36px;
    height: 36px;
}

.contact-info li {
    justify-content: center;
    font-size: 13px;
}

.newsletter-form {
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input,
.newsletter-form button {
    width: 100%;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-content p {
    font-size: 12px;
}

.footer-trust {
    flex-direction: column;
    gap: 8px;
}

.footer-trust span {
    font-size: 12px;
}

/* Page Specific - Mobile First */
.page-header {
    padding: 25px 0;
}

.page-header h1 {
    font-size: 24px;
}

.page-header p {
    font-size: 14px;
}

.page-content {
    padding: 30px 0;
}

.page-content h2 {
    font-size: 20px;
}

.page-content p,
.page-content ul li {
    font-size: 14px;
}

/* Blog Cards - Mobile First */
.blog-section {
    padding: 30px 0;
}

.featured-blogs {
    grid-template-columns: 1fr;
    gap: 20px;
}

.blogs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.blog-image img {
    height: 180px;
}

.featured .blog-image img {
    height: 200px;
}

.blog-content {
    padding: 15px;
}

.blog-title {
    font-size: 16px;
}

.featured .blog-title {
    font-size: 18px;
}

.blog-excerpt {
    font-size: 13px;
}

/* Search Page - Mobile First */
.search-section {
    padding: 30px 0;
}

.search-page-form {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.search-page-input {
    padding: 12px 15px;
    font-size: 16px;
    /* Prevents zoom on iOS */
}

.search-page-btn {
    padding: 12px 20px;
}

/* Contact Form - Mobile First */
.contact-form {
    padding: 0 10px;
}

.form-group input,
.form-group textarea {
    font-size: 16px;
    /* Prevents zoom on iOS */
    padding: 12px;
}

.submit-btn {
    width: 100%;
    padding: 14px 30px;
}

/* Related Articles - Mobile First */
.related-articles {
    padding: 30px 0;
}

.related-articles h2 {
    font-size: 22px;
    margin-bottom: 25px;
}

.related-grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.related-card {
    padding: 18px;
}

.related-card h3 {
    font-size: 16px;
}

.related-card p {
    font-size: 13px;
}

/* Breadcrumb - Mobile First */
.breadcrumb {
    padding: 8px 0;
}

.breadcrumb-list {
    font-size: 12px;
}

.breadcrumb-list .separator {
    margin: 0 4px;
    font-size: 10px;
}

/* =====================================================
   TABLET STYLES (min-width: 481px)
   ===================================================== */
@media (min-width: 481px) {
    .profile-cover {
        height: 180px;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
    }

    .profile-name {
        font-size: 22px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .coupon-discount {
        font-size: 24px;
    }

    .coupon-title {
        font-size: 18px;
    }

    .article-content h2 {
        font-size: 26px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   SMALL DESKTOP STYLES (min-width: 768px)
   ===================================================== */
@media (min-width: 768px) {
    .header {
        height: auto;
        padding: 15px 0;
    }

    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo svg {
        width: 140px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        gap: 25px;
    }

    .header-right {
        width: auto;
    }

    .search-form {
        width: auto;
        max-width: none;
    }

    .search-input {
        width: 160px;
    }

    /* Profile */
    .profile-cover {
        height: 220px;
    }

    .profile-content {
        flex-direction: row;
        text-align: left;
        margin-top: -50px;
        padding: 0 0 35px;
        gap: 25px;
    }

    .profile-avatar {
        width: 130px;
        height: 130px;
    }

    .profile-header {
        align-items: flex-start;
    }

    .profile-name {
        font-size: 24px;
        justify-content: flex-start;
    }

    .profile-meta {
        justify-content: flex-start;
    }

    .profile-stats {
        justify-content: flex-start;
        gap: 25px;
    }

    .profile-social {
        justify-content: flex-start;
    }

    /* Coupons */
    .coupons-section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .coupon-card {
        flex-direction: row;
    }

    .coupon-left {
        flex: 0 0 120px;
        flex-direction: column;
        padding: 20px 15px;
    }

    .coupon-discount {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .coupon-center {
        padding: 20px 25px;
    }

    .coupon-title {
        font-size: 18px;
    }

    .coupon-right {
        flex: 0 0 180px;
        border-left: 1px dashed var(--border-color);
        border-top: none;
        padding: 20px 15px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-about,
    .footer-section {
        text-align: left;
    }

    .footer-logo {
        justify-content: flex-start;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .contact-info li {
        justify-content: flex-start;
    }

    .newsletter-form {
        flex-direction: row;
        gap: 0;
    }

    .footer-trust {
        flex-direction: row;
        gap: 20px;
    }

    /* Blog */
    .featured-blogs {
        grid-template-columns: repeat(2, 1fr);
    }

    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Search */
    .search-page-form {
        flex-direction: row;
        gap: 10px;
    }

    /* Related Articles */
    .related-articles {
        padding: 50px 0;
    }

    .related-articles h2 {
        font-size: 26px;
    }

    /* Breadcrumb */
    .breadcrumb {
        padding: 10px 0;
    }

    .breadcrumb-list {
        font-size: 13px;
    }

    .breadcrumb-list .separator {
        margin: 0 6px;
    }

    /* Article */
    .article-section {
        padding: 40px 0;
    }

    .article-content p {
        text-align: justify;
    }
}

/* =====================================================
   DESKTOP STYLES (min-width: 992px)
   ===================================================== */
@media (min-width: 992px) {
    .header {
        height: 70px;
        padding: 0;
    }

    .header-content {
        flex-wrap: nowrap;
    }

    .logo svg {
        width: 154px;
    }

    .nav-menu {
        order: 0;
        width: auto;
        flex: 1;
        gap: 30px;
    }

    .search-input {
        width: 180px;
    }

    .signin-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    /* Profile */
    .profile-cover {
        height: 280px;
    }

    .profile-content {
        margin-top: -60px;
        padding: 0 0 40px;
        gap: 30px;
    }

    .profile-avatar {
        width: 150px;
        height: 150px;
        border-width: 5px;
    }

    .avatar-fallback {
        font-size: 60px;
    }

    .profile-info {
        padding-top: 70px;
    }

    .profile-name {
        font-size: 28px;
    }

    .verified-badge {
        width: 22px;
        height: 22px;
    }

    .profile-handle {
        font-size: 16px;
    }

    .profile-bio {
        font-size: 16px;
        max-width: 600px;
    }

    .profile-meta {
        gap: 20px;
    }

    .meta-item {
        font-size: 14px;
    }

    .meta-item svg {
        width: 16px;
        height: 16px;
    }

    .profile-stats {
        gap: 30px;
        padding: 15px 0;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 13px;
    }

    .profile-social {
        gap: 12px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .social-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Coupons */
    .coupons-section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .coupon-left {
        flex: 0 0 140px;
        padding: 25px 20px;
    }

    .coupon-discount {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .coupon-type {
        font-size: 12px;
    }

    .coupon-center {
        padding: 25px 30px;
    }

    .coupon-title {
        font-size: 20px;
    }

    .coupon-description {
        font-size: 14px;
    }

    .coupon-expiry {
        font-size: 13px;
    }

    .coupon-right {
        flex: 0 0 220px;
        padding: 25px 20px;
    }

    .coupon-code {
        gap: 12px;
    }

    .code-text {
        padding: 12px 15px;
        font-size: 15px;
    }

    .copy-btn {
        padding: 14px 25px;
        font-size: 14px;
    }

    /* Article */
    .article-section {
        padding: 50px 0;
    }

    .article-content h2 {
        font-size: 28px;
    }

    .article-content h3 {
        font-size: 22px;
        margin-top: 35px;
    }

    .article-content p {
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding: 60px 0 0;
    }

    .footer-content {
        grid-template-columns: 2fr repeat(4, 1fr);
        gap: 40px;
    }

    .footer-about {
        padding-right: 20px;
    }

    .footer-logo svg {
        width: 120px;
    }

    .footer-section h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .footer-section ul li {
        margin-bottom: 12px;
    }

    .footer-section p {
        font-size: 14px;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
    }

    .footer-bottom {
        padding: 25px 0;
    }

    .footer-bottom-content p {
        font-size: 14px;
    }

    .footer-trust span {
        font-size: 13px;
    }

    /* Page Content */
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .page-content {
        padding: 50px 0;
    }

    .page-content h2 {
        font-size: 24px;
    }

    /* Blog */
    .blog-section {
        padding: 50px 0;
    }

    .featured-blogs {
        gap: 30px;
    }

    .blogs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .blog-image img {
        height: 200px;
    }

    .featured .blog-image img {
        height: 220px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 18px;
    }

    .featured .blog-title {
        font-size: 22px;
    }

    .blog-excerpt {
        font-size: 14px;
    }

    /* Search */
    .search-section {
        padding: 50px 0;
    }

    .search-page-form {
        margin-bottom: 40px;
    }

    .search-page-input {
        padding: 15px 20px;
    }

    .search-page-btn {
        padding: 15px 30px;
    }

    /* Contact Form */
    .submit-btn {
        width: auto;
        padding: 15px 40px;
    }

    /* Related Articles */
    .related-articles {
        padding: 60px 0;
    }

    .related-articles h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .related-card {
        padding: 24px;
    }

    .related-card h3 {
        font-size: 18px;
    }

    .related-card p {
        font-size: 14px;
    }

    /* Breadcrumb */
    .breadcrumb {
        padding: 12px 0;
    }

    .breadcrumb-list {
        font-size: 14px;
    }

    .breadcrumb-list .separator {
        margin: 0 8px;
        font-size: 12px;
    }
}

/* =====================================================
   LARGE DESKTOP STYLES (min-width: 1200px)
   ===================================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .search-input {
        width: 200px;
    }

    .coupon-right {
        flex: 0 0 240px;
    }
}

/* =====================================================
   UTILITY CLASSES FOR MOBILE
   ===================================================== */

/* Hide on mobile, show on tablet+ */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
}

/* Hide on tablet+, show on mobile */
.show-mobile {
    display: block;
}

@media (min-width: 768px) {
    .show-mobile {
        display: none;
    }
}

/* Touch-friendly tap targets */
@media (max-width: 767px) {

    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-menu a {
        padding: 8px 4px;
        min-height: auto;
        min-width: auto;
    }

    .footer-section ul li a {
        display: inline-block;
        padding: 6px 0;
        min-height: auto;
    }
}

/* Smooth scrolling for better mobile UX */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Better text rendering on mobile */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   MOBILE HAMBURGER MENU
   ===================================================== */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark-text);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(47, 28, 106, 0.95);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 25px;
}

.mobile-nav a {
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 10px 20px;
}

.mobile-nav a:hover {
    color: var(--accent-color);
}

/* Show hamburger only on mobile */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav-overlay {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .header-right {
        display: none;
    }

    .logo {
        flex: 1;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-nav-overlay {
        display: none !important;
    }

    .nav-menu {
        display: flex;
    }

    .header-right {
        display: flex;
    }
}