/* =====================================
   RTDG Academic Press
   Main Website Stylesheet
   ===================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #ffffff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* =====================================
   HEADER
   ===================================== */

header {
    background: #003366;
    color: white;
    padding: 18px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
}

.logo p {
    font-size: 13px;
    color: #d8e8ff;
}


/* Navigation */

nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ffd700;
}


/* =====================================
   HERO SECTION
   ===================================== */

.hero {
    background:
    linear-gradient(
    rgba(0,51,102,0.75),
    rgba(0,51,102,0.75)
    ),
    url("../images/banner.jpg");

    background-size: cover;
    background-position: center;

    min-height: 550px;

    display: flex;
    align-items: center;

    color:white;
    text-align:center;
}


.hero h2 {

    font-size:42px;
    margin-bottom:20px;

}


.hero p {

    max-width:800px;
    margin:auto;
    font-size:18px;

}


/* Buttons */

.btn,
.btn2 {

    display:inline-block;
    margin:25px 8px 0;
    padding:12px 28px;
    border-radius:5px;
    text-decoration:none;
    font-weight:500;

}


.btn {

    background:#ffd700;
    color:#003366;

}


.btn2 {

    border:2px solid white;
    color:white;

}


.btn:hover,
.btn2:hover {

    opacity:0.8;

}



/* =====================================
   GENERAL SECTIONS
   ===================================== */


section {

    padding:70px 0;

}


section h2 {

    text-align:center;
    color:#003366;
    font-size:32px;
    margin-bottom:30px;

}


.about p {

    max-width:900px;
    margin:auto;
    text-align:center;
    font-size:17px;

}



/* =====================================
   FEATURES CARDS
   ===================================== */

.cards {

    display:grid;
    grid-template-columns:
    repeat(4,1fr);

    gap:25px;

}


.card {

    background:white;
    padding:30px 20px;

    text-align:center;

    border-radius:10px;

    box-shadow:
    0 5px 20px rgba(0,0,0,0.1);

}


.card i {

    font-size:40px;
    color:#003366;
    margin-bottom:15px;

}


.card h3 {

    color:#003366;
    margin-bottom:10px;

}



/* =====================================
   FEATURED BOOKS
   ===================================== */


.featured {

    background:#f5f8fc;

}


.books {

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:25px;

}


.book {

    background:white;

    padding-bottom:20px;

    text-align:center;

    border-radius:8px;

    overflow:hidden;

    box-shadow:
    0 4px 15px rgba(0,0,0,.1);

}


.book img {

    width:100%;
    height:280px;
    object-fit:cover;

}


.book h3 {

    color:#003366;
    margin-top:15px;

}



/* =====================================
   SERVICES
   ===================================== */


.service-grid {

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:20px;

}


.service-grid div {

    background:#003366;

    color:white;

    padding:25px;

    text-align:center;

    border-radius:6px;

}



/* =====================================
   CALL SECTION
   ===================================== */


.call {

    background:#003366;

    color:white;

    text-align:center;

}


.call h2 {

    color:white;

}


.call p {

    font-size:18px;

}



/* =====================================
   FOOTER
   ===================================== */


footer {

    background:#111;

    color:white;

    padding:40px 0;

}


.footer-grid {

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:30px;

}


footer h3 {

    color:#ffd700;

}


footer ul {

    list-style:none;

}


footer a {

    color:white;

    text-decoration:none;

}


.copy {

    text-align:center;

    margin-top:20px;

    font-size:14px;

}


/* =====================================
   RESPONSIVE DESIGN
   ===================================== */


@media(max-width:1000px){


header .container {

    flex-direction:column;

}


nav ul {

    flex-wrap:wrap;

    justify-content:center;

    margin-top:15px;

}


.cards {

    grid-template-columns:
    repeat(2,1fr);

}


.books {

    grid-template-columns:
    repeat(2,1fr);

}


.service-grid {

    grid-template-columns:
    repeat(2,1fr);

}


}



@media(max-width:600px){


.logo h1 {

    font-size:22px;

}


.hero h2 {

    font-size:30px;

}


.hero p {

    font-size:15px;

}


.cards,
.books,
.service-grid,
.footer-grid {

    grid-template-columns:1fr;

}


nav ul {

    flex-direction:column;

    text-align:center;

}


}
