body {
    font-family:"myfont" ;
    margin: 0;
    padding: 0;
    background:linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),  url('albdnewspaper.png') no-repeat center center fixed;
    background-size: cover;
    background-color: #333;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeIn 1s ease-in-out;

}
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Home page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
   
    background-color: #f4f4f4;
  }
  
@font-face {
    font-family: myfont;
    src: url(TiroBangla-Regular.ttf);
}

@font-face {
    font-family: anekbangla regular;
    src: url(AnekBangla_Condensed-Regular.ttf);
}
  
@font-face{
    font-family: anekbangla bold;
    src: url(AnekBangla_Condensed-Bold.ttf);
}

/* General styles */
body {
    margin: 0;
    font-family: ;
    background-color: #fdf8f3;
    color: #000;
}

/* Header styles */
header {
    font-family: "myfont";
    width: 100%;
    height: 100px;
    display: flex;
    text-justify: auto;
    text-align: ;
    font-size: 15px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    z-index: 99;
    padding: 10px 10px;
    top: 0;
    box-shadow: 0 0 10px #000;
    background: rgba(0, 0, 0, 0.5);
}

header .search-box form {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    font-family: 'myfont';
}

header .search-box input {
    font-family: 'myfont';
    width: 100%;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 10px;
    text-align: center;
    text-justify: auto;
    transition: 0.3s ease;
}

header .search-box input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

header .search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #0078D4;
    border: none;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s ease;
}

header .search-box button:hover {
    background: #014981;
}

/* Social Media Icons */
header ul li a {
    margin: 0 5px;
    color: #0078D4;
    font-size: 18px;
    text-decoration: none;
}

header ul li a:hover {
    color: #0078D4;
}

/* Responsive Search Box Styles */
@media (max-width: 768px) {
    header .search-box form {
        max-width: 100%;
        margin: 10px 0;
    }

    header ul li {
        text-align: center;
        margin: 10px 0;
    }

    header ul li form {
        margin-top: 10px;
    }

    header .search-box input {
        width: 90%;
    }
}


#chk1 {
    display: none;
}

header .logo img{
    flex: ;
    color: #fff;
    height: 120px;
    width: 120px;
    justify-content: center;
    margin-left: 50px;
    margin-right: 50px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

header .search-box {
    flex: 1;
    position: relative;
}

header ul li .search-box input {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    background: #f2f2f2;
    border-radius: 30px;
    color: gray;
    font-size: 16px;
    text-align: center;
}

.search-box button {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 30px;
    border: none;
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgb(13, 0, 128);
}

header ul {
    flex: 2;
    display: flex;
    justify-content: space-between;
}

header ul li {
    list-style: none;
}

header ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
}



header ul li a:hover {
    border-bottom: 2px solid rgb(236, 241, 236);
}

header .menu {
    font-size: 1.5em;
    display: none;
    cursor: pointer;
}

header .menu label i {
    font-size: 1em;
    color: #fff; 
    cursor: pointer;
    transition: color 0.3s ease;
}


header .menu label i:hover {
    color: #0078D4;
}

/* Responsive styles */
@media (max-width: 1000px) {
    header ul {
        position: fixed;
        top: 100px;
        font-size: 20px;
        right: -100%;
        background: rgba(0, 0, 0, 0.5);
        height: calc(100vh - 100px);
        width: 70%;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        transition: right 0.3s ease-in-out;
    }

    header .menu {
        display: block;
    }

    header .menu label {
        cursor: pointer;
    }
    

    #chk1:checked ~ ul {
        right: 0;
    }
    
    header .menu label i:hover {
        color: #0078D4; 
    }

    .search-box {
        padding-bottom: 50px;
    }
}



main {
    padding: 10px;
    flex: 1;
    width: 260px;
    margin: 0 auto;
    padding: 20px;
}

.grid {
    display: grid;
    justify-content: center;
}



/*Description Box*/
.container{
    background: linear-gradient(360deg,#ccc,#0078D4);
    padding: 5%;
    padding-bottom: 100px;

}

.container .heading{
    text-align: center;
    padding-bottom: 15px;
    color: #fff;
    text-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    font-size: 50px;
}

.container .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(270px,1fr));
    gap: 15px;

}

.container .box-container .box {
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    border-radius: 5px;
    background: #fff;
    text-align: center;
    padding:30px 20px;
    width: 100%;
   
}

.container .box-container .box h3{
    color: #444;
    font-size: 22px;
    padding: 10px 0;
}

.container .box-container .box p{
    color: #777;
    font-size: 16px;
    line-height: 1.8;
    text-justify: auto;
    text-align: justify;
    height: 150px;
}

.container .box-container .box img{
    height: 80px;
    margin-bottom: ;
    
}

.container .box-container .box .btn{
    margin-top: 10px;
    
    display: inline-block;
    background: #0078D4;
    color: #fff;
    font-size: 17px;
    border-radius: 5px;
    
    padding: 8px 25px;

}



.container .btn:hover{
    box-shadow: 2px 4px 10px #444
}

.container .box-container .box .btn:hover{
    letter-spacing: 1px;
}

.container .box-container .box:hover{
    box-shadow: 0px 10px 15px rgba(0, 0, 0, .3);
    transform: scale(1.02);
}

@media (max-width:768px){
    .container{
        padding: 20px;
    }
}

/*newspaper website link*/
.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(4,auto);
    grid-template-rows: repeat();
    gap: 10px;
    padding: 20px;
  }
  
  .newspaper-grid a {
    font-family: "myfont";
    text-decoration: none;
    color: #000000;
    font-size: 1rem;
    font-weight: bold;
    background-color: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: flexbox ;
    height: 80px;
    width: 150px;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .newspaper-grid a:hover {
    background-color: #0078D4;
    color: #fff;
    transform: scale(1.03);
  }

  .grid-header{
    text-align: center;
    color: #f4f4f4;
    background-color: #0078D4;
    padding: 20px;
    border-radius: 5px;
  }
  #web{
    text-decoration: dotted;
    
  }
  .grid-header:hover{
    background-color: #ecf0f1;
    color: #0078D4;
  }
  
  @media (max-width: 768px) {
    .newspaper-grid {
      grid-template-columns: repeat(2, auto);
      
    }
    
  }
  
  @media (max-width: 576px) {
    .newspaper-grid {
      grid-template-columns: repeat(2,auto);
      
    }

  }
  

/*about*/
.aboutbox{
    margin: ;
    padding: ;
    font-family: "anekbangla regular";
    background: url('') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    scroll-behavior: initial;

}

.containertwo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 500px;
    background: rgba(0, 0, 0, 0.6); /* dark overlay */
}

.headingabout {
    margin-left: 100px;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    font-family: "anekbangla bold";
    
}

.content {
    margin-left: 100px;
    max-width: 800px;
    font-size: 1.2rem;
    text-align: justify;
    border-left: 4px solid #fff;
    padding-left: 1rem;
}

.author {
    font-family: "Anekbangla bold";
    margin-top: 20px;
    margin-left: 100px;
    font-size: 1.5rem;
    font-weight: bold;
    background: #0078D4;
    color: white; /* Text color for the button */
    padding: 10px 30px; /* Padding for the button */
    border: none;
    border-radius: 20px; /* Rounded corners */
    text-align: center; /* Center the text */
    transition: background-color 0.3s, transform 0.2s; /* Smooth hover effect */
    display: inline-block; /* Make it behave like a button */
}

.author:hover {
    background: #003a79; /* Darker background on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
    cursor: pointer; /* Show pointer cursor on hover */
}

.author:active {
    transform: scale(0.95); /* Shrink slightly when clicked */
}
@media (max-width: 480px) {
    .aboutbox
    {
        ;
    }
    .headingabout {
        font-size: 1.5rem; /* Adjust for very small screens */
        text-align: center; /* Center text */
        margin-left: 20px;
        margin-right: 20px;
        
    }

    .content {
        font-size: 0.9rem; /* Smaller text size */
        text-align: justify;
        border-left: none; /* Remove the border */
        padding-left: 0; /* Remove padding */
        margin-left: 20px;
        margin-right: 20px;
    }

    .author {
        font-size: 0.7rem; /* Smaller font for button */
        text-align: center; 
        margin-left: 20px;
    }
}

header h1 {
    margin: 0;
}

/*faq*/
.faq{
    background: #faf8f8;
    padding: 20px;
    max-width: 1368px;
    width: 90%;
    margin: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.faq-title{
     text-align: center;
     font-size: 12px;
     font-weight: bold;
     margin-bottom: 10px;
}

.faq-line{
    width: 100%;
    color: #afaeae;
}

.answer {
    padding: 10px;
    font-size: 16px;
    line-height: 20px;
}

details {
    border: 1px solid #0078D4;
    border-radius: 5px;
    margin-bottom: 10px;
}

details > summary:first-of-type{
    list-style-type: none;


}

details summary::-webkit-details-marker{
    display: none;
}

summary{
    font-weight: 700;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    
}

summary span{
    display: block;
    width: 80%;
}

summary b::after{
    content: "+";
    font-size: 18px;
    margin-right: 5px;
}

details[open] summary b::after{
    content: "-";
    font-size: 18px;
}

summary:hover{
    cursor: pointer;
    background-color: #0078D4;
    
}

details[open] summary{
    background-color: #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
    border-radius: 5px 5px 0 0 ;
}

details summary::-webkit-details-marker{
    display: none;
}


/* Footer */
footer {
    width: 100%;
    position: relative;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.795);
    color: #ccc;
    padding: 40px 10px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px; 
}

.logo2 {
    
    width: 80px;
    margin-bottom: 0px;
}

footer p {
    margin: 0;
    
    line-height: 1.5;
    text-align: justify; 
}

footer p a {
    color: #ccc ;

}

footer p a:hover{
    color: #ecf0f1;
    text-transform: uppercase;

}

.newsletter {
    width: ;
    max-width: 400px;
}

.newsletter h3 {
    margin-bottom: 10px;
    text-align: center;
    border: 2px solid #007BFF;
    border-radius: 5px;
    background: #0056b3;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
    
}

footer form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

footer form .far {
    font-size: 18px;
    margin-right: 10px;
    color: #0078D4;
}

footer form input {
    width: 100%;
    background: transparent;
    color: #ccc;
    outline: none;
    border: 0;
}

footer form button {
    background: transparent;
    border: 0;
    outline: none;
    cursor: pointer;
}

footer form button .fas {
    font-size: 16px;
    color: #ccc;

}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons .fab {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    font-size: 20px;
    color: #000;
    background: #fff;
    cursor: pointer;
}

hr {
    width: 90%;
    border: 0;
    border-bottom: 1px solid #ccc;
    margin: 20px auto;
}

footer .copyright {
    font-size: 12px;
    text-align: center;
}


@media (max-width: 768px) {
    .logo2 {
        width: 60px;
    }

    .social-icons .fab {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 16px;
    }

    footer {
        text-align: center;
        padding: 20px 5px;
        font-size: 12px;
    }

    hr {
        width: 100%;
    }

    footer .copyright {
        font-size: 10px;
    }
}




@media (max-width: 768px) {
    body {
        font-size: 14px; 
    }

    .grid {
        margin: 0%;
        align-items: center;
        
        
    }
}
