/* css variables */
:root{
    --primary-color: #003366;
    --secondary-color: #336699; 
    --third-color:#FFD700;
    --header-color: #003366;
    --background-color: #F9F9F9;
    --background-color-navbar:#003366;
    --text-color: #333333;
    --font-family: 'Arial, sans-serif';
    --font-size: 20px;
    --font-size-secondary: 16px;
    --font-family-secondary: 'Georgia, serif';
    --border-radius: 5px;
    --box-shadow: 0 2px 4px rgba(22, 33, 159, 0.264);
    --line-height: 1.6;
}

/* index(home) page css  */
*{
    margin:0;
    padding:0;
}
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Navbar */

header nav{
    display: flex;
    flex-wrap: wrap;
    background-color: var(--background-color-navbar);
    padding: 20px;
    justify-content: space-between;
    width: 100%;
    position: fixed;
    z-index: 100;


}

header nav h1{
    color: var(--third-color);
    font-size: 20px;
}
header nav h1::first-letter{
    font-size: 25px;
}
header nav ul{
    list-style: none;
    padding-right: 40px;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
   

}
header nav ul li a{
    flex:1 1 auto;
    text-align: center;
    text-decoration: none;
    margin-left: 20px;
    font-size: 20px;
    color: var(--third-color);
}
header nav ul li a:hover{
    color: var(--secondary-color);
    background-color: var(--third-color);
    padding: 8px;
    border-radius: var(--border-radius);
    transition: 0.5s;

}

/* Banner */

.banner {
    position: relative;
    text-align: center;
    color: white;
}
.banner img{
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-top: 70px;
}
.banner h1 {
    max-width: 90%;
    color: var(--third-color);
    font-family: var(--font-family-secondary);
    font-size: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: var(--border-radius);
}

/* Content */
.content{
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* Summary */
.content h2{
    color: var(--header-color);
    font-family:var(--font-family-secondary);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    border-left: 1rem solid var(--header-color);

}
.content summary p{
    margin:0 auto;
    font-family: var(--font-family-secondary);
    color: var(--text-color);
    font-size: var(--font-size);
    line-height: var(--line-height);
    margin-bottom: 20px;  
}

.content summary p::first-letter{
    margin-top: 50px;
    margin-left: 20px;
    font-size: 40px;
    font-weight: bold;
    color: var(--header-color);
}
.content summary h3{
    font-size: 24px;
    color: var(--header-color);
    margin-bottom: 10px;
    font-family: var(--font-family-secondary);
    display: flex;
    justify-content: center;
    box-shadow: 1px 5px 2px var(--background-color-navbar);
    padding-bottom: 15px;
}

/* Article  */
.main-cards-div{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}
.card{
    flex:1 1 250px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-bottom-left-radius: 80px 80px;
    margin-right: 15px;
}
.card:hover{
    transform: scale(1.05);
    transition: 0.5s ease;
    background-color:rgb(251, 241, 190)
}
.card figcaption{
    font-size: var(--font-size);
    padding: 10px 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: var(--font-family-secondary);
}
.card figure img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

article p{
    padding: 20px;
    font-size: var(--font-size-secondary);
    line-height: var(--line-height);
    color: var(--text-color);
    font-family: var(--font-family-secondary);
}
article a{
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    text-decoration: none;
}
article a button{
    background-color: var(--background-color);
    color: var(--secondary-color);
    border: none;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    box-shadow: var(--box-shadow);
    font-weight: bold;
}
article a button:hover{
    color: rgb(4, 39, 92);
    background-color: rgb(246, 190, 50);
    transition:0.5s ease;
    transform: scale(1.5);
}


/* About text css */
.section-about-div{
    max-width: 100%;
    margin-top:120px;
    margin-bottom:120px;
    display: flex;
    justify-content:center;
    flex-wrap: wrap;
}
.about{
    flex: 1 1 300px;
    max-width: 400px;
    padding: 20px;
    margin: 10px;
    border-bottom: 3px dashed var(--header-color);
    text-align: center;
    font-style: italic;
    transition: transform 0.5s linear;
}

.about:hover{
    transform: scale(1.1);
    transition: 0.5s linear;
}

.about p{
    font-size: var(--font-size-secondary);
    line-height: var(--line-height);
    color: var(--text-color);
    font-family: var(--font-family-secondary);
    text-align: center;
    font-style: italic;
 
}
.about p::before{
    content:"❝";
    font-size: 20px;
    font-weight: bold;
    color: var(--header-color); 
    margin-right: 10px;
}
.about p::after{
    content:"❞";
    font-size: 20px;
    font-weight: bold;
    color: var(--header-color); 
    margin-left: 10px;
}



/* Footer */
footer{
    background-color: var(--background-color-navbar);
    color: var(--third-color);
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    
}


footer p{
    width: 100%;
    margin: 0;
    font-size: var(--font-size-secondary);
}

