/*
 * Theme Name: Deneme1
 * Description: Custom styles for Deneme1 theme.
 * Author: Ahmet TUTER
 * Created on: 2024-10-02
 */

/* =========================
   Global Styles
   ========================= */


   *,
   *::before,
   *::after {
       box-sizing: border-box;
   }
   





.site-header {
   display: grid;
   grid-template-areas:
      "item1 item2 item4"
      "item1a item3 item5"
      "item1b item3 item6";
   grid-template-columns: auto auto max-content;
   grid-template-rows: 17px auto auto;
   gap: 3px;
   padding: 1px;
}

.item {
   /*border: 1px solid #000; */
   padding: 1px;
   /* bu kaldirilabilir */
   /*background-color: #f4f4f4; */
}


.item-1 {
   grid-area: item1;
   margin-right: auto;
}

.item-1a {
   grid-area: item1a;
   width: fit-content;
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   justify-content: flex-end;
}

.item-1b {
   grid-area: item1b;
   width: fit-content;
}

.item-2 {
   grid-area: item2;
   margin-left: auto;
}

.item-3 {
   grid-area: item3;
   margin-left: auto;
}

.item-4 {
   grid-area: item4;
   margin-left: auto;
}

.item-5 {
   grid-area: item5;
   margin-left: auto;
}

.item-6 {
   grid-area: item6;
   display: flex;
   font-family: 'Gabarito', sans-serif;
   margin-left: auto;
}

/* Bu menu oldugundan text gibi degil yani boyle gerekti saga yaslanmasi icin textin burada yani text align islemiyor buna */


.site-title {
   font-family: 'Special Elite', sans-serif;
   font-size: 3em;
   color: #d81327b6;
   text-transform: uppercase;
   text-shadow: 5px 7px 6px rgba(0, 0, 0, 0.3);
   margin-bottom: -15px;
   /*site title ile site description arasindaki bosluk anca bunu yapinca oldu*/
   height: auto;
}

.site-title-link {
   text-decoration: none; /* Removes the underline */
   color: inherit; /* Inherit the color from the parent element */
   display: inline; /* Ensures the link doesn't affect the layout */
 }
 

.site-description {
   font-size: 1.2em;
   font-style: italic;
   color: #555;
   margin-top: 0;
   margin-bottom: 0;
   height: fit-content;
}







/* burasi yukaridaki CATEGORY LIST icin - BASLANGIC*/

.category-menu {
   font-family: 'Gabarito', sans-serif;
   font-weight: 700;
   text-transform: uppercase;
   list-style-type: none;
   padding: 0;
   margin: 0;
   display: flex;
   justify-content: space-around;
   background-color: #9c1c1c;
   color: white;
   font-size: 1.5rem;

}

.category-menu li {
   padding: 10px;
   position: relative; /* Needed for dropdown positioning */
}

.category-menu a {
   color: white;
   text-decoration: none;
}


/* New styles for dropdown behavior */
.category-menu li ul {
   display: none; /* Hide submenus by default */
   position: absolute; /* Position for dropdown */
   top: 100%; /* Align below parent */
   left: 0;
   background-color: #9c1c1c; /* Match menu background */
   list-style: none;
   padding: 0;
   margin: 0;
   z-index: 1000; /* Ensure it stays on top */
}

.category-menu li:hover > ul {
   display: block; /* Show submenu on hover */
}

.category-menu li ul li {
   padding: 10px; /* Adjust padding for submenu items */
   white-space: nowrap; /* Prevent text wrapping */
   
}

.category-menu li ul li a {
   color: white; /* Match link color */
   text-decoration: none;
}

.category-menu li ul li:hover {
   background-color: #b32424; /* Optional: Hover effect for submenu items */
}




/* Highlight the current category -------------------------- baslangic */
.category-menu li.current-cat {
   background-color: #9c1c1c; /* Change to the color you prefer */
}


/* Highlight the parent category when a subcategory is active */
.category-menu li.current-cat-parent {
   background-color: #9c1c1c; /* Same or different color for the parent */
}

/* Optionally, you can change the text color of the active category and parent */
.category-menu li.current-cat a,
.category-menu li.current-cat-parent a {
   color: yellow; /* Change to the text color you prefer */
}
/* Highlight the current category -------------------------- bitis */



/* burasi yukaridaki CATEGORY LIST icin - BITIS*/






/* burasi MASONRY FLEX icin - BASLANGIC*/

.container-home-1 {
   display: flex;
   flex-wrap: wrap;
   margin: 10px 10px 0 11px;
   /*top right bottom left diye gidiyo*/

}

.item1-1 {
   height: 205px;
   width: calc(20% - 16px);
   margin: 0px 7px 11px 8px;
   /*background-color: beige;*/
   background-image: url('http://turkishstone.com/wp-content/uploads/2024/12/masonrygrid1.jpg');
   background-size: 100% 100%;
  
   /*border: 0px solid #333;*/
   padding: 9px 7px 7px 12px;
   
   /*overflow: hidden;*/
}



.container-home-1 .item1-1 div h2 a:hover {
   text-decoration: none;
   color: #026a9a !important;
}


.row-2 {
   margin-left: calc(20% / 2);
   /* Offset second row to start in the middle of the first column */
}


/* Media query for small screens */
@media (max-width: 768px) {
   .container-home-1 {
      grid-template-columns: repeat(2, 1fr);
   }

   .item1-1 {
      width: calc(50% - 10px);
   }
}

/* Media query for very small screens */
@media (max-width: 480px) {
   .container-home-1 {
      grid-template-columns: 1fr;
   }

   .item1-1 {
      width: calc(100% - 10px);
   }

   .row-2 {
      margin-left: 10px;
   }


}

/* burasi MASONRY FLEX icin - BITIS*/








/* ASAGI TARAF - BASLANGIC */


/* container-home-2 baslangic */
.container-home-2 {
   display: flex;
   margin: 0px 10px 10px 10px;
   height: 450px;
   
}

.item2-1 {
   width: 50%;
   margin: 0 7px 10px 7px;
   /* background-color: #24a97f;*/
   /*border: 1px solid #333;*/
   background-image: url('http://turkishstone.com/wp-content/uploads/2024/12/masonrygrid1.jpg');
   background-size: 100% 100%;
   padding: 14px;
   
   height: 450px;
      
}




.item2-1 .post-item {
   height: 450px;
   width: 100%;
}




.item2-1 .post-item .image {
   height: 70%; 
   
}



.item2-1 .post-item .image img {
  height: 100%; /* Image will fill the height of the container */
  width: 100%; /* Maintain aspect ratio */
  object-fit: cover; /* Crop the width to fit the container height */
  object-position: center; /* Center the image */
  display: block; 
}



.item2-1 .post-item .excerpt {
   height: 30%; 
   width: 100%;
   
}





.post-item .excerpt h2 {
   margin: 0 0 7px;
   font-size: 1.3em;
   text-decoration: none; color: #333; font-family: 'Lexend Deca', 'Times New Roman', sans-serif;

}



.post-item .excerpt h2 a {
   text-decoration: none;
   color: inherit;
}


.post-item .excerpt h2 a:hover {
   
   text-decoration: none;
   color: #026a9a; 
}




.post-item .excerpt p {
   font-size: 1em;
   margin: 0 0 10px;
   font-size: 15px; color: #666; margin: 0; line-height: 1.27; font-family: 'Gabarito', 'Times New Roman', sans-serif;
}




/* container-home-2 bitis */







/* reklam sayfa ortasi baslangic */
.ortareklam {
   height: 100px;
   background-color: #bada55;
   border: 1px solid #333;
   margin: 10px;
}

/* reklam sayfa ortasi bitis */




/* container-home-3 baslangic ////////////////////////////////////////////////////////////////////////////////////*/

.container-lower {
   display: flex;
   
}


.container-home-3 {
   display: flex;
   flex-wrap: wrap;
   margin: 30px 0;
   
   width: 80%;
   /*border: 1px solid #333;*/
}


.item3-0 {
   font-family: 'Gabarito', sans-serif;
   font-size: 1.2rem;
   color: #9c1c1c;
   font-weight: bold;
  
   width: 48.3%;
   /*background-color: #9398d7;*/
   margin: 0px 10px;
   padding: 0px 10px;
   
}

.item3-0 a {
   font-family: 'Gabarito', sans-serif;
   font-size: 1.2rem;
   color: #9c1c1c;
   font-weight: bold;
   text-decoration: none; /* Removes underline */
}

.item3 a:hover {
   text-decoration: none; /* Ensures no underline on hover */
   color: #9c1c1c; /* Optional: Keeps color consistent on hover */
}



.item3-1 {
   width: 48.3%;
   margin: 0px 10px;
   /*background-color: #bada55;
   border: 1px solid #333;*/
   padding: 0px 10px;
   
   display: flex;
}


.item3-15 {
   font-family: 'Gabarito', sans-serif;
   font-size: 1.2rem;
   width: 31.55%;
   color: #9c1c1c;
   /*background-color: #9398d7;*/
   margin: 30px 10px 0px 10px;
   padding: 0px 10px;
   

   font-weight: bold; /* bununla asagidaki arasinda fark yok aslinda yada ben goremedim ama bu 700 e denk geliyor*/ 
   /*font-weight: 900;*/
}

.item3-15 a {
   font-family: 'Gabarito', sans-serif;
   font-size: 1.2rem;
   color: #9c1c1c;
   font-weight: bold;
   text-decoration: none; /* Removes underline */
}

.item3-15 a:hover {
   text-decoration: none; /* Ensures no underline on hover */
   color: #9c1c1c; /* Optional: Keeps color consistent on hover */
}



.item3-2 {
   width: 31.55%;
   margin: 0px 10px;
   
   /*background-color: #bada55;*/
   /*border: 1px solid #333;*/
   padding: 0px 10px;
   
}



.b1 {
   display: flex;
}



.b2 {
   width: 33.33%;
   padding: 7px; 
   background-color: #f9f9f9; 
   border: 1px solid #ddd; 
   border-radius: 5px; 
  /* height: auto; /* Dynamically adjusts based on content */
  /* min-height: 0; /* Ensure no minimum height forces extra space */
}



.b2 .post-item {
   display: block; /* Ensure the image, title, and excerpt stack vertically */
   /*height: 400px;*/
}



.b2 .post-item .image {
   width: 100%; /* Full width of the container */
   aspect-ratio: 1 / 0.7; /* Set aspect ratio to 1:0.7 (width:height) */
   overflow: hidden; /* Hide any excess content */
   position: relative; /* For better control over child elements */
}

.b2 .post-item .image img {
   width: 100%; /* Full width */
   height: 100%; /* Fill the container height */
   object-fit: cover; /* Ensure the image fills without distortion */
   object-position: top; /* Crop from the bottom by aligning to the top */
   display: block; /* Fix inline issues */
}




.b2 .post-item h2 {
   font-size: 1rem; /* Reduce the title font size */
   margin: 5px 0; /* Add space around the title */
}

.b2 .post-item h2 a {
   text-decoration: none; /* Remove underline from the title link */
   color: #333; /* Set title text color */
}

.b2 .post-item h2 a:hover {
   color: #026a9a; /* Add hover effect for the title */
}




.b2 .post-item p {
   font-size: 0.88rem; 
   margin: 0 0 10px; /* Minimal spacing below text */
  
}






.c1{
   padding: 7px; 
   background-color: #f9f9f9; 
   border: 1px solid #ddd; 
   border-radius: 5px;
}

/*
.c1 .post-item {
   display: flex; 
   
}
*/


.c1 .post-item .image {
   width: 25%; 
   overflow: hidden; 
   flex-shrink: 0; 
   float: left;
   aspect-ratio: 10 / 7.2; /* 72% of the width - daha buyuk olursa 1 line float etmiyor resmin asagisina */
}

.c1 .post-item .image img {
   width: 100%; 
   height: 100%; 
   object-fit: cover; /* Ensure the image fills without distortion */
   object-position: top; /* Crop from the bottom by aligning to the top */
   
}




.c1 .post-item h2 {
   font-size: 1rem; /* Reduce the title font size */
   margin: 5px 0; /* Add space around the title */
}

.c1 .post-item h2 a {
   text-decoration: none; /* Remove underline from the title link */
   color: #333; /* Set title text color */
}

.c1 .post-item h2 a:hover {
   color: #0073aa; /* Add hover effect for the title */
}



.c1 .post-item p {
   font-size: 0.88rem; 
   margin: 0 0 10px; /* Minimal spacing below text */
  
}









/* container-home-3 bitis */




/* container-home-4 baslangic */
.container-home-4 {

   margin: 30px 20px 30px 0px;

   /*height: 600px;*/
   width: 20%;
  /* border: 1px solid #333;*/
}



.custom-image-link {
   width: 100%;
   max-width: 100%;
   overflow: hidden;
   text-align: center;
   
   

}

.custom-image-link img {
   width: 100%;        /* Ensures the image takes up the full width of the container */
   max-width: 100%;    /* Prevents the image from stretching too much */
   height: auto;       /* Maintains the aspect ratio */
   /*display: block;     /* Removes extra space below the image */
   margin: 10px auto 0 auto;
}





/* container-home-4 bitis */



/* ASAGI TARAF - BITIS */





/*  BURASI asagidaki kategori list icin - BASLANGIC */

.category-menu2 {
   font-family: 'Gabarito', sans-serif;
   /* Sleek, modern, and highly readable font */
   font-weight: 700;
   /* Bold weight for strong emphasis */
   text-transform: uppercase;
   /* Keeps the original text case */
   list-style-type: none;
   padding: 0;
   margin: 10px;
   display: block;
   /*background-color: #9c1c1c;*/
   color: #9c1c1c;
   font-size: 1.2rem;
   /* Large and responsive size for heading */

}

.category-menu2 li {
   padding: 0px;
   line-height: 1.8rem;
}

.category-menu2 a {
   color: #9c1c1c;
   text-decoration: none;
}

/*  BURASI asagidaki kategori list icin - BITIS  */







/* en asagi taraf grid BASLANGIC*/



.container-home-5 {
   display: flex;
   flex-wrap: wrap;
   gap: 20px;
   /*background-color: #2196F3;*/
   padding: 20px;
   
   /*border: 1px solid #210202;*/
}




.d1 {
   font-size: 1em;
   

   background-color: #f9f9f9; 
   border: 1px solid #ddd; 
   border-radius: 5px;

}

.d2 {

   font-size: 1em;
   
   background-color: #f9f9f9; 
   border: 1px solid #ddd; 
   border-radius: 5px;

   
}









/* en asagi taraf grid BITIS*/





h1 {
   font-family: 'Roboto', sans-serif;
   /* Sleek, modern, and highly readable font */
   font-size: 1.5rem;
   /* Large and responsive size for heading */
   color: #9c1c1c;
   /* Modern dark color */
   line-height: 1.2;
   /* Tight line spacing for clarity */
   font-weight: 700;
   /* Bold weight for strong emphasis */
   text-transform: uppercase;
   /* Keeps the original text case */
   letter-spacing: 0.03em;
   /* Slight letter spacing for a balanced look */
   margin-top: 0.1em;
   /* Adds spacing on top */
   margin-bottom: 0.5em;
   /* Adds spacing below */
   border-bottom: 2px solid #007bff;
   /* Optional: A sleek bottom border */
   padding-bottom: 0.3em;
   /* Space between the text and border */
}








/* Styling the post content */
article {
   line-height: 1.15;
   margin-bottom: 1rem;
}

/* Customize the read more link */
.read-more-link {
   background-color: #0073aa;
   color: white;
   padding: 10px 15px;
   text-decoration: none;
   border-radius: 5px;
}

.read-more-link:hover {
   background-color: #005a87;
}






/* Style for the 'links' class */
.links1 {
   list-style-type: none; /* Removes bullet points */
   padding: 0 0 0 10px; /* Removes padding */
}

.links1 li {
   margin-bottom: 10px; /* Adds spacing between list items */
}

.links1 a {
   text-decoration: none; /* Removes underline from links */
   color: #000; /* Sets link color */
}

.links1 a:hover {
   color: #007BFF; /* Changes color on hover */
}





















/* page templates BASLANGIC*/

.page-contactus {
   margin-bottom: 300px;
   /* Adds space below the element */

   padding: 300px;
}




/* page templates BASLANGIC*/







/*BURADAN ASAGISI FOOTER*/




/* Make the menu display in a row */
.main-menu {
   display: flex;
   /* Align items in a row */
   list-style: none;
   /* Remove bullets */
   padding: 0;
   /* Remove extra spacing */
   margin: 0;
   /* Remove extra spacing */
}

.main-menu li {
   margin-right: 20px;
   /* Add space between menu items */
}

.main-menu li:last-child {
   margin-right: 0;
   /* No extra margin on the last item */
}

.main-menu a {
   text-decoration: none;
   /* Remove underline from links */
   color: #000;
   /* Default text color */
}




/* --------------------------------------------- INDEX PAGE SONU----------------------------------------------------------------------------*/


/*------------------------------------------------------------------------------------------------------------------------------------------*/


/*----------------------------------------------CATEGORY PAGE BASLANGICI--------------------------------------------------------------------*/

/* General Page Layout */
body.category .category-page {
   font-family: 'Secular One', sans-serif;
   background-color: #f4f7fb;
   padding: 40px 20px 40px 20px; /* Adjusted for left margin */
   color: #333;
   width: 100%; /* Ensure full width */
   
   display: flex;
   justify-content: flex-start; /* Align content to the left */
}

/* Main content area  --------- bu textleri kapsayan big box yani--------*/
body.category .site-main {
   background-color: #fff;
   border-radius: 8px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   padding: 24px; /* Reduced padding */
   margin-left: 20px;
   margin-right: 0;
   width: auto; /* Make the width auto to only take up as much space as the content */
   max-width: 1200px;
}

/* Category Title */
body.category .category-page h1 {
   font-size: 2rem; /* 20% smaller */
   font-weight: bold;
   color: #5f6368;
   margin-bottom: 16px; /* Reduced margin */
   text-align: left;
   text-transform: uppercase;
   letter-spacing: 1px;
}

/* Post Article on Category Page */
body.category article {
   border-bottom: 1px solid #e0e0e0;
   padding-bottom: 16px; /* Reduced padding */
   margin-bottom: 16px; /* Reduced margin */
}

/* Post Title on Category Page */
body.category article h2 {
   font-size: 1.44rem; /* 20% smaller */
   font-weight: 600;
   color: #3a3a3a;
   margin: 0;
   text-align: left;
}

body.category article h2 a {
   text-decoration: none;
   color: inherit;
   transition: color 0.3s;
}

body.category article h2 a:hover {
   color: #0073e6;
}

/* Excerpt on Category Page */
body.category article p {
   font-size: 0.8rem; /* 20% smaller */
   line-height: 1.6;
   color: #555;
   margin-top: 8px; /* Reduced margin */
   text-align: left;
}

/* Pagination on Category Page */
body.category .pagination {
   display: flex;
   justify-content: flex-start;
   margin-top: 32px; /* Reduced margin */
}

body.category .pagination a,
body.category .pagination span {
   padding: 8px 16px; /* Reduced padding */
   margin: 0 4px; /* Reduced margin */
   background-color: #0073e6;
   color: white;
   text-decoration: none;
   border-radius: 5px;
   font-weight: bold;
   transition: background-color 0.3s;
}

body.category .pagination a:hover {
   background-color: #005bb5;
}

body.category .pagination .current {
   background-color: #e0e0e0;
   color: #0073e6;
   pointer-events: none;
}

/* No posts message on Category Page */
body.category .category-page p {
   font-size: 0.96rem; /* 20% smaller */
   text-align: left;
   color: #888;
}

/* Responsive Design for Category Page */
@media (max-width: 768px) {
   body.category .category-page {
       padding: 40px 5%;
   }

   body.category .site-main {
       padding: 16px; /* Adjusted padding */
   }

   body.category .category-page h1 {
       font-size: 1.6rem; /* 20% smaller */
   }

   body.category article h2 {
       font-size: 1.2rem; /* 20% smaller */
   }
}


/* Right Container for Future Development - -------------------- sonradan birsey ekleyecegin kutu bu------------------------- */
body.category .right-container {
   background-color: #fff; /* Match the main container's background */
   border-radius: 8px; /* Same rounded corners */
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Match shadow effect */
   padding: 24px; /* Internal spacing similar to the main container */
   margin-left: 40px; /* Space between the main container and this one */
   width: 40%; /* Adjust width as needed */
   
}



/* --------------------------------------------- CATEGORY PAGE SONU**********---------------------------------------------------------------*/


/*------------------------------------------------------------------------------------------------------------------------------------------*/


/*----------------------------------------------SINGLE POST PAGE BASLANGICI--------------------------------------------------------------------*/


/* Overall Layout */
.tekpost {
   display: flex;
   justify-content: space-between;
   background-color: #f4f7fb;
   padding: 40px 20px;
   color: #333;
   font-family: 'Secular One', sans-serif;
   
}

/* Left Container (Post Content) */
.tekpost .left-container {
   width: 65%; /* Adjust width for the post content */
   background-color: #ffffff;
   border: 1px solid #d3d3d3;
   box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
   padding: 20px;
   margin-right: 20px;
  
   border-radius: 5px;
}

/* Right Container (Future Use) */
.tekpost .right-container {
   width: 30%; /* Adjust width for the right container */
   background-color: #ffffff;
   border: 1px solid #d3d3d3;
   box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
   padding: 20px;
   
   border-radius: 5px;
}

/* Post Title */
.tekpost h1 {
   font-size: 2rem;
   margin-bottom: 20px;
   color: #222;
}

/* Post Content */
.tekpost article {
   font-family: 'Gabarito', sans-serif; /* Apply Gabarito to post text */
   font-size: 1rem;
   line-height: 1.6;
   color: #555;
}

/* Post Meta */
.tekpost .post-meta {
   margin-top: 20px;
   font-size: 0.9rem;
   color: #777;
}




/* ----------------------------------------------------------- SINGLE POST PAGE SONU-----------------------------------------------------------*/


/*------------------------------------------------------------------------------------------------------------------------------------------*/


/*------------------------------------------------------------TEK STATIC PAGE BASLANGICI--------------------------------------------------------*/





/* General Container Setup */
.teksayfa {
   display: flex;
   flex-direction: row;
   padding: 20px;
   background-color: #f4f7fb;
   font-family: 'Secular One', sans-serif;
}

/* Left Container */
.teksayfa-left {
   width: 70%; /* Adjust as needed */
   margin-right: 2%; /* Space between left and right containers */
   background: #ffffff;
   padding: 20px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   border-radius: 5px;
   
}

/* Page Content Styling */
.teksayfa-left article h1 {
   font-family: 'Secular One', sans-serif;
   font-size: 2rem;
   color: #222;
   margin-bottom: 20px;
}

.teksayfa-left article div {
   font-family: 'Gabarito', serif; 
   font-size: 1rem;
   line-height: 1.6;
   color: #555;
}

/* Right Container */
.teksayfa-right {
   width: 28%; /* Adjust as needed */
   background: #ffffff;
   padding: 20px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   border-radius: 5px;
  
   border: 1px solid #ccc; /* Temporary border for visibility */
}

/* Responsive Design */
@media (max-width: 768px) {
   .teksayfa {
       flex-direction: column;
   }
   .teksayfa-left,
   .teksayfa-right {
       width: 100%;
       margin-right: 0;
       margin-bottom: 20px; /* Space between stacked containers */
   }
}
