
 {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  background-color: #fcf9f2;
  color: #2e1704;
}

.brand, h1, h2, h3, h4 {
    font-family: "Yeseva One", serif; 
    font-weight: 300;
    font-style: normal;
    letter-spacing: 1px; 
}

.tagline {
    font-family: "Montserrat", sans-serif; 
    font-size: 0.85rem;
    color: #2e1704;
}

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

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(243, 239, 231, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid #e0dbd1;
}

.brand {
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    letter-spacing: 1px;
}

nav a {
    text-decoration: none;
    color: #2e1704;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('cover-desktop.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-banner {
    background-color: rgba(255, 255, 255, 0.7);
    width: 100%; 
    padding: 40px 20px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.hero-banner h3 {
    color: #211002;   
    font-family: "Playwrite AU TAS", serif;
    font-size: 2.5rem;
    margin: 0;
    max-width: 900px;  
    margin: 0 auto;
}

.about {
    padding: 60px 20px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile */
    gap: 20px;
}

.article-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.article-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 68, 63, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.article-overlay span {
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
}

.article-item:hover .article-overlay {
    opacity: 1;
}

.article-item:hover img {
    transform: scale(1.05);
}

.article-grid, .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.flip-card {
    background-color: transparent;
    aspect-ratio: 1 / 1;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

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

.card-text {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.flip-card-back {
    background-color: #e0dbd1;
    color: #4a443f;
    transform: rotateY(180deg);
    padding: 30px;
    text-align: center;
}

.article-card {
    background: #faf9f6;
    border-radius: 15px; /* Rounded edges */
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #e0dbd1;
}

.intro-article-card, .conclusion-card {
    padding: 40px;
    text-align: center;
    font-style: italic;
    line-height: 1.8;
    font-size: 1.4rem;
}

.content-article-card {
    display: flex;
    align-items: stretch;
}

.article-card-img {
    flex: 1; 
    min-height: 400px;
}

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

.article-card-text {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-card-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.affiliate-mini {
    margin-top: 20px;
    padding: 10px 15px;
    background: #f3efe7;
    border-radius: 8px;
    font-size: 0.9rem;
}

.affiliate-mini a {
    color: #8b5e3c;
    font-weight: bold;
    text-decoration: none;
}



@media (max-width: 767px) { 
    .hero {
        background-image: url('cover-mobile.png'); 
        height: 80vh; 
        background-position: center center; 
    }
    .hero-banner {
            padding: 30px 15px;
    }
    .hero-banner h1 {
        font-size: 1.5rem;
    }

    .article-grid, .card-grid {
        grid-template-columns: 1fr;
    }
    .article-content-card {
        flex-direction: column;
    }
    .article-card-img {
        height: 200px;
    }
}
