/* Single Blog Page Styles - Professional Theme Design */
:root {
    --primary: #1A886D;
    --primary-dark: #0e5f4a;
    --primary-light: #e8f5f0;
    --primary-soft: rgba(26, 136, 109, 0.1);
    --secondary: #f5f7fa;
    --accent: #ffb347;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --border-light: #e2e8f0;
    --border-focus: #1A886D;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 30px rgba(26, 136, 109, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

a:hover {
    color: inherit;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.read-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

#hero h1 {
    font-weight: 700;
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#hero p {
    max-width: 672px;
    font-size: 20px;
    color: var(--text-light);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.7s ease-out forwards;
    line-height: 1.6;
}

/* Single Card Section */
#single-card {
    padding: 60px 20px;
    background-color: #f8fafc;
}

#single-card .container {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-card {
    padding: 40px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.blog-card .tag {
    margin-bottom: 24px;
}

.blog-card .tag button {
    border: none;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    cursor: text;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(26, 136, 109, 0.2);
}

.blog-card .title {
    width: 100%;
    margin-bottom: 20px;
}

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

.blog-card .text {
    width: 100%;
    margin-bottom: 30px;
}

.blog-card .text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 20px;
}

.blog-card .text h1,
.blog-card .text h2,
.blog-card .text h3 {
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.blog-card .text h1 {
    font-size: 28px;
}

.blog-card .text h2 {
    font-size: 24px;
}

.blog-card .text h3 {
    font-size: 20px;
}

.blog-card .text ul,
.blog-card .text ol {
    margin: 20px 0;
    padding-left: 20px;
    color: var(--text-muted);
}

.blog-card .text li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.blog-card .text blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--primary-soft);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-dark);
}

.blog-card .text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

.blog-card .text a {
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition);
}

.blog-card .text a:hover {
    color: var(--primary-dark);
}

.blog-card .info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.blog-card .info span {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    background: var(--primary-soft);
    padding: 6px 16px;
    border-radius: 50px;
}

.blog-card .info span svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.blog-card .info-2 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    font-size: 15px;
    color: var(--text-muted);
}

.blog-card .info-2 p {
    margin-bottom: 0;
    font-weight: 600;
    background: var(--primary-soft);
    padding: 6px 20px;
    border-radius: 50px;
    color: var(--primary-dark);
    display: inline-block;
}

/* Cards Section */
#cards {
    padding: 60px 20px 80px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#cards h2 {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 48px;
    color: var(--text-dark);
    position: relative;
    text-align: center;
}

#cards h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.cards-container {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.5s ease-out;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card:hover::before {
    opacity: 1;
}

.card .tag {
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    margin-right: auto;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card .title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    margin-right: auto;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--transition);
}

.card:hover .title {
    color: var(--primary);
}

.card .desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    margin-right: auto;
    flex: 1;
}

.card .info {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.card .info p {
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.card .info p svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.card .read-more {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    gap: 10px;
    width: 100%;
    outline: none;
    border: 1.5px solid var(--border-light);
    background: transparent;
    border-radius: 50px;
    color: var(--text-dark);
    transition: var(--transition);
    cursor: pointer;
    margin-top: auto;
}

.card .read-more a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.card .read-more:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    color: var(--text-light);
    transform: translateX(4px);
}

.card .read-more:hover svg {
    stroke: var(--text-light);
}

/* Load More Button */
#load-more-btn {
    margin-top: 48px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(26, 136, 109, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 136, 109, 0.3);
}

#load-more-btn:active {
    transform: translateY(0);
}

/* Subscribe Section */
#subscribe {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

#subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

#subscribe h2 {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

#subscribe p {
    max-width: 600px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.search-bar {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-bar .input-group {
    display: flex;
    gap: 12px;
    background: #ffffff;
    padding: 5px;
    border-radius: 60px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.search-bar .input-group input {
    flex: 1;
    background-color: transparent;
    color: var(--text-dark);
    border-radius: 50px;
    padding: 14px 20px;
    outline: none;
    border: none;
    font-size: 15px;
}

.search-bar .input-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.search-bar .input-group input:focus {
    outline: none;
}

.search-bar .input-group button {
    border-radius: 50px;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.search-bar .input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 136, 109, 0.3);
}

.search-bar .input-group button:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Responsive Design */

/* Tablet Landscape (1024px - 1200px) */
@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 20px;
    }

    #hero h1 {
        font-size: 42px;
    }

    #hero p {
        font-size: 18px;
    }

    .blog-card .title h3 {
        font-size: 32px;
    }
}

/* Tablet Portrait (768px - 1024px) */
@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    #hero h1 {
        font-size: 36px;
    }

    #hero p {
        font-size: 16px;
    }

    .blog-card {
        padding: 30px;
    }

    .blog-card .title h3 {
        font-size: 28px;
    }

    .blog-card .text p {
        font-size: 15px;
    }

    #cards h2 {
        font-size: 28px;
    }

    #subscribe h2 {
        font-size: 28px;
    }
}

/* Mobile Landscape (576px - 768px) */
@media (max-width: 768px) {
    #hero {
        padding: 50px 20px;
    }

    #hero h1 {
        font-size: 32px;
    }

    #hero p {
        font-size: 15px;
        padding: 0 15px;
    }

    #single-card {
        padding: 40px 15px;
    }

    .blog-card {
        padding: 25px;
    }

    .blog-card .title h3 {
        font-size: 24px;
    }

    .blog-card .text p {
        font-size: 14px;
        line-height: 1.7;
    }

    .blog-card .info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .blog-card .info span {
        width: 100%;
        justify-content: center;
    }

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

    #cards {
        padding: 40px 15px 60px;
    }

    #cards h2 {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .card {
        padding: 24px;
    }

    .card .info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card .info p {
        width: 100%;
    }

    .search-bar .input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 15px;
    }

    .search-bar .input-group input {
        background: #ffffff;
        border: 1px solid var(--border-light);
        width: 100%;
    }

    .search-bar .input-group button {
        width: 100%;
        padding: 14px 24px;
    }

    #load-more-btn {
        padding: 10px 30px;
        font-size: 14px;
    }
}

/* Mobile Portrait (320px - 576px) */
@media (max-width: 576px) {
    #hero h1 {
        font-size: 26px;
    }

    #hero p {
        font-size: 14px;
    }

    .blog-card {
        padding: 20px;
    }

    .blog-card .tag button {
        font-size: 12px;
        padding: 6px 16px;
    }

    .blog-card .title h3 {
        font-size: 20px;
    }

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

    .blog-card .text h1 {
        font-size: 22px;
    }

    .blog-card .text h2 {
        font-size: 20px;
    }

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

    .blog-card .text blockquote {
        padding: 15px 20px;
        font-size: 14px;
    }

    .blog-card .info span {
        font-size: 13px;
        padding: 5px 12px;
    }

    .blog-card .info-2 p {
        font-size: 13px;
        padding: 5px 16px;
    }

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

    .card .desc {
        font-size: 13px;
    }

    .card .read-more {
        font-size: 13px;
        padding: 8px 16px;
    }

    #cards h2 {
        font-size: 22px;
    }

    #subscribe {
        padding: 60px 15px;
    }

    #subscribe h2 {
        font-size: 22px;
    }

    #subscribe p {
        font-size: 14px;
    }

    .search-bar .input-group input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .search-bar .input-group button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Small Mobile (up to 380px) */
@media (max-width: 380px) {
    #hero h1 {
        font-size: 22px;
    }

    #hero p {
        font-size: 13px;
    }

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

    .blog-card .text p {
        font-size: 12px;
    }

    .blog-card .info span {
        font-size: 12px;
    }

    .card .info p {
        font-size: 11px;
    }

    .card .info p svg {
        width: 12px;
        height: 12px;
    }

    #subscribe h2 {
        font-size: 20px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }

    .card:hover .title {
        color: var(--text-dark);
    }

    .card .read-more:hover {
        background: transparent;
        color: var(--text-dark);
        transform: none;
    }

    .card .read-more:hover svg {
        stroke: currentColor;
    }

    .blog-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    #hero {
        background: none;
        color: #000;
        padding: 20px;
    }

    #hero h1, #hero p {
        color: #000;
    }

    .blog-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .blog-card::before {
        display: none;
    }

    #cards, #subscribe, #load-more-btn, .search-bar button {
        display: none;
    }
}
