@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f7fc;
    color: #222;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    line-height: 1.8;
    transition: all 0.3s ease-in-out;
}

.container:hover {
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
}

h1, h2 {
    color: #002d62;
    font-weight: 600;
}

h1 {
    text-align: center;
    font-size: 30px;
    border-bottom: 4px solid #002d62;
    padding-bottom: 14px;
    margin-bottom: 25px;
    transition: all 0.3s ease-in-out;
}

h1:hover {
    color: #004085;
    border-bottom: 4px solid #004085;
}

h2 {
    font-size: 24px;
    margin-bottom: 18px;
}
/* Agar aap highlighted paragraph ko alag styling dena chahte hain */
.highlight {
    background-color: #f8f9fa; /* Light grey background */
    border-left: 4px solid #007bff; /* Left border highlight */
    padding: 10px;
    font-weight: bold;
}

.cover-image {
    display: block;
    margin: 30px auto 30px auto;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.magazine-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Yeh grid ko flexible banayega */
    gap: 20px; /* Space maintain karega */
    margin-top: 30px;
}

.magazine-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Fixed width hata diya */
    min-height: 350px; /* Card height maintain karega */
}


.magazine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


.magazine-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.magazine-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.magazine-description {
    padding: 10px 15px;
    font-size: 1rem;
     color: #444;
	 line-height: 1.3;
	 text-align: justify;
}


.magazine-buttons {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.download-btn {
    background-color: #28a745;
    color: #fff;
}

.download-btn:hover {
    background-color: #218838;
}

.buy-btn {
    background-color: #007bff;
    color: #fff;
}

.buy-btn:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .magazine-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .magazine-container {
        flex-direction: column;
        align-items: center;
    }

    .magazine-card {
        width: 90%;
    }
}


/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .cover-image {
        height: 250px;
    }

    .magazine-container {
        grid-template-columns: 1fr;
    }

    .magazine-card {
        min-height: auto;
    }

    .magazine-description {
        font-size: 14px;
    }

    .magazine-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 80%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
        padding-bottom: 10px;
    }

    h2 {
        font-size: 18px;
    }

    .cover-image {
        height: 200px;
    }

    .magazine-description {
        font-size: 13px;
    }

    .btn {
        width: 100%;
        font-size: 14px;
        padding: 8px;
    }
}




